nsi translations: finally escape the NSIS lineends correctly.
authorKlaas Freitag <freitag@owncloud.com>
Mon, 8 Feb 2016 15:10:25 +0000 (16:10 +0100)
committerKlaas Freitag <freitag@owncloud.com>
Mon, 8 Feb 2016 15:11:18 +0000 (16:11 +0100)
This will now finally fix #3519

admin/win/nsi/l10n/bin/build_locale_nsi.py

index cfd7f07f7a1e4c5118314a1d7cc7fa7127dcca28..977f62887c9908ed5e244f785076bf12a0d2f908 100755 (executable)
@@ -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]