From eb032fc5be2d9f02f52c71b612c0aa971a2f1c96 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 11 Sep 2013 11:32:31 +0200 Subject: Mark remaining user-visible strings as translatable --- src/service.vala | 4 ++-- src/sound-menu.vala | 2 +- 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) { -- cgit v1.2.3