def installAllTestCaseClasses():
    shutil.copyfile(os.path.join(os.path.dirname(__file__), '../../i18n.in/messages.pot'), 'messages.po')
    from taskcoachlib.i18n import po2dict
    po2dict.make('messages')
    allStrings = set(po2dict.STRINGS)
    for language, enabled in getLanguages():
        installTestCaseClasses(language, enabled, allStrings)
Exemple #2
0
def installAllTestCaseClasses():
    shutil.copyfile(
        os.path.join(os.path.dirname(__file__), '../../i18n.in/messages.pot'),
        'messages.po')
    from taskcoachlib.i18n import po2dict
    po2dict.make('messages')
    allStrings = set(po2dict.STRINGS)
    for language, enabled in getLanguages():
        installTestCaseClasses(language, enabled, allStrings)
Exemple #3
0
def createPoDicts():
    for poFile in sorted(glob.glob("*.po")):
        print "Creating python dictionary from", poFile
        pyFile = po2dict.make(poFile)
        shutil.move(pyFile, "../taskcoachlib/i18n/%s" % pyFile)
def createPoDicts():
    for poFile in sorted(glob.glob('*.po')):
        print 'Creating python dictionary from', poFile
        pyFile = po2dict.make(poFile)
        shutil.move(pyFile, '../taskcoachlib/i18n/%s'%pyFile)