~rrt/wicd/tray-icon

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: David Paleino
  • Date: 2011-10-18 07:36:25 UTC
  • Revision ID: d.paleino@gmail.com-20111018073625-wg0c10ofdvy61uwh
Add po's from Rosetta, and implement message extraction (pybabel + xgettext)

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
        print 'running tests'
407
407
        tests.run_tests()
408
408
 
 
409
class update_message_catalog(Command):
 
410
    description = "update wicd.pot with new strings"
 
411
 
 
412
    user_options = []
 
413
 
 
414
    def initialize_options(self):
 
415
        pass
 
416
 
 
417
    def finalize_options(self):
 
418
        pass
 
419
 
 
420
    def run(self):
 
421
        os.system('pybabel extract . -o po/wicd.pot')
 
422
        os.system('xgettext -L glade data/wicd.ui -j -o po/wicd.pot')
 
423
        
 
424
 
409
425
class update_translations_py(Command):
410
426
    description = "download new translations.py from the online translator"
411
427
 
629
645
        'test' : test,
630
646
        'clear_generated' : clear_generated,
631
647
        'update_translations_py' : update_translations_py,
 
648
        'update_message_catalog' : update_message_catalog,
632
649
    },
633
650
    name = "Wicd",
634
651
    version = VERSION_NUM,