[easytag] Update weasytag_locale_dir() for new locale path



commit 707fadb66ba6930ee013f7ee6a0bd1a8f788749b
Author: David King <amigadave amigadave com>
Date:   Mon Nov 18 19:41:01 2013 +0000

    Update weasytag_locale_dir() for new locale path

 src/easytag.c        |    2 +-
 src/win32/win32dep.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 9e3b5c0..863ee3d 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -576,9 +576,9 @@ int main (int argc, char *argv[])
     gint status;
 
 #if ENABLE_NLS
+    textdomain (GETTEXT_PACKAGE);
     bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
     bind_textdomain_codeset (PACKAGE_TARNAME, "UTF-8");
-    textdomain (GETTEXT_PACKAGE);
 #endif /* ENABLE_NLS */
 
 #ifndef G_OS_WIN32
diff --git a/src/win32/win32dep.c b/src/win32/win32dep.c
index 811e6b6..d981f63 100644
--- a/src/win32/win32dep.c
+++ b/src/win32/win32dep.c
@@ -253,7 +253,7 @@ const char *weasytag_locale_dir(void) {
        if (!initialized) {
                const char *inst_dir = weasytag_install_dir();
                if (inst_dir != NULL) {
-                       locale_dir = g_strdup_printf("%s" G_DIR_SEPARATOR_S "locale", inst_dir);
+                       locale_dir = g_build_filename (inst_dir, "..", "lib", "locale", NULL);
                        initialized = TRUE;
                } else {
                        return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]