nsi translations: finally escape the NSIS lineends correctly.

This will now finally fix #3519
This commit is contained in:
Klaas Freitag 2016-02-08 16:10:25 +01:00
parent 72e14643f7
commit b70a95ba30

View file

@ -108,7 +108,8 @@ def escapeNSIS(st):
.replace('\n', r'$\n')\
.replace('\"', r'$\"')\
.replace('$$\\', '$\\')\
.replace('$\\n', r'$\n')
.replace('$\\n', r'$\n')\
.replace('$\\\\n', r'$\n')
translationCache = {}
@ -120,7 +121,7 @@ translationCache = {}
for root,dirs,files in os.walk(options.podir):
for file in files:
filename,ext = os.path.splitext(file)
if ext == ".po" or ext == ".nsh":
if ext == ".po":
# Valid locale filename (fr.po, de.po etc)?
if filename in localeToName:
language = localeToName[filename]