diff options
author | Klaas Freitag <freitag@owncloud.com> | 2016-02-08 18:10:25 +0300 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2016-02-08 18:11:18 +0300 |
commit | b70a95ba30a6b26510f445e07b6037907739feeb (patch) | |
tree | 3c395f13a45d2c805ae7f276a43571c1b9c71bfe | |
parent | 72e14643f784113e9e026259f1de173d036151bc (diff) |
nsi translations: finally escape the NSIS lineends correctly.
This will now finally fix #3519
-rwxr-xr-x | admin/win/nsi/l10n/bin/build_locale_nsi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/win/nsi/l10n/bin/build_locale_nsi.py b/admin/win/nsi/l10n/bin/build_locale_nsi.py index cfd7f07f7..977f62887 100755 --- a/admin/win/nsi/l10n/bin/build_locale_nsi.py +++ b/admin/win/nsi/l10n/bin/build_locale_nsi.py @@ -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] |