Fix translations texts in glade and python files

This commit is contained in:
Calum Lind 2011-06-03 19:01:20 +01:00
parent 9ae19e173f
commit 34c95a08a3
7 changed files with 13 additions and 16 deletions

View File

@ -1096,7 +1096,7 @@ also delete the .torrent file used to add it.</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkRadioButton" id="auto_managed">
<property name="label" translatable="yes">Yes</property>
<property name="label" translatable="no">gtk-yes</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@ -1112,7 +1112,7 @@ also delete the .torrent file used to add it.</property>
</child>
<child>
<widget class="GtkRadioButton" id="isnt_auto_managed">
<property name="label" translatable="yes">No</property>
<property name="label" translatable="no">gtk-no</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@ -1173,7 +1173,7 @@ also delete the .torrent file used to add it.</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkRadioButton" id="add_paused">
<property name="label" translatable="yes">Yes</property>
<property name="label" translatable="no">gtk-yes</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@ -1189,7 +1189,7 @@ also delete the .torrent file used to add it.</property>
</child>
<child>
<widget class="GtkRadioButton" id="isnt_add_paused">
<property name="label" translatable="yes">No</property>
<property name="label" translatable="no">gtk-no</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>

View File

@ -549,10 +549,7 @@
<widget class="GtkTextView" id="auto_add_trackers">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="text" translatable="yes">tracker1.org
tracker2.com
this doesn't do anything yet..
</property>
<property name="text" translatable="no">tracker1.org</property>
</widget>
</child>
</widget>

View File

@ -371,7 +371,7 @@ class CreateTorrentDialog:
def _on_create_torrent_progress(self, value, num_pieces):
percent = float(value)/float(num_pieces)
pbar = self.glade.get_widget("progressbar")
pbar.set_text(_("%.2f%%") % (percent*100))
pbar.set_text("%.2f%%" % (percent*100))
if percent >= 0 and percent <= 1.0:
pbar.set_fraction(percent)

View File

@ -34,7 +34,7 @@
<widget class="GtkLabel" id="label_header">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">label</property>
<property name="label" translatable="no">label</property>
<property name="use_markup">True</property>
</widget>
<packing>

View File

@ -741,7 +741,7 @@ used sparingly.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">0000</property>
<property name="label" translatable="no">0000</property>
<property name="width_chars">5</property>
</widget>
<packing>
@ -1146,7 +1146,7 @@ used sparingly.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="width_chars">4</property>
<property name="text" translatable="yes">0x00</property>
<property name="text">0x00</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="primary_icon_sensitive">True</property>

View File

@ -81,7 +81,7 @@ class MenuBar(component.Component):
item.set_name(menuitem)
item.connect("activate", self.on_menuitem_set_unlimited)
submenu.append(item)
item = gtk.MenuItem(_("Other.."))
item = gtk.MenuItem(_("Other..."))
item.set_name(menuitem)
item.connect("activate", self.on_menuitem_set_other)
submenu.append(item)

View File

@ -200,7 +200,7 @@ class SystemTray(component.Component):
except Exception, e:
log.debug("Unable to hide system tray menu widgets: %s", e)
self.tray.set_tooltip(_("Deluge\nNot Connected.."))
self.tray.set_tooltip(_("Deluge") + "\n" + _("Not Connected..."))
def shutdown(self):
if self.config["enable_system_tray"]:
@ -469,13 +469,13 @@ class SystemTray(component.Component):
vbox = gtk.VBox(spacing=5)
hbox.pack_start(vbox, False)
label = gtk.Label(_("<b><big>Deluge is password protected!</big></b>"))
label = gtk.Label("<b><big>%s</big></b>" % _("Deluge is password protected!"))
label.set_use_markup(True)
label.set_alignment(0.0, 0.5)
label.set_line_wrap(True)
vbox.pack_start(label, False)
tlabel = gtk.Label(_("<i>Enter your password to continue</i>"))
tlabel = gtk.Label("<i>%s</i>" % _("Enter your password to continue"))
tlabel.set_use_markup(True)
tlabel.set_alignment(0.0, 0.5)
tlabel.set_line_wrap(True)