[rhythmbox] Fixed internationalization



commit f2b2fd8580546d01c624c025efedd61a02e9c856
Author: Piotr DrÄg <piotrdrag gmail com>
Date:   Thu Oct 6 21:36:12 2011 +0200

    Fixed internationalization

 plugins/context/ContextView.py         |    8 +++---
 plugins/lyrics/lyrics.py               |    4 +-
 plugins/magnatune/magnatune.py         |    6 ++--
 plugins/pythonconsole/pythonconsole.py |    8 +++---
 plugins/sendto/sendto.py               |    4 +-
 po/POTFILES.in                         |   42 ++++++++++++++++---------------
 6 files changed, 37 insertions(+), 35 deletions(-)
---
diff --git a/plugins/context/ContextView.py b/plugins/context/ContextView.py
index ec8d3b8..cbaf453 100644
--- a/plugins/context/ContextView.py
+++ b/plugins/context/ContextView.py
@@ -87,8 +87,8 @@ class ContextView (GObject.GObject):
         self.tab[self.current].activate ()
 
         # Add button to toggle visibility of pane
-        self.action = ('ToggleContextView','gtk-info', _('Toggle Conte_xt Pane'),
-                        None, _('Change the visibility of the context pane'),
+        self.action = ('ToggleContextView','gtk-info', _("Toggle Conte_xt Pane"),
+                        None, _("Change the visibility of the context pane"),
                         self.toggle_visibility, True)
         self.action_group = Gtk.ActionGroup(name='ContextPluginActions')
         self.action_group.add_toggle_actions([self.action])
@@ -206,7 +206,7 @@ class ContextView (GObject.GObject):
         if self.current_artist != playing_artist:
             self.current_artist = playing_artist.replace ('&', '&amp;')
             # Translators: 'top' here means 'most popular'.  %s is replaced by the artist name.
-            self.label.set_markup(_('Top songs by %s') % ('<i>' + self.current_artist + '</i>'))
+            self.label.set_markup(_("Top songs by %s") % ('<i>' + self.current_artist + '</i>'))
             self.ds['artist'].fetch_top_tracks (self.current_artist)
 
         self.tab[self.current].reload()
@@ -239,7 +239,7 @@ class ContextView (GObject.GObject):
     def init_gui(self):
         self.vbox = Gtk.VBox()
         frame = Gtk.Frame()
-        self.label = Gtk.Label(_('Nothing Playing'))
+        self.label = Gtk.Label(_("Nothing Playing"))
         frame.set_shadow_type(Gtk.ShadowType.IN)
         frame.set_label_align(0.0,0.0)
         frame.set_label_widget(self.label)
diff --git a/plugins/lyrics/lyrics.py b/plugins/lyrics/lyrics.py
index 8850d8c..58e0009 100644
--- a/plugins/lyrics/lyrics.py
+++ b/plugins/lyrics/lyrics.py
@@ -340,8 +340,8 @@ class LyricsDisplayPlugin(GObject.Object, Peas.Activatable):
 
 	def do_activate (self):
 		shell = self.object
-		self.action = Gtk.Action (name='ViewSongLyrics', label=_('Song L_yrics'),
-					  tooltip=_('Display lyrics for the playing song'),
+		self.action = Gtk.Action (name='ViewSongLyrics', label=_("Song L_yrics"),
+					  tooltip=_("Display lyrics for the playing song"),
 					  stock_id='rb-song-lyrics')
 		self.activate_id = self.action.connect ('activate', self.show_song_lyrics, shell)
 		
diff --git a/plugins/magnatune/magnatune.py b/plugins/magnatune/magnatune.py
index 07ac3cb..6c032ab 100644
--- a/plugins/magnatune/magnatune.py
+++ b/plugins/magnatune/magnatune.py
@@ -108,17 +108,17 @@ class Magnatune(GObject.GObject, Peas.Activatable):
 		# Add the popup menu actions
 		self.action_group = Gtk.ActionGroup(name='MagnatunePluginActions')
 
-		action = Gtk.Action(name='MagnatuneDownloadAlbum', label=_('Download Album'),
+		action = Gtk.Action(name='MagnatuneDownloadAlbum', label=_("Download Album"),
 				tooltip=_("Download this album from Magnatune"),
 				stock_id='gtk-save')
 		action.connect('activate', lambda a: shell.props.selected_page.download_album())
 		self.action_group.add_action(action)
-		action = Gtk.Action(name='MagnatuneArtistInfo', label=_('Artist Information'),
+		action = Gtk.Action(name='MagnatuneArtistInfo', label=_("Artist Information"),
 				tooltip=_("Get information about this artist"),
 				stock_id='gtk-info')
 		action.connect('activate', lambda a: shell.props.selected_page.display_artist_info())
 		self.action_group.add_action(action)
-		action = Gtk.Action(name='MagnatuneCancelDownload', label=_('Cancel Downloads'),
+		action = Gtk.Action(name='MagnatuneCancelDownload', label=_("Cancel Downloads"),
 				tooltip=_("Stop downloading purchased albums"),
 				stock_id='gtk-stop')
 		action.connect('activate', lambda a: shell.props.selected_page.cancel_downloads())
diff --git a/plugins/pythonconsole/pythonconsole.py b/plugins/pythonconsole/pythonconsole.py
index a1c81af..6560774 100644
--- a/plugins/pythonconsole/pythonconsole.py
+++ b/plugins/pythonconsole/pythonconsole.py
@@ -75,13 +75,13 @@ class PythonConsolePlugin(GObject.Object, Peas.Activatable):
 		
 		data['action_group'] = Gtk.ActionGroup(name='PythonConsolePluginActions')
 
-		action = Gtk.Action(name='PythonConsole', label=_('_Python Console'),
+		action = Gtk.Action(name='PythonConsole', label=_("_Python Console"),
 		                    tooltip=_("Show Rhythmbox's python console"),
 		                    stock_id='gnome-mime-text-x-python')
 		action.connect('activate', self.show_console, shell)
 		data['action_group'].add_action(action)
 
-		action = Gtk.Action(name='PythonDebugger', label=_('Python Debugger'),
+		action = Gtk.Action(name='PythonDebugger', label=_("Python Debugger"),
 				    tooltip=_("Enable remote python debugging with rpdb2"),
 				    stock_id=None)
 		if have_rpdb2:
@@ -119,8 +119,8 @@ class PythonConsolePlugin(GObject.Object, Peas.Activatable):
 			                        destroy_cb = self.destroy_console)
 			console.set_size_request(600, 400)
 			console.eval('print "' + \
-			             _('You can access the main window ' \
-			             'through the \'shell\' variable :') +  
+			             _("You can access the main window " \
+			             "through the \'shell\' variable :") +  
 			             '\\n%s" % shell', False)
 	
 			self.window = Gtk.Window()
diff --git a/plugins/sendto/sendto.py b/plugins/sendto/sendto.py
index 1fae589..e5eead8 100644
--- a/plugins/sendto/sendto.py
+++ b/plugins/sendto/sendto.py
@@ -53,8 +53,8 @@ class SendToPlugin (GObject.Object, Peas.Activatable):
         GObject.Object.__init__(self)
 
     def do_activate(self):
-        self.__action = Gtk.Action(name='SendTo', label=_('Send to...'),
-                                tooltip=_('Send files by mail, instant message...'),
+        self.__action = Gtk.Action(name='SendTo', label=_("Send to..."),
+                                tooltip=_("Send files by mail, instant message..."),
                                 stock_id='')
 	shell = self.object
         self.__action.connect('activate', self.send_to, shell)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6950795..0709c64 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,6 +3,9 @@ backends/gstreamer/rb-encoder-gst.c
 backends/gstreamer/rb-player-gst.c
 backends/gstreamer/rb-player-gst-xfade.c
 backends/rb-player.c
+data/playlists.xml.in
+data/rhythmbox.desktop.in.in
+data/rhythmbox-device.desktop.in.in
 [type: gettext/glade]data/ui/create-playlist.ui
 [type: gettext/glade]data/ui/general-prefs.ui
 [type: gettext/glade]data/ui/library-prefs.ui
@@ -17,9 +20,6 @@ backends/rb-player.c
 [type: gettext/glade]data/ui/sync-dialog.ui
 [type: gettext/glade]data/ui/sync-state.ui
 [type: gettext/glade]data/ui/uri-new.ui
-data/playlists.xml.in
-data/rhythmbox.desktop.in.in
-data/rhythmbox-device.desktop.in.in
 lib/eggdesktopfile.c
 lib/eggsmclient.c
 lib/rb-cut-and-paste-code.c
@@ -31,29 +31,29 @@ metadata/rb-metadata-gst.c
 plugins/artdisplay/artdisplay.py
 plugins/artdisplay/CoverArtDatabase.py
 plugins/artdisplay/LastFMCoverArtSearch.py
-[type: gettext/ini]plugins/audiocd/audiocd.plugin.in
 [type: gettext/glade]plugins/audiocd/album-info.ui
+[type: gettext/ini]plugins/audiocd/audiocd.plugin.in
 [type: gettext/glade]plugins/audiocd/multiple-album.ui
 plugins/audiocd/rb-audiocd-plugin.c
 plugins/audiocd/rb-audiocd-source.c
 plugins/audiocd/sj-error.c
+plugins/audiocd/sj-metadata.c
 plugins/audiocd/sj-metadata-getter.c
 plugins/audiocd/sj-metadata-gvfs.c
-plugins/audiocd/sj-metadata.c
 plugins/audiocd/sj-structures.c
 [type: gettext/ini]plugins/audioscrobbler/audioscrobbler.plugin.in
 [type: gettext/glade]plugins/audioscrobbler/audioscrobbler-preferences.ui
 [type: gettext/glade]plugins/audioscrobbler/audioscrobbler-profile.ui
+plugins/audioscrobbler/rb-audioscrobbler.c
 plugins/audioscrobbler/rb-audioscrobbler-entry.c
 plugins/audioscrobbler/rb-audioscrobbler-plugin.c
 plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
 plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
-plugins/audioscrobbler/rb-audioscrobbler.c
 [type: gettext/ini]plugins/brasero-disc-recorder/cd-recorder.plugin.in
 plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
-[type: gettext/ini]plugins/context/context.plugin.in
 plugins/context/AlbumTab.py
 plugins/context/ArtistTab.py
+[type: gettext/ini]plugins/context/context.plugin.in
 plugins/context/ContextView.py
 plugins/context/LastFM.py
 plugins/context/LinksTab.py
@@ -74,8 +74,8 @@ plugins/daap/rb-rhythmdb-dmap-db-adapter.c
 plugins/dbus-media-server/rb-dbus-media-server-plugin.c
 [type: gettext/ini]plugins/fmradio/fmradio.plugin.in
 plugins/fmradio/rb-fm-radio-source.c
-[type: gettext/ini]plugins/generic-player/generic-player.plugin.in
 [type: gettext/glade]plugins/generic-player/generic-player-info.ui
+[type: gettext/ini]plugins/generic-player/generic-player.plugin.in
 plugins/generic-player/rb-generic-player-plugin.c
 plugins/generic-player/rb-generic-player-source.c
 plugins/generic-player/rb-nokia770-source.c
@@ -84,9 +84,9 @@ plugins/generic-player/rb-psp-source.c
 plugins/grilo/rb-grilo-plugin.c
 plugins/grilo/rb-grilo-source.c
 [type: gettext/ini]plugins/im-status/im-status.plugin.in
-[type: gettext/ini]plugins/ipod/ipod.plugin.in
 [type: gettext/glade]plugins/ipod/ipod-info.ui
 [type: gettext/glade]plugins/ipod/ipod-init.ui
+[type: gettext/ini]plugins/ipod/ipod.plugin.in
 plugins/ipod/rb-ipod-helpers.c
 plugins/ipod/rb-ipod-plugin.c
 plugins/ipod/rb-ipod-source.c
@@ -101,12 +101,14 @@ plugins/lyrics/LeoslyricsParser.py
 plugins/lyrics/LyrcParser.py
 plugins/lyrics/LyricsConfigureDialog.py
 plugins/lyrics/LyricsParse.py
-plugins/lyrics/LyricsSites.py
 [type: gettext/ini]plugins/lyrics/lyrics.plugin.in
 [type: gettext/glade]plugins/lyrics/lyrics-prefs.ui
+plugins/lyrics/lyrics.py
+plugins/lyrics/LyricsSites.py
 [type: gettext/glade]plugins/magnatune/magnatune-loading.ui
-[type: gettext/glade]plugins/magnatune/magnatune-prefs.ui
 [type: gettext/ini]plugins/magnatune/magnatune.plugin.in
+[type: gettext/glade]plugins/magnatune/magnatune-prefs.ui
+plugins/magnatune/magnatune.py
 plugins/magnatune/MagnatuneSource.py
 [type: gettext/ini]plugins/mmkeys/mmkeys.plugin.in
 [type: gettext/ini]plugins/mtpdevice/mtpdevice.plugin.in
@@ -120,20 +122,20 @@ plugins/mtpdevice/rb-mtp-thread.c
 plugins/notification/rb-notification-plugin.c
 [type: gettext/ini]plugins/power-manager/power-manager.plugin.in
 plugins/power-manager/rb-power-manager-plugin.c
-plugins/pythonconsole/pythonconsole.py
 [type: gettext/ini]plugins/pythonconsole/pythonconsole.plugin.in
+plugins/pythonconsole/pythonconsole.py
 [type: gettext/ini]plugins/rbzeitgeist/rbzeitgeist.plugin.in
-[type: gettext/ini]plugins/replaygain/replaygain.plugin.in
-[type: gettext/glade]plugins/replaygain/replaygain-prefs.ui
 plugins/replaygain/config.py
 plugins/replaygain/player.py
-plugins/sample-python/sample-python.py
+[type: gettext/ini]plugins/replaygain/replaygain.plugin.in
+[type: gettext/glade]plugins/replaygain/replaygain-prefs.ui
 [type: gettext/ini]plugins/sample-python/sample-python.plugin.in
+plugins/sample-python/sample-python.py
 plugins/sample/rb-sample-plugin.c
 [type: gettext/ini]plugins/sample/sample.plugin.in
 [type: gettext/ini]plugins/sample-vala/sample-vala.plugin.in
-plugins/sendto/sendto.py
 [type: gettext/ini]plugins/sendto/sendto.plugin.in
+plugins/sendto/sendto.py
 plugins/visualizer/rb-visualizer-fullscreen.c
 plugins/visualizer/rb-visualizer-menu.c
 plugins/visualizer/rb-visualizer-page.c
@@ -146,18 +148,18 @@ podcast/rb-podcast-parse.c
 podcast/rb-podcast-properties-dialog.c
 podcast/rb-podcast-source.c
 remote/dbus/rb-client.c
+rhythmdb/rhythmdb.c
 rhythmdb/rhythmdb-monitor.c
 rhythmdb/rhythmdb-property-model.c
 rhythmdb/rhythmdb-tree.c
-rhythmdb/rhythmdb.c
 shell/main.c
-shell/rb-play-order.c
 shell/rb-playlist-manager.c
+shell/rb-play-order.c
 shell/rb-removable-media-manager.c
+shell/rb-shell.c
 shell/rb-shell-clipboard.c
 shell/rb-shell-player.c
 shell/rb-shell-preferences.c
-shell/rb-shell.c
 shell/rb-source-header.c
 shell/rb-statusbar.c
 shell/rb-track-transfer-queue.c
@@ -169,8 +171,8 @@ sources/rb-import-errors-source.c
 sources/rb-library-source.c
 sources/rb-media-player-source.c
 sources/rb-missing-files-source.c
-sources/rb-play-queue-source.c
 sources/rb-playlist-source.c
+sources/rb-play-queue-source.c
 sources/rb-removable-media-source.c
 sources/rb-source.c
 sources/rb-static-playlist-source.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]