[gnome-disk-utility: 1/4] setup textdomain so translations work



commit 94f27580d508812b533bc85170d48e3c33a8625c
Author: David Zeuthen <davidz redhat com>
Date:   Sat Apr 11 17:14:01 2009 -0400

    setup textdomain so translations work
---
 src/palimpsest/gdu-main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/palimpsest/gdu-main.c b/src/palimpsest/gdu-main.c
index 22ae7f8..fc0b9c0 100644
--- a/src/palimpsest/gdu-main.c
+++ b/src/palimpsest/gdu-main.c
@@ -142,6 +142,10 @@ main (int argc, char **argv)
                 exit (1);
         }
 
+        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+        textdomain (GETTEXT_PACKAGE);
+
         gtk_window_set_default_icon_name ("palimpsest");
 
         unique_app = unique_app_new_with_commands ("org.gnome.Palimpsest",



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