Commit dd5925eb authored by Daniel Brötzmann's avatar Daniel Brötzmann

[triggers] Fix some strings

parent 2030d117
......@@ -127,7 +127,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">New rule</property>
<property name="label" translatable="yes">New</property>
<property name="label" translatable="yes">New rule</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-new</property>
<signal name="clicked" handler="on_new_button_clicked" swapped="no"/>
......@@ -142,7 +142,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Delete rule</property>
<property name="label" translatable="yes">Delete</property>
<property name="label" translatable="yes">Delete rule</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-delete</property>
<signal name="clicked" handler="on_delete_button_clicked" swapped="no"/>
......@@ -427,7 +427,7 @@
</child>
<child>
<object class="GtkCheckButton" id="dnd_cb">
<property name="label" translatable="yes">Busy </property>
<property name="label" translatable="yes">Busy</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
......@@ -538,7 +538,7 @@
</child>
<child>
<object class="GtkCheckButton" id="has_focus_cb">
<property name="label" translatable="yes">Has focus</property>
<property name="label" translatable="yes">Has focus</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
......
......@@ -305,7 +305,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
self.connect('hide', self.on_hide)
def on_run(self):
# fill window
# Fill window
for w in ('conditions_treeview', 'config_box', 'event_combobox',
'recipient_type_combobox', 'recipient_list_entry', 'delete_button',
'use_sound_cb', 'disable_sound_cb', 'use_popup_cb',
......@@ -331,12 +331,12 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
self.invisible_cb = self.xml.get_object('invisible_cb')
if not self.conditions_treeview.get_column(0):
# window never opened
# Window never opened
model = Gtk.ListStore(int, str)
model.set_sort_column_id(0, Gtk.SortType.ASCENDING)
self.conditions_treeview.set_model(model)
# means number
# '#' Means number
col = Gtk.TreeViewColumn(_('#'))
self.conditions_treeview.append_column(col)
renderer = Gtk.CellRendererText()
......@@ -485,9 +485,11 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
status = _('and I am: ')
for st in ('online', 'away', 'xa', 'dnd', 'invisible'):
if self.__dict__[st + '_cb'].get_active():
status += helpers.get_uf_show(st) + ', '
model[iter_][1] = _("When event: %s for category: %s %s %s") % (event,
recipient_type, recipient, status)
status += helpers.get_uf_show(st) + ' '
model[iter_][1] = _('When event: %(event)s for category: '
'%(recipient_type)s %(recipient)s %(status)s') % {
'event': event, 'recipient_type': recipient_type,
'recipient': recipient, 'status': status}
def on_conditions_treeview_cursor_changed(self, widget):
(model, iter_) = widget.get_selection().get_selected()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment