diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-03-31 11:41:34 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2022-03-31 11:41:34 -0400 |
commit | bcd0704511dd80bdf8bb2b6c62322afe68122d23 (patch) | |
tree | d8715339ab656619243f9c4a0378e7961f8621a4 /tools | |
parent | 04c9c6b4284110746089adadc12701b7f3bbf379 (diff) | |
download | gtk+-bcd0704511dd80bdf8bb2b6c62322afe68122d23.tar.gz |
Remove #ifdef ENABLE_NLS
libintl API is guaranteed to always be available, glib will fallback to
proxy-libintl in case gettext is not found.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/encodesymbolic.c | 2 | ||||
-rw-r--r-- | tools/gtk-launch.c | 2 | ||||
-rw-r--r-- | tools/updateiconcache.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/tools/encodesymbolic.c b/tools/encodesymbolic.c index 6f4a44f573..90887f3365 100644 --- a/tools/encodesymbolic.c +++ b/tools/encodesymbolic.c @@ -59,12 +59,10 @@ main (int argc, char **argv) setlocale (LC_ALL, ""); -#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, GTK_LOCALEDIR); #ifdef HAVE_BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); #endif -#endif g_set_prgname ("gtk-encode-symbolic-svg"); diff --git a/tools/gtk-launch.c b/tools/gtk-launch.c index 9305095ea2..3ed73dde0f 100644 --- a/tools/gtk-launch.c +++ b/tools/gtk-launch.c @@ -60,13 +60,11 @@ main (int argc, char *argv[]) setlocale (LC_ALL, ""); -#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, GTK_LOCALEDIR); textdomain (GETTEXT_PACKAGE); #ifdef HAVE_BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); #endif -#endif context = /* Translators: this message will appear immediately after the */ diff --git a/tools/updateiconcache.c b/tools/updateiconcache.c index 1618a6e40a..a23c96ca19 100644 --- a/tools/updateiconcache.c +++ b/tools/updateiconcache.c @@ -1703,12 +1703,10 @@ main (int argc, char **argv) setlocale (LC_ALL, ""); -#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, GTK_LOCALEDIR); #ifdef HAVE_BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); #endif -#endif context = g_option_context_new ("ICONPATH"); g_option_context_add_main_entries (context, args, GETTEXT_PACKAGE); |