_('') in gajim-remote results in weird output
When user tries LANG=C gajim-remote help handle_uri, for example, output is:
Usage: gajim-remote handle_uri \<uri> [account]
Handle a xmpp:/ uri
Arguments:
uri -
account -
However, if gajim-remote uses current locale, output is:
Использование: gajim-remote handle_uri \<uri> [учётная запись]
Обработать ссылку формата «xmpp:/»
Аргументы:
uri - Project-Id-Version: ru
Report-Msgid-Bugs-To:
POT-Creation-Date: 2008-08-01 03:21+0900
PO-Revision-Date: 2008-08-01 03:57+0800
\<skipped />
As you see, it prints content of mo file, namely string where all information about the file is stored. This is because of format of po file:
msgid ""
msgstr ""
"Project-Id-Version: ru\n"
"Report-Msgid-Bugs-To: \n"
Note that this info is stored as translation of empty string. So every message like _('')
is being translated like this.
Currently, such empty messages are:
gajim-remote.py:221:(_('account'), _(''), False)
gajim-remote.py:228:(_('account'), _(''), False)
gajim-remote.py:254:(_('uri'), _(''), True),
gajim-remote.py:255:(_('account'), _(''), False)
gajim-remote.py:261:(_('room'), _(''), True),
gajim-remote.py:262:(_('nick'), _(''), False),
gajim-remote.py:263:(_('password'), _(''), False),
gajim-remote.py:264:(_('account'), _(''), False)