mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
nsi translations: finally escape the NSIS lineends correctly.
This will now finally fix #3519
This commit is contained in:
parent
72e14643f7
commit
b70a95ba30
1 changed files with 3 additions and 2 deletions
|
@ -108,7 +108,8 @@ def escapeNSIS(st):
|
||||||
.replace('\n', r'$\n')\
|
.replace('\n', r'$\n')\
|
||||||
.replace('\"', r'$\"')\
|
.replace('\"', r'$\"')\
|
||||||
.replace('$$\\', '$\\')\
|
.replace('$$\\', '$\\')\
|
||||||
.replace('$\\n', r'$\n')
|
.replace('$\\n', r'$\n')\
|
||||||
|
.replace('$\\\\n', r'$\n')
|
||||||
|
|
||||||
|
|
||||||
translationCache = {}
|
translationCache = {}
|
||||||
|
@ -120,7 +121,7 @@ translationCache = {}
|
||||||
for root,dirs,files in os.walk(options.podir):
|
for root,dirs,files in os.walk(options.podir):
|
||||||
for file in files:
|
for file in files:
|
||||||
filename,ext = os.path.splitext(file)
|
filename,ext = os.path.splitext(file)
|
||||||
if ext == ".po" or ext == ".nsh":
|
if ext == ".po":
|
||||||
# Valid locale filename (fr.po, de.po etc)?
|
# Valid locale filename (fr.po, de.po etc)?
|
||||||
if filename in localeToName:
|
if filename in localeToName:
|
||||||
language = localeToName[filename]
|
language = localeToName[filename]
|
||||||
|
|
Loading…
Reference in a new issue