i18n: eliminate the need for .mo files
commitbcbc5599816a4759fb622e60551316288d68839b
authorDavid Aguilar <davvid@gmail.com>
Thu, 10 Mar 2022 17:25:25 +0000 (10 09:25 -0800)
committerDavid Aguilar <davvid@gmail.com>
Thu, 10 Mar 2022 17:25:25 +0000 (10 09:25 -0800)
tree11ee07b5d8270514ba308d37dfb7eb7cd8ceabd2
parent390f17a2277fe382b0fbadee8984e58e469fad26
i18n: eliminate the need for .mo files

python setup.py build is deprecated, and we are relying on
it to generate the .mo files that we use for translations.

Eliminate the dependency on .mo files and related tooling by
by using polib to parse the .po files directly.

Move the po/*.po files to cola/i18n/*.po.
Implement the i18n module using polib.

Related-to: #1201
30 files changed:
CONTRIBUTING.md
Makefile
README.md
cola/i18n.py
cola/i18n/cs.po [moved from po/cs.po with 100% similarity]
cola/i18n/de.po [moved from po/de.po with 100% similarity]
cola/i18n/es.po [moved from po/es.po with 100% similarity]
cola/i18n/fr.po [moved from po/fr.po with 100% similarity]
cola/i18n/git-cola.pot [moved from po/git-cola.pot with 100% similarity]
cola/i18n/glossary/de.po [moved from po/glossary/de.po with 100% similarity]
cola/i18n/glossary/it.po [moved from po/glossary/it.po with 100% similarity]
cola/i18n/glossary/zh_cn.po [moved from po/glossary/zh_cn.po with 100% similarity]
cola/i18n/glossary/zh_tw.po [moved from po/glossary/zh_tw.po with 100% similarity]
cola/i18n/hu.po [moved from po/hu.po with 100% similarity]
cola/i18n/id_ID.po [moved from po/id_ID.po with 100% similarity]
cola/i18n/it.po [moved from po/it.po with 100% similarity]
cola/i18n/ja.po [moved from po/ja.po with 100% similarity]
cola/i18n/pl.po [moved from po/pl.po with 100% similarity]
cola/i18n/pt_BR.po [moved from po/pt_BR.po with 100% similarity]
cola/i18n/ru.po [moved from po/ru.po with 100% similarity]
cola/i18n/sv.po [moved from po/sv.po with 100% similarity]
cola/i18n/tr_TR.po [moved from po/tr_TR.po with 100% similarity]
cola/i18n/uk.po [moved from po/uk.po with 100% similarity]
cola/i18n/zh_CN.po [moved from po/zh_CN.po with 100% similarity]
cola/i18n/zh_TW.po [moved from po/zh_TW.po with 100% similarity]
cola/resources.py
po/.gitignore [deleted file]
po/README [deleted file]
setup.cfg
test/i18n_test.py