[glib] Complete the translation setup for glib-compile-schemas
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Complete the translation setup for glib-compile-schemas
- Date: Sat, 12 Feb 2011 17:45:47 +0000 (UTC)
commit a536a1f2d751c89296f63f9863f3df90d8d2dfea
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 12 12:30:35 2011 -0500
Complete the translation setup for glib-compile-schemas
gio/glib-compile-schemas.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
index a00e45d..175d756 100644
--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -1906,6 +1906,18 @@ main (int argc, char **argv)
};
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"));
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]