Use the new gettext infrastructure for i18n
commita3921f7c21b89ec6874956c21da5346d8c484d94
authorDavid Aguilar <davvid@gmail.com>
Mon, 29 Mar 2010 22:49:06 +0000 (29 15:49 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 30 Mar 2010 00:06:02 +0000 (29 17:06 -0700)
tree9864e8e26708cdbabef2732fba180ea95dfad225
parentdb70e338b8a88e77c745be9deb1f93178e4aa3c6
Use the new gettext infrastructure for i18n

This adds a cola.i18n module for doing gettext translations.
This does away with the qm-based translation system in favor
of a standard gettext setup.

We still monkey-patch QApplication.translate() with our
own custom translator.  The main difference is switching
from a Qt-specific QTranslator translation system to a
gettext-based one.

Signed-off-by: David Aguilar <davvid@gmail.com>
22 files changed:
.gitignore
Makefile
cola/app.py
cola/i18n.py [new file with mode: 0644]
cola/qt.py
extras/__init__.py
extras/build_mo.py
extras/build_pot.py
extras/build_qm.py [deleted file]
po/.gitignore [moved from share/git-cola/po/.gitignore with 100% similarity]
po/README [moved from share/git-cola/po/README with 100% similarity]
po/de.po [moved from share/git-cola/po/de.po with 100% similarity]
po/fr.po [moved from share/git-cola/po/fr.po with 100% similarity]
po/glossary/de.po [moved from share/git-cola/po/glossary/de.po with 100% similarity]
po/glossary/it.po [moved from share/git-cola/po/glossary/it.po with 100% similarity]
po/glossary/zh_cn.po [moved from share/git-cola/po/glossary/zh_cn.po with 100% similarity]
po/hu.po [moved from share/git-cola/po/hu.po with 100% similarity]
po/it.po [moved from share/git-cola/po/it.po with 100% similarity]
po/ja.po [moved from share/git-cola/po/ja.po with 100% similarity]
po/ru.po [moved from share/git-cola/po/ru.po with 100% similarity]
po/sv.po [moved from share/git-cola/po/sv.po with 100% similarity]
po/zh_cn.po [moved from share/git-cola/po/zh_cn.po with 100% similarity]