def updateLocalePO(locale): popath = getPoPathFromLocale(locale) if not os.path.exists(os.path.dirname(popath)): os.makedirs(os.path.dirname(popath)) cmd_msginit = 'msgmerge --no-wrap --backup=none --update %s %s' % (popath, getPotPath()) print(cmd_msginit) os.system(cmd_msginit)
def initLocalePO(locale): popath = getPoPathFromLocale(locale) if not os.path.exists(os.path.dirname(popath)): os.makedirs(os.path.dirname(popath)) cmd_msginit = 'msginit --no-wrap --no-translator --input=%s --locale=%s -o %s' % (getPotPath(), locale, popath) print(cmd_msginit) os.system(cmd_msginit)
def updateLocalePO(locale): popath = getPoPathFromLocale(locale) if not os.path.exists(os.path.dirname(popath)): os.makedirs(os.path.dirname(popath)) cmd_msginit = 'msgmerge --no-wrap --backup=none --update %s %s' % ( popath, getPotPath()) print(cmd_msginit) os.system(cmd_msginit)
def initLocalePO(locale): popath = getPoPathFromLocale(locale) if not os.path.exists(os.path.dirname(popath)): os.makedirs(os.path.dirname(popath)) cmd_msginit = 'msginit --no-wrap --no-translator --input=%s --locale=%s -o %s' % ( getPotPath(), locale, popath) print(cmd_msginit) os.system(cmd_msginit)