mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
Complete the translation setup for glib-compile-schemas
This commit is contained in:
@@ -1906,6 +1906,18 @@ main (int argc, char **argv)
|
|||||||
};
|
};
|
||||||
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
|
textdomain (GETTEXT_PACKAGE);
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
gchar *tmp = _glib_get_locale_dir ();
|
||||||
|
bindtextdomain (GETTEXT_PACKAGE, tmp);
|
||||||
|
g_free (tmp);
|
||||||
|
#else
|
||||||
|
bindtextdomain (GETTEXT_PACKAGE, GLIB_LOCALE_DIR);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||||
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
|
#endif
|
||||||
|
|
||||||
context = g_option_context_new (N_("DIRECTORY"));
|
context = g_option_context_new (N_("DIRECTORY"));
|
||||||
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
||||||
|
Reference in New Issue
Block a user