summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-08 11:47:05 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-08 11:47:05 +0000
commit9f2042a4ef343d14997dac02038e6cc6aeeafc4d (patch)
tree58fed1b3c2ff78882737ddcb1f39d6d1fd0d6182 /src/main.c
parent4073ac25ea4f0b38bef0ad09664e4e66e6fe7f00 (diff)
our first localisation, German, kindly contributed by Julian. some autotools and main() changes to get this working.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d5d148c..0335b87 100644
--- a/src/main.c
+++ b/src/main.c
@@ -88,6 +88,11 @@ int main(int argc, char *argv[])
gdk_threads_init();
gtk_init(&argc, &argv);
+ setlocale( LC_ALL, "" );
+ bindtextdomain( GETTEXT_PACKAGE, TRGLOCALEDIR );
+ bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" );
+ textdomain( GETTEXT_PACKAGE );
+
textdomain(PACKAGE_NAME);
if ((withUnique = g_getenv("TRG_NOUNIQUE") == NULL))