diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-16 16:35:39 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-16 16:35:39 +0100 |
commit | 519371896fe9ce24b7fcb58389220de3317af4ed (patch) | |
tree | 249529e05663fd950ca23e07686112483dd4555b | |
parent | 0a1724da15a658096d5000d98db8819bf249a9cf (diff) | |
download | abrt-519371896fe9ce24b7fcb58389220de3317af4ed.tar.gz abrt-519371896fe9ce24b7fcb58389220de3317af4ed.tar.xz abrt-519371896fe9ce24b7fcb58389220de3317af4ed.zip |
wizard-gtk: fixed localization
-rw-r--r-- | src/gui-wizard-gtk/main.c | 10 |
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"); |