diff options
Diffstat (limited to 'tools/ck-history.c')
-rw-r--r-- | tools/ck-history.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/ck-history.c b/tools/ck-history.c index 1f9fe11..42d5498 100644 --- a/tools/ck-history.c +++ b/tools/ck-history.c @@ -29,6 +29,7 @@ #include <string.h> #include <errno.h> +#include <libintl.h> #include <locale.h> #include <zlib.h> @@ -905,6 +906,14 @@ main (int argc, { NULL } }; + /* Setup for i18n */ + setlocale(LC_ALL, ""); + +#ifdef ENABLE_NLS + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); +#endif + context = g_option_context_new (NULL); g_option_context_add_main_entries (context, entries, NULL); retval = g_option_context_parse (context, &argc, &argv, &error); |