summaryrefslogtreecommitdiffstats
path: root/src/gui-wizard-gtk
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-03-16 16:35:39 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-16 16:35:39 +0100
commit519371896fe9ce24b7fcb58389220de3317af4ed (patch)
tree249529e05663fd950ca23e07686112483dd4555b /src/gui-wizard-gtk
parent0a1724da15a658096d5000d98db8819bf249a9cf (diff)
downloadabrt-519371896fe9ce24b7fcb58389220de3317af4ed.tar.gz
abrt-519371896fe9ce24b7fcb58389220de3317af4ed.tar.xz
abrt-519371896fe9ce24b7fcb58389220de3317af4ed.zip
wizard-gtk: fixed localization
Diffstat (limited to 'src/gui-wizard-gtk')
-rw-r--r--src/gui-wizard-gtk/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c
index 8e00271a..3dc0b824 100644
--- a/src/gui-wizard-gtk/main.c
+++ b/src/gui-wizard-gtk/main.c
@@ -21,6 +21,9 @@
#include "parse_options.h"
#include "wizard.h"
#include "libreport-gtk.h"
+#if HAVE_LOCALE_H
+# include <locale.h>
+#endif
#define PROGNAME "bug-reporting-wizard"
@@ -59,6 +62,13 @@ void reload_crash_data_from_dump_dir(void)
int main(int argc, char **argv)
{
+ /* I18n */
+ setlocale(LC_ALL, "");
+#if ENABLE_NLS
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+#endif
+
gtk_init(&argc, &argv);
char *env_verbose = getenv("ABRT_VERBOSE");