From b70a95ba30a6b26510f445e07b6037907739feeb Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 8 Feb 2016 16:10:25 +0100 Subject: nsi translations: finally escape the NSIS lineends correctly. This will now finally fix #3519 --- admin/win/nsi/l10n/bin/build_locale_nsi.py | 5 +++-- 1 file 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] -- cgit v1.2.3