totem r6042 - in trunk: . src/plugins/coherence_upnp
- From: pwithnall svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r6042 - in trunk: . src/plugins/coherence_upnp
- Date: Tue, 3 Mar 2009 20:27:29 +0000 (UTC)
Author: pwithnall
Date: Tue Mar 3 20:27:29 2009
New Revision: 6042
URL: http://svn.gnome.org/viewvc/totem?rev=6042&view=rev
Log:
2009-03-03 Philip Withnall <philip tecnocode co uk>
* src/plugins/coherence_upnp/coherence_upnp.py: Mark some strings
as translatable and ensure gettext is imported to the Coherence
plugin.
Modified:
trunk/ChangeLog
trunk/src/plugins/coherence_upnp/coherence_upnp.py
Modified: trunk/src/plugins/coherence_upnp/coherence_upnp.py
==============================================================================
--- trunk/src/plugins/coherence_upnp/coherence_upnp.py (original)
+++ trunk/src/plugins/coherence_upnp/coherence_upnp.py Tue Mar 3 20:27:29 2009
@@ -10,8 +10,10 @@
from coherence.ui.av_widgets import TreeWidget
from coherence.ui.av_widgets import UDN_COLUMN,UPNP_CLASS_COLUMN,SERVICE_COLUMN
-
import totem
+import gettext
+
+_ = gettext.gettext
class UPnPClient(totem.Plugin):
@@ -73,9 +75,11 @@
if not hasattr(self, 'context_no_delete'):
self.context_no_delete = gtk.Menu()
- play_menu = gtk.MenuItem("Play")
+ # Translators: this refers to a media file
+ play_menu = gtk.MenuItem(_("Play"))
play_menu.connect("activate", action, 'item.play')
- enqueue_menu = gtk.MenuItem("Enqueue")
+ # Translators: this refers to a media file
+ enqueue_menu = gtk.MenuItem(_("Enqueue"))
enqueue_menu.connect("activate", action, 'item.enqueue')
self.context_no_delete.append(play_menu)
self.context_no_delete.append(enqueue_menu)
@@ -83,14 +87,17 @@
if not hasattr(self, 'context_with_delete'):
self.context_with_delete = gtk.Menu()
- play_menu = gtk.MenuItem("Play")
+ # Translators: this refers to a media file
+ play_menu = gtk.MenuItem(_("Play"))
play_menu.connect("activate", action, 'item.play')
- enqueue_menu = gtk.MenuItem("Enqueue")
+ # Translators: this refers to a media file
+ enqueue_menu = gtk.MenuItem(_("Enqueue"))
enqueue_menu.connect("activate", action, 'item.enqueue')
self.context_with_delete.append(play_menu)
self.context_with_delete.append(enqueue_menu)
self.context_with_delete.append(gtk.SeparatorMenuItem())
- menu = gtk.MenuItem("Delete")
+ # Translators: this refers to a media file
+ menu = gtk.MenuItem(_("Delete"))
menu.connect("activate", action, 'item.delete')
self.context_with_delete.append(menu)
self.context_with_delete.show_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]