Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte L
gajim-plugins
Commits
dd5925eb
Commit
dd5925eb
authored
Oct 19, 2018
by
Daniel Brötzmann
Browse files
[triggers] Fix some strings
parent
2030d117
Changes
2
Hide whitespace changes
Inline
Side-by-side
triggers/config_dialog.ui
View file @
dd5925eb
...
...
@@ -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>
...
...
triggers/triggers.py
View file @
dd5925eb
...
...
@@ -305,7 +305,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
self
.
connect
(
'hide'
,
self
.
on_hide
)
def
on_run
(
self
):
#
f
ill window
#
F
ill 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
):
#
w
indow never opened
#
W
indow never opened
model
=
Gtk
.
ListStore
(
int
,
str
)
model
.
set_sort_column_id
(
0
,
Gtk
.
SortType
.
ASCENDING
)
self
.
conditions_treeview
.
set_model
(
model
)
#
m
eans number
#
'#' M
eans 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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment