Comment 12 for bug 1932579

Revision history for this message
Carlos Eduardo Alves (kmiksi) wrote :

@iogui, every system I've tried works well with that workaround (4 installations with Ubuntu 20.04). Please reinstall language-pack-pt-base an try again.

Yes, it is a binary file, a gettext .po compiled into a .mo. The sed is a quick workaround that works fine for me even with the binary. If you continue having problems, another way is retranslating with these commands:
```
sudo cp /usr/share/locale-langpack/pt/LC_MESSAGES/snappy.mo /usr/share/locale-langpack/pt/LC_MESSAGES/snappy.mo~
msgunfmt /usr/share/locale-langpack/pt/LC_MESSAGES/snappy.mo > /tmp/snappy.po
sed -i 's/o directório de destino/O directório de destino/' /tmp/snappy.po # or edit with PoEditor
sudo msgfmt /tmp/snappy.po -o /usr/share/locale-langpack/pt/LC_MESSAGES/snappy.mo
```

I can't find the origin of these translations to contribute to language-pack-pt-base.
Do you know about these translations and how to contribute?
I only find some git hooks in the sources manipulating translation contents, but don't understood clearly how it is done. Some help is welcome.