diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-03-17 16:44:33 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-03-17 16:44:33 +0000 |
commit | 001333b1308edd51069f67e3d633abbf6a2978b0 (patch) | |
tree | 811d61f1408d44fb8c496990c00ea4b2afefadec /src/playlists-menu-item.vala | |
parent | 58facf2f0db4e60a78f101c6d6273b4331981deb (diff) | |
parent | 09ac621b4caf975b36433bdb0f053317c960223e (diff) | |
download | ayatana-indicator-sound-001333b1308edd51069f67e3d633abbf6a2978b0.tar.gz ayatana-indicator-sound-001333b1308edd51069f67e3d633abbf6a2978b0.tar.bz2 ayatana-indicator-sound-001333b1308edd51069f67e3d633abbf6a2978b0.zip |
merged localisaton fixes
Diffstat (limited to 'src/playlists-menu-item.vala')
-rw-r--r-- | src/playlists-menu-item.vala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/playlists-menu-item.vala b/src/playlists-menu-item.vala index 98d18f4..79ab506 100644 --- a/src/playlists-menu-item.vala +++ b/src/playlists-menu-item.vala @@ -17,11 +17,13 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +using Config; using Dbusmenu; using DbusmenuPlaylists; using DbusmenuPlaylist; using Gee; + public class PlaylistsMenuitem : PlayerItem { private HashMap<int, Dbusmenu.Menuitem> current_playlists; @@ -31,12 +33,14 @@ public class PlaylistsMenuitem : PlayerItem { Object ( item_type: MENUITEM_TYPE, owner: parent ); } + construct{ this.current_playlists = new HashMap<int, Dbusmenu.Menuitem>(); this.root_item = new Menuitem(); - this.root_item.property_set ( MENUITEM_PROP_LABEL, "Choose Playlist" ); + this.root_item.property_set ( MENUITEM_PROP_LABEL, _("Choose Playlist") ); this.root_item.property_set ( MENUITEM_PATH, "" ); + } public new void update (PlaylistDetails[] playlists) @@ -74,7 +78,7 @@ public class PlaylistsMenuitem : PlayerItem } if (within == false){ if (this.root_item.property_get (MENUITEM_PATH) == item.property_get (MENUITEM_PATH)){ - this.root_item.property_set (MENUITEM_PROP_LABEL, "Choose Playlist"); + this.root_item.property_set (MENUITEM_PROP_LABEL, _("Choose Playlist")); } this.root_item.child_delete (item); } @@ -118,7 +122,7 @@ public class PlaylistsMenuitem : PlayerItem public void active_playlist_update (PlaylistDetails detail) { var update = detail.name; - if ( update == "" ) update = "Choose Playlist"; + if ( update == "" ) update = _("Choose Playlist"); this.root_item.property_set (MENUITEM_PROP_LABEL, update); this.root_item.property_set (MENUITEM_PATH, detail.path); } |