Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Brötzmann <mailtrash@posteo.de>2018-10-19 11:53:59 +0300
committerDaniel Brötzmann <mailtrash@posteo.de>2018-10-20 19:18:36 +0300
commitdd5925eb969f449625751703f21cd698105734fe (patch)
treeb6d5a96837c3efe70d958a0541a241fad0db2bed /triggers
parent2030d11735e2f4661ebc62c8737841330f5efc07 (diff)
[triggers] Fix some strings
Diffstat (limited to 'triggers')
-rw-r--r--triggers/config_dialog.ui8
-rw-r--r--triggers/triggers.py14
2 files changed, 12 insertions, 10 deletions
diff --git a/triggers/config_dialog.ui b/triggers/config_dialog.ui
index 6a331bb..ca7a55d 100644
--- a/triggers/config_dialog.ui
+++ b/triggers/config_dialog.ui
@@ -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>
diff --git a/triggers/triggers.py b/triggers/triggers.py
index 05535c5..a7a5cc1 100644
--- a/triggers/triggers.py
+++ b/triggers/triggers.py
@@ -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()