示例#1
0
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)
示例#2
0
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)
示例#3
0
文件: i18nUtils.py 项目: sup6/pali
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)
示例#4
0
文件: i18nUtils.py 项目: sup6/pali
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)