summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-03-31 11:41:34 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2022-03-31 11:41:34 -0400
commitbcd0704511dd80bdf8bb2b6c62322afe68122d23 (patch)
treed8715339ab656619243f9c4a0378e7961f8621a4 /gtk/gtkmain.c
parent04c9c6b4284110746089adadc12701b7f3bbf379 (diff)
downloadgtk+-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 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index ab6ddba96e..7cc39c35f8 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -505,13 +505,11 @@ gettext_initialization (void)
{
setlocale_initialization ();
-#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, _gtk_get_localedir ());
bindtextdomain (GETTEXT_PACKAGE "-properties", _gtk_get_localedir ());
-# ifdef HAVE_BIND_TEXTDOMAIN_CODESET
+#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bind_textdomain_codeset (GETTEXT_PACKAGE "-properties", "UTF-8");
-# endif
#endif
}