aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-09-11 11:35:33 +0000
committerTarmac <Unknown>2013-09-11 11:35:33 +0000
commit3a1fe327673a2ad6ca0a918f2efc2ac559843b4b (patch)
treeb63cd23a65ac2b5d9a590da625bee8613f9cd37b
parenta8d220ae32cd704cc2a65a540a87a570ad2ecc16 (diff)
parent5423d97e09eb9e21f513e6c09fbc61fc30c6a38e (diff)
downloadayatana-indicator-sound-3a1fe327673a2ad6ca0a918f2efc2ac559843b4b.tar.gz
ayatana-indicator-sound-3a1fe327673a2ad6ca0a918f2efc2ac559843b4b.tar.bz2
ayatana-indicator-sound-3a1fe327673a2ad6ca0a918f2efc2ac559843b4b.zip
Update POTFILES.in and mark remaining strings as translatable. Fixes: https://bugs.launchpad.net/bugs/1223500.
Approved by Sebastien Bacher, PS Jenkins bot.
-rw-r--r--po/POTFILES.in3
-rw-r--r--src/service.vala4
-rw-r--r--src/sound-menu.vala2
3 files changed, 4 insertions, 5 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 39a320f..4bd8cdf 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,3 @@
[encoding: UTF-8]
src/service.vala
-src/service.c
-src/sound-menu.c
+src/sound-menu.vala
diff --git a/src/service.vala b/src/service.vala
index 0651c0e..5cf90b6 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -138,10 +138,10 @@ public class IndicatorSound.Service {
string accessible_name;
if (this.volume_control.mute) {
- accessible_name = "Volume (muted)";
+ accessible_name = _("Volume (muted)");
} else {
int volume_int = (int)(volume * 100);
- accessible_name = @"Volume ($volume_int%)";
+ accessible_name = "%s (%d%%)".printf (_("Volume"), volume_int);
}
var root_action = actions.lookup_action ("root") as SimpleAction;
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index e46f098..b08db93 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -149,7 +149,7 @@ class SoundMenu: Object
var submenu = new Menu ();
submenu.append_section (null, playlists_section);
- player_section.append_submenu ("Choose Playlist", submenu);
+ player_section.append_submenu (_("Choose Playlist"), submenu);
}
MenuItem create_slider_menu_item (string action, double min, double max, double step, string min_icon_name, string max_icon_name) {