[Libreoffice-commits] core.git: l10ntools/source

Zolnai Tamás zolnaitamas2000 at gmail.com
Sat May 25 13:24:41 PDT 2013


 l10ntools/source/export.cxx |    2 +-
 l10ntools/source/helper.cxx |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit f21a2374dc623604d26cec5ec3d5a8f7a8958b63
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date:   Sat May 25 22:23:57 2013 +0200

    Fix some escaping bug in l10ntools
    
    1. A typo in export.cxx makes not working replacing
    2. EscapeAll() ignored single backlash characters
    
    Change-Id: I1a5309778acdd601391f643ebf3c66d04a6601d4

diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 5d285ad..c15d81f 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -1201,7 +1201,7 @@ void Export::ConvertMergeContent( OString &rText )
     sal_Bool bNoClose = !rText.endsWith("\\\"");
 
 
-    rText = rText.replaceAll("\\\"'","\'"); // Temporary: until PO files contain escaped single quotes
+    rText = rText.replaceAll("\\\'","\'"); // Temporary: until PO files contain escaped single quotes
                                             // (Maybe next PO update solve this)
     rText =
         helper::escapeAll(
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx
index 6c3a0455..85bfe4a 100644
--- a/l10ntools/source/helper.cxx
+++ b/l10ntools/source/helper.cxx
@@ -46,6 +46,10 @@ OString unEscapeAll(
                 sReturn.append(rUnEscaped[nEscapedOne/2]);
                 ++nIndex;
             }
+            else
+            {
+                sReturn.append(rText[nIndex]);
+            }
         }
         else
             sReturn.append(rText[nIndex]);


More information about the Libreoffice-commits mailing list