yelp/yelp-gettext.patch
2011-04-28 07:51:31 -04:00

16 lines
568 B
Diff

diff -up yelp-3.0.2/src/yelp.c.gettext yelp-3.0.2/src/yelp.c
--- yelp-3.0.2/src/yelp.c.gettext 2011-04-28 07:38:27.792883667 -0400
+++ yelp-3.0.2/src/yelp.c 2011-04-28 07:37:51.174341461 -0400
@@ -40,6 +40,11 @@ main (int argc, char **argv)
g_thread_init (NULL);
g_type_init ();
+ setlocale (LC_ALL, "");
+ textdomain (GETTEXT_PACKAGE);
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
app = yelp_application_new ();
return g_application_run (G_APPLICATION (app), argc, argv);