mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +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('\"', 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]
|
||||
|
|
Loading…
Reference in a new issue