Browse Source

tools/extract_pot.py should convert NSIS's $\n and $\r to POT's \\n and \\r

tags/0.6.0
ShyPike 14 years ago
parent
commit
2b6411efb0
  1. 4
      tools/extract_pot.py

4
tools/extract_pot.py

@ -187,10 +187,12 @@ dst.write('\n')
count = 0
for line in src:
count += 1
if 'Please, first check' in line:
pass
m = RE_NSIS.search(line)
if m:
dst.write('#: %s:%s\n' % (NSIS, count))
text = m.group(1).replace('$\\"', '\\"').replace('$\\', '\\')
text = m.group(1).replace('$\\"', '\\"').replace('$\\', '\\\\')
dst.write('msgid %s\n' % text)
dst.write('msgstr ""\n\n')
dst.close()

Loading…
Cancel
Save