improve string and add comment for translators

This commit is contained in:
Yann Leboulanger 2018-01-09 10:31:50 +01:00
parent 54146ba63d
commit aa6e9e7084
2 changed files with 2 additions and 1 deletions

View File

@ -1487,7 +1487,7 @@ class FileChooserDialog(Gtk.FileChooserDialog):
class AspellDictError: class AspellDictError:
def __init__(self, lang): def __init__(self, lang):
ErrorDialog( ErrorDialog(
_('Dictionary for lang "%s" not available') % lang, _('Dictionary for language "%s" not available') % lang,
_('You have to install the dictionary "%s" to use spellchecking, ' _('You have to install the dictionary "%s" to use spellchecking, '
'or choose another language by setting the speller_language ' 'or choose another language by setting the speller_language '
'option.\n\n' 'option.\n\n'

View File

@ -4535,6 +4535,7 @@ class RosterWindow:
# c_dest is None if jid_dest doesn't belong to account # c_dest is None if jid_dest doesn't belong to account
return return
menu = Gtk.Menu() menu = Gtk.Menu()
#from and to are the names of contacts
item = Gtk.MenuItem.new_with_label(_('Send %(from)s to %(to)s') % { item = Gtk.MenuItem.new_with_label(_('Send %(from)s to %(to)s') % {
'from': c_source.get_shown_name(), 'to': c_dest.get_shown_name()}) 'from': c_source.get_shown_name(), 'to': c_dest.get_shown_name()})
item.set_use_underline(False) item.set_use_underline(False)