Comment 19 for bug 204705

Revision history for this message
Bruno Gomes (blfgomes) wrote : Re: wrong translation on gnome for "Terminal" and "Mouse" in pt-br

I found out what is causing this bug...
It turns out that the file /usr/share/locale-langpack/pt_BR/LC_MESSAGES/gnome-terminal.mo does not have a msgid "Terminal". You can look at the contents of this file with the command below:
$ msgunfmt /usr/share/locale-langpack/pt_BR/LC_MESSAGES/gnome-terminal.mo | less

When 'gettext' tries to find the msgstr that corresponds to the msgid "Terminal" in the 'pt_BR' directory and it does not find it, it falls back to the 'pt' directory and uses that translation instead.

I discovered the issue by running 'strace' against 'gettext':
$ strace gettext gnome-terminal Terminal

I assume the "Mouse" translation bug is caused by a similar problem, but I haven't checked yet.