diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-03-06 22:00:37 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-03-06 22:00:37 +0000 |
commit | fa6d584bfa7a20fc6ecd9b83fc6bd4adce1b522e (patch) | |
tree | 9a919bd1c8e64ae86ff2195fd50d1c341e2ff60d /src/main.c | |
parent | c8f532bd4192bc3d5a8dfda1b1db943870475658 (diff) |
set a gettext domain in main()
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,10 +26,13 @@ #include <curl/curl.h> #include <curl/types.h> #include <curl/easy.h> + +#include <glib/gi18n.h> #include <glib-object.h> #include <gtk/gtk.h> #include <json-glib/json-glib.h> #include <unique/unique.h> + #include "http.h" #include "trg-main-window.h" #include "trg-client.h" @@ -85,6 +88,8 @@ int main(int argc, char *argv[]) gdk_threads_init(); gtk_init(&argc, &argv); + textdomain(PACKAGE_NAME); + if ((withUnique = g_getenv("TRG_NOUNIQUE") == NULL)) app = unique_app_new_with_commands("org.eth0.uk.org.trg", NULL, "add", COMMAND_ADD, NULL); |