[rhythmbox/wip/hadess/fix-i18n: 2/2] build: Fix translations not working




commit ef007eaeac0a190224d5a3a723cb40fe2aeb9dbd
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 5 09:52:14 2022 +0200

    build: Fix translations not working
    
    ENABLE_NLS was never set after the port to meson so i18n support was
    not turned on. Remove the define as we expect all reasonable OSes to
    have NLS support.

 metadata/rb-metadata-dbus-service.c | 3 +--
 remote/dbus/rb-client.c             | 3 +--
 shell/main.c                        | 2 --
 3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/metadata/rb-metadata-dbus-service.c b/metadata/rb-metadata-dbus-service.c
index 2801afb10..a494cebc1 100644
--- a/metadata/rb-metadata-dbus-service.c
+++ b/metadata/rb-metadata-dbus-service.c
@@ -360,12 +360,11 @@ main (int argc, char **argv)
 
        setlocale (LC_ALL, "");
 
-#ifdef ENABLE_NLS
        /* initialize i18n */
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
-#endif
+
        gst_init (NULL, NULL);
        g_set_prgname ("rhythmbox-metadata");
 
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index 6f849d85b..b6de889e4 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -1033,12 +1033,11 @@ main (int argc, char **argv)
        gboolean scanned;
        GVariant *state;
 
-#ifdef ENABLE_NLS
        /* initialize i18n */
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
-#endif
+
        /* setup */
        setlocale (LC_ALL, "");
        g_set_prgname ("rhythmbox-client");
diff --git a/shell/main.c b/shell/main.c
index b00f04a3f..aeec07263 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -64,13 +64,11 @@ main (int argc, char **argv)
 
        setlocale (LC_ALL, "");
 
-#ifdef ENABLE_NLS
        /* initialize i18n */
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
        textdomain (GETTEXT_PACKAGE);
-#endif
 
        g_set_application_name (_("Rhythmbox"));
        gtk_window_set_default_icon_name (RB_APP_ICON);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]