Commit abd0fb9d authored by Ole Aamot's avatar Ole Aamot

Fix localization

parent 647bc01e
......@@ -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])
......
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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment