translate string correctly. fixes #4203
This commit is contained in:
parent
6cbb010330
commit
f00f22dd05
1 changed files with 6 additions and 3 deletions
|
@ -1572,10 +1572,13 @@ class ChatControl(ChatControlBase):
|
||||||
authenticated_string = _('and NOT authenticated')
|
authenticated_string = _('and NOT authenticated')
|
||||||
self.lock_image.set_from_file(os.path.join(gajim.DATA_DIR, 'pixmaps', 'security-low.png'))
|
self.lock_image.set_from_file(os.path.join(gajim.DATA_DIR, 'pixmaps', 'security-low.png'))
|
||||||
|
|
||||||
|
#status will become 'is' or 'is not', authentificaed will become
|
||||||
|
#'and authentificated' or 'and not authentificated', logged will become
|
||||||
|
#'will' or 'will not'
|
||||||
tooltip = _('%(type)s encryption %(status)s active %(authenticated)s.\n'
|
tooltip = _('%(type)s encryption %(status)s active %(authenticated)s.\n'
|
||||||
'Your chat session %(logged)s be logged.'\
|
'Your chat session %(logged)s be logged.') % {'type': enc_type,
|
||||||
% {'type': enc_type, 'status': status_string,
|
'status': status_string, 'authenticated': authenticated_string,
|
||||||
'authenticated': authenticated_string, 'logged': logged_string})
|
'logged': logged_string}
|
||||||
|
|
||||||
self.lock_tooltip.set_tip(self.authentication_button, tooltip)
|
self.lock_tooltip.set_tip(self.authentication_button, tooltip)
|
||||||
self.widget_set_visible(self.authentication_button, not visible)
|
self.widget_set_visible(self.authentication_button, not visible)
|
||||||
|
|
Loading…
Add table
Reference in a new issue