from waflib import Logs
def command(c):
- print c
+ print(c)
os.system(c)
def pot(dir, sources, name):
s = ""
- for f in sources.split('\n'):
+ for f in sources.split():
t = f.strip()
if len(t) > 0:
s += (os.path.join(dir, t)) + " "
except:
pass
- command('xgettext -d %s -s --keyword=_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
+ command('xgettext -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
def pot_merge(dir, name):
for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):