You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ja...@apache.org on 2013/10/01 18:09:31 UTC

svn commit: r1528130 - /openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx

Author: jani
Date: Tue Oct  1 16:09:30 2013
New Revision: 1528130

URL: http://svn.apache.org/r1528130
Log:
corrected translation error, module officecfg (.xcu) files works with genLang.
Continue test with module readlicense_oo (.xrm)

Modified:
    openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx

Modified: openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx?rev=1528130&r1=1528129&r2=1528130&view=diff
==============================================================================
--- openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx (original)
+++ openoffice/branches/l10n40/main/l10ntools/source/gL10nMem.cxx Tue Oct  1 16:09:30 2013
@@ -698,11 +698,14 @@ static const char *newStr[]       = {"&a
 static const int   newLen[]       = {5,       6,        4,      4,      6,        0    };
   int i, pos;
 
-  for (i = pos = 0; replacingStr[i]; i++)
+  for (i = 0; replacingStr[i]; i++)
+  {
+    pos = 0;
     while((pos = sText.find(replacingStr[i], pos)) != std::string::npos) {
          sText.replace(pos, replacingLen[i], newStr[i]);
          pos += newLen[i];
     }
+  }
 }
 
 
@@ -716,9 +719,12 @@ static const char *newStr[]       = {"&"
 static const int   newLen[]       = {1,       1,        1,      1,      1,        0    };
   int i, pos;
 
-  for (i = pos = 0; replacingStr[i]; i++)
+  for (i = 0; replacingStr[i]; i++)
+  {
+    pos = 0;
     while((pos = sText.find(replacingStr[i], pos)) != std::string::npos) {
          sText.replace(pos, replacingLen[i], newStr[i]);
          pos += newLen[i];
     }
+  }
 }