1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 21:38:06 +01:00

Add po's from Rosetta, and implement message extraction (pybabel + xgettext)

This commit is contained in:
David Paleino
2011-10-18 09:36:25 +02:00
parent 2be5a06ff7
commit bf648ab956
58 changed files with 44604 additions and 0 deletions

View File

@@ -406,6 +406,22 @@ class test(Command):
print 'running tests'
tests.run_tests()
class update_message_catalog(Command):
description = "update wicd.pot with new strings"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('pybabel extract . -o po/wicd.pot')
os.system('xgettext -L glade data/wicd.ui -j -o po/wicd.pot')
class update_translations_py(Command):
description = "download new translations.py from the online translator"
@@ -629,6 +645,7 @@ setup(
'test' : test,
'clear_generated' : clear_generated,
'update_translations_py' : update_translations_py,
'update_message_catalog' : update_message_catalog,
},
name = "Wicd",
version = VERSION_NUM,