[Pkg-owncloud-commits] [owncloud-client] 163/171: nsi translations: finally escape the NSIS lineends correctly.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Feb 17 09:37:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.

commit b70a95ba30a6b26510f445e07b6037907739feeb
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Feb 8 16:10:25 2016 +0100

    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 cfd7f07..977f628 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]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list