From 6c65b1d8e63ab351ea4da525ecdfc5226161bfc6 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 19 Jun 2013 12:06:21 -0400 Subject: Mark translatable strings as translatable --- src/Makefile.am | 4 +++- src/service.vala | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 84ee0f1..15a5cbf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,6 +27,8 @@ indicator_sound_service_CFLAGS = $(PULSEAUDIO_CFLAGS) \ $(SOUNDSERVICE_CFLAGS) \ $(GCONF_CFLAGS) \ $(COVERAGE_CFLAGS) \ - -DLIBEXECDIR=\"$(libexecdir)\" -Wall + -DLIBEXECDIR=\"$(libexecdir)\" -Wall \ + -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" + indicator_sound_service_LDADD = $(PULSEAUDIO_LIBS) $(SOUNDSERVICE_LIBS) $(GCONF_LIBS) indicator_sound_service_LDFLAGS = $(COVERAGE_LDFLAGS) diff --git a/src/service.vala b/src/service.vala index 2196135..add5658 100644 --- a/src/service.vala +++ b/src/service.vala @@ -96,7 +96,7 @@ public class IndicatorSound.Service { static Menu create_menu () { var volume_section = new Menu (); - volume_section.append ("Mute", "indicator.mute"); + volume_section.append (_("Mute"), "indicator.mute"); var slider = new MenuItem (null, "indicator.volume"); slider.set_attribute ("x-canonical-type", "s", "com.canonical.unity.slider"); @@ -109,7 +109,7 @@ public class IndicatorSound.Service { var menu = new Menu (); menu.append_section (null, volume_section); - menu.append ("Sound Settingsā€¦", "indicator.settings"); + menu.append (_("Sound Settingsā€¦"), "indicator.settings"); return menu; } -- cgit v1.2.3