fix some translated strings
This commit is contained in:
parent
eaf9f1c3bc
commit
4eebf0e036
|
@ -167,7 +167,7 @@ class Config:
|
||||||
'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP.')],
|
'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP.')],
|
||||||
'version': [ opt_str, defs.version ], # which version created the config
|
'version': [ opt_str, defs.version ], # which version created the config
|
||||||
'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'],
|
'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'],
|
||||||
'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %%s in it where %%s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")],
|
'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")],
|
||||||
'always_english_wikipedia': [opt_bool, False],
|
'always_english_wikipedia': [opt_bool, False],
|
||||||
'always_english_wiktionary': [opt_bool, True],
|
'always_english_wiktionary': [opt_bool, True],
|
||||||
'remote_control': [opt_bool, True, _('If checked, Gajim can be controlled remotely using gajim-remote.'), True],
|
'remote_control': [opt_bool, True, _('If checked, Gajim can be controlled remotely using gajim-remote.'), True],
|
||||||
|
|
|
@ -409,8 +409,9 @@ class GajimRemote:
|
||||||
if command in self.commands:
|
if command in self.commands:
|
||||||
command_props = self.commands[command]
|
command_props = self.commands[command]
|
||||||
arguments_str = self.make_arguments_row(command_props[1])
|
arguments_str = self.make_arguments_row(command_props[1])
|
||||||
str = _('Usage: %s %s %s \n\t %s') % (BASENAME, command,
|
str = _('Usage: %(basename)s %(command)s %(arguments)s \n\t %(help)s')\
|
||||||
arguments_str, command_props[0])
|
% {'basename': BASENAME, 'command': command,
|
||||||
|
'arguments': arguments_str, 'help': command_props[0]}
|
||||||
if len(command_props[1]) > 0:
|
if len(command_props[1]) > 0:
|
||||||
str += '\n\n' + _('Arguments:') + '\n'
|
str += '\n\n' + _('Arguments:') + '\n'
|
||||||
for argument in command_props[1]:
|
for argument in command_props[1]:
|
||||||
|
@ -494,12 +495,14 @@ class GajimRemote:
|
||||||
args = self.commands[self.command][1]
|
args = self.commands[self.command][1]
|
||||||
if len(args) < argv_len:
|
if len(args) < argv_len:
|
||||||
send_error(_('Too many arguments. \n'
|
send_error(_('Too many arguments. \n'
|
||||||
'Type "%s help %s" for more info') % (BASENAME, self.command))
|
'Type "%(basename)s help %(command)s" for more info') % {
|
||||||
|
'basename': BASENAME, 'command': self.command})
|
||||||
if len(args) > argv_len:
|
if len(args) > argv_len:
|
||||||
if args[argv_len][2]:
|
if args[argv_len][2]:
|
||||||
send_error(_('Argument "%s" is not specified. \n'
|
send_error(_('Argument "%(arg)s" is not specified. \n'
|
||||||
'Type "%s help %s" for more info') %
|
'Type "%(basename)s help %(command)s" for more info') %
|
||||||
(args[argv_len][0], BASENAME, self.command))
|
{'arg': args[argv_len][0], 'basename': BASENAME,
|
||||||
|
'command': self.command})
|
||||||
self.arguments = []
|
self.arguments = []
|
||||||
i = 0
|
i = 0
|
||||||
for arg in sys.argv[2:]:
|
for arg in sys.argv[2:]:
|
||||||
|
|
|
@ -145,8 +145,8 @@ class PrivateChatControl(ChatControl):
|
||||||
dialogs.ErrorDialog(
|
dialogs.ErrorDialog(
|
||||||
_('Sending private message failed'),
|
_('Sending private message failed'),
|
||||||
#in second %s code replaces with nickname
|
#in second %s code replaces with nickname
|
||||||
_('You are no longer in group chat "%s" or "%s" has left.') % \
|
_('You are no longer in group chat "%(room)s" or "%(nick)s" has '
|
||||||
(room, nick))
|
'left.') % {'room': room, 'nick': nick})
|
||||||
return
|
return
|
||||||
|
|
||||||
ChatControl.send_message(self, message)
|
ChatControl.send_message(self, message)
|
||||||
|
@ -1062,7 +1062,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
self.new_nick = ''
|
self.new_nick = ''
|
||||||
s = _('You are now known as %s') % new_nick
|
s = _('You are now known as %s') % new_nick
|
||||||
else:
|
else:
|
||||||
s = _('%s is now known as %s') % (nick, new_nick)
|
s = _('%(nick)s is now known as %(new_nick)s') % {
|
||||||
|
'nick': nick, 'new_nick': new_nick}
|
||||||
# We add new nick to muc roster here, so we don't see
|
# We add new nick to muc roster here, so we don't see
|
||||||
# that "new_nick has joined the room" when he just changed nick.
|
# that "new_nick has joined the room" when he just changed nick.
|
||||||
# add_contact_to_roster will be called a second time
|
# add_contact_to_roster will be called a second time
|
||||||
|
@ -1211,7 +1212,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
if newly_created and print_status in ('all', 'in_and_out'):
|
if newly_created and print_status in ('all', 'in_and_out'):
|
||||||
st = _('%s has joined the group chat') % nick_jid
|
st = _('%s has joined the group chat') % nick_jid
|
||||||
elif print_status == 'all':
|
elif print_status == 'all':
|
||||||
st = _('%s is now %s') % (nick_jid, helpers.get_uf_show(show))
|
st = _('%(nick)s is now %(status)s') % {'nick': nick_jid,
|
||||||
|
'status': helpers.get_uf_show(show)}
|
||||||
if st:
|
if st:
|
||||||
if status:
|
if status:
|
||||||
st += ' (' + status + ')'
|
st += ' (' + status + ')'
|
||||||
|
@ -1553,9 +1555,9 @@ class GroupchatControl(ChatControlBase):
|
||||||
'optionally displays a reason. Does NOT support spaces in '
|
'optionally displays a reason. Does NOT support spaces in '
|
||||||
'nickname.') % command, 'info')
|
'nickname.') % command, 'info')
|
||||||
elif command == 'me':
|
elif command == 'me':
|
||||||
self.print_conversation(_('Usage: /%s <action>, sends action to the '
|
self.print_conversation(_('Usage: /%(command)s <action>, sends action '
|
||||||
'current group chat. Use third person. (e.g. /%s explodes.)') % \
|
'to the current group chat. Use third person. (e.g. /%(command)s '
|
||||||
(command, command), 'info')
|
'explodes.)') % {'command': command}, 'info')
|
||||||
elif command == 'msg':
|
elif command == 'msg':
|
||||||
s = _('Usage: /%s <nickname> [message], opens a private message window'
|
s = _('Usage: /%s <nickname> [message], opens a private message window'
|
||||||
' and sends message to the occupant specified by nickname.') % \
|
' and sends message to the occupant specified by nickname.') % \
|
||||||
|
@ -2321,4 +2323,4 @@ class GroupchatControl(ChatControlBase):
|
||||||
else:
|
else:
|
||||||
self.revoke_owner(widget, jid)
|
self.revoke_owner(widget, jid)
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -405,7 +405,7 @@ class MessageWindow(object):
|
||||||
|
|
||||||
title = 'Gajim'
|
title = 'Gajim'
|
||||||
if label:
|
if label:
|
||||||
title = _('%s - %s') % (label, title)
|
title = '%s - %s' % (label, title)
|
||||||
|
|
||||||
if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERACCT:
|
if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERACCT:
|
||||||
title = title + ": " + control.account
|
title = title + ": " + control.account
|
||||||
|
@ -1088,4 +1088,4 @@ May be useful some day in the future?'''
|
||||||
ctrl.parent_win = mw
|
ctrl.parent_win = mw
|
||||||
mw.new_tab(ctrl)
|
mw.new_tab(ctrl)
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
Loading…
Reference in New Issue