goa/tools/i18n.py
changeset 447 0e52d72104a6
parent 0 b97547f5f1fa
equal deleted inserted replaced
446:3a3ab6bbccc5 447:0e52d72104a6
   219     print '*' * 72
   219     print '*' * 72
   220     print 'updating %s cube...' % tmpl
   220     print 'updating %s cube...' % tmpl
   221     os.chdir(appdirectory)
   221     os.chdir(appdirectory)
   222     potfiles = []
   222     potfiles = []
   223     if osp.exists(osp.join('i18n', 'entities.pot')):
   223     if osp.exists(osp.join('i18n', 'entities.pot')):
   224         potfiles = potfiles.append( osp.join('i18n', scfile) )
   224         potfiles = potfiles.append( osp.join('i18n', 'entities.pot') )
   225     print '******** extract schema messages'
   225     print '******** extract schema messages'
   226     schemapot = osp.join(tempdir, 'schema.pot')
   226     schemapot = osp.join(tempdir, 'schema.pot')
   227     potfiles.append(schemapot)
   227     potfiles.append(schemapot)
   228     # XXX
   228     # XXX
   229     generate_schema_pot(open(schemapot, 'w').write, vreg, appdirectory)
   229     generate_schema_pot(open(schemapot, 'w').write, vreg, appdirectory)