aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-09-11 11:32:31 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-09-11 11:32:31 +0200
commiteb032fc5be2d9f02f52c71b612c0aa971a2f1c96 (patch)
treeb90d791bbe4d15f2af30d0c1dde8022f204c2d2f /src
parenta8d220ae32cd704cc2a65a540a87a570ad2ecc16 (diff)
downloadayatana-indicator-sound-eb032fc5be2d9f02f52c71b612c0aa971a2f1c96.tar.gz
ayatana-indicator-sound-eb032fc5be2d9f02f52c71b612c0aa971a2f1c96.tar.bz2
ayatana-indicator-sound-eb032fc5be2d9f02f52c71b612c0aa971a2f1c96.zip
Mark remaining user-visible strings as translatable
Diffstat (limited to 'src')
-rw-r--r--src/service.vala4
-rw-r--r--src/sound-menu.vala2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/service.vala b/src/service.vala
index 0651c0e..7d59fe5 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 = _("Volume (%d%%)").printf (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) {