aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--lib/main.vala6
2 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c91a1229..5a1b9671 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,10 @@ AC_ARG_WITH([indicator-dir], [AS_HELP_STRING([--with-indicator-dir=DIR], [Indica
AC_SUBST([DBUS_SERVICE_DIR], [$with_dbus_service_dir])
AC_SUBST([INDICATOR_DIR], [$with_indicator_dir])
+GETTEXT_PACKAGE=indicator-keyboard
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The prefix for our gettext translation domains.])
+AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL
GLIB_GSETTINGS
diff --git a/lib/main.vala b/lib/main.vala
index f65eef48..f6f823fc 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -361,9 +361,9 @@ public class Indicator.Keyboard.Service : Object {
submenu.append_section (null, section_menu);
var section = new Menu ();
- section.append ("Character Map", "indicator.map");
- section.append ("Keyboard Layout Chart", "indicator.chart");
- section.append ("Text Entry Settings...", "indicator.settings");
+ section.append (_ ("Character Map"), "indicator.map");
+ section.append (_ ("Keyboard Layout Chart"), "indicator.chart");
+ section.append (_ ("Text Entry Settings..."), "indicator.settings");
submenu.append_section (null, section);
var indicator = new MenuItem.submenu ("x", submenu);