[gnome-internet-radio-locator] Fix localization



commit abd0fb9d91664168d25d77a946b0ac20fb122723
Author: Ole Aamot <ole gnome org>
Date:   Fri Apr 5 10:51:32 2019 +0200

    Fix localization

 configure.ac                       | 2 +-
 src/Makefile.am                    | 7 +++++--
 src/gnome-internet-radio-locator.c | 3 +++
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9a36fe9..7c0c617 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(gnome-internet-radio-locator,2.0.0)
+AC_INIT(gnome-internet-radio-locator,2.0.1)
 AM_INIT_AUTOMAKE([-Wno-portability 1.11 no-dist-gzip dist-xz tar-ustar subdir-objects])
 AM_MAINTAINER_MODE
 AC_CONFIG_SRCDIR([src/gnome-internet-radio-locator.c])
diff --git a/src/Makefile.am b/src/Makefile.am
index bc83665..6bfa0f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,10 @@
-AM_CPPFLAGS = $(GNOME_INTERNET_RADIO_LOCATOR_CFLAGS)
+AM_CPPFLAGS = $(GNOME_INTERNET_RADIO_LOCATOR_CFLAGS) \
+       -DGNOME_INTERNET_RADIO_LOCATOR_DATADIR="\"$(pkgdatadir)\"" \
+       -DGNOME_INTERNET_RADIO_LOCATOR_LOCALEDIR="\"$(localedir)\""
 
 AM_CFLAGS = $(GNOME_INTERNET_RADIO_LOCATOR_CFLAGS) \
        -DGNOME_INTERNET_RADIO_LOCATOR_DATADIR="\"$(pkgdatadir)\"" \
+       -DGNOME_INTERNET_RADIO_LOCATOR_LOCALEDIR="\"$(localedir)\""
        $(NULL)
 
 AM_LDFLAGS= $(GNOME_INTERNET_RADIO_LOCATOR_LIBS) 
@@ -26,7 +29,7 @@ gnome_internet_radio_locator_CFLAGS  = $(GNOME_INTERNET_RADIO_LOCATOR_CFLAGS) \
               -DDATADIR=\"$(datadir)\" \
               -DGNOME_INTERNET_RADIO_LOCATOR_DEBUG=1 \
               -DGNOME_INTERNET_RADIO_LOCATOR_CFG \
-              -DGNOMELOCALEDIR=\"$(datadir)/locale\"
+               -DGNOME_INTERNET_RADIO_LOCATOR_LOCALEDIR="\"$(localedir)\""
 
 gnome_internet_radio_locator_LDADD = $(GNOME_INTERNET_RADIO_LOCATOR_LIBS)
 
diff --git a/src/gnome-internet-radio-locator.c b/src/gnome-internet-radio-locator.c
index 7aa7c0a..71d5459 100644
--- a/src/gnome-internet-radio-locator.c
+++ b/src/gnome-internet-radio-locator.c
@@ -792,6 +792,9 @@ main (int argc,
        GtkTreeIter iter;
        GNOMEInternetRadioLocatorStationInfo *stationinfo, *localstation;
        guint context_id;
+       bindtextdomain (GETTEXT_PACKAGE, GNOME_INTERNET_RADIO_LOCATOR_LOCALEDIR);
+       bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+       textdomain (GETTEXT_PACKAGE);
        if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
                return 1;
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);


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