fix remove dialog for multiple torrents
This commit is contained in:
parent
767a35c381
commit
ead53f3c88
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||||
<!--Generated with glade3 3.4.5 on Wed Nov 26 18:47:18 2008 -->
|
<!--Generated with glade3 3.4.5 on Thu Nov 27 19:10:40 2008 -->
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="remove_torrent_dialog">
|
<widget class="GtkDialog" id="remove_torrent_dialog">
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
|
@ -72,6 +72,7 @@
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">False</property>
|
||||||
<property name="padding">5</property>
|
<property name="padding">5</property>
|
||||||
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child internal-child="action_area">
|
<child internal-child="action_area">
|
||||||
|
@ -110,7 +111,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="label3">
|
<widget class="GtkLabel" id="button_data_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Remove With _Data</property>
|
<property name="label" translatable="yes">Remove With _Data</property>
|
||||||
|
@ -148,7 +149,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="label2">
|
<widget class="GtkLabel" id="button_ok_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label" translatable="yes">Remove _Torrent</property>
|
<property name="label" translatable="yes">Remove _Torrent</property>
|
||||||
|
|
|
@ -59,8 +59,8 @@ class RemoveTorrentDialog(object):
|
||||||
if len(self.__torrent_ids) > 1:
|
if len(self.__torrent_ids) > 1:
|
||||||
# We need to pluralize the dialog
|
# We need to pluralize the dialog
|
||||||
label_title = glade.get_widget("label_title")
|
label_title = glade.get_widget("label_title")
|
||||||
button_ok = glade.get_widget("button_ok")
|
button_ok = glade.get_widget("button_ok_label")
|
||||||
button_data = glade.get_widget("button_data")
|
button_data = glade.get_widget("button_data_label")
|
||||||
|
|
||||||
def pluralize_torrents(text):
|
def pluralize_torrents(text):
|
||||||
plural_torrent = _("Torrents")
|
plural_torrent = _("Torrents")
|
||||||
|
|
Loading…
Reference in New Issue