summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-05-26 08:30:22 +0200
committerAndras Timar <atimar@suse.com>2013-05-26 09:21:35 +0200
commita3eca34a471e4111877bb35170f90f20463a02c3 (patch)
treeb90d8476b47dd503e12b5078cc2748f9e67a5637 /l10ntools
parent4e41e4aaa39e78102e989146c24154a85a08a59b (diff)
Escape quotes during stringex export
Change-Id: If53afd3743f44bcfffab33122657d14c0f4aba1e
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/stringmerge.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/stringmerge.cxx b/l10ntools/source/stringmerge.cxx
index 34c978b45493..9e3fa7a270d3 100644
--- a/l10ntools/source/stringmerge.cxx
+++ b/l10ntools/source/stringmerge.cxx
@@ -71,7 +71,7 @@ void StringParser::Extract( const OString& rPOFile )
xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name"));
xmlChar* pText = xmlNodeGetContent(pCurrent);
const OString sTemp =
- helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t","\n""\t");
+ helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'");
common::writePoEntry(
"Stringex", aPOStream, m_pSource->name, "string",
helper::xmlStrToOString( pID ), OString(), OString(),
@@ -130,7 +130,7 @@ void StringParser::Merge(
{
xmlChar* pText = xmlNodeGetContent(pCurrent);
const OString sOriginText =
- helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t","\n""\t");
+ helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'");
xmlFree( pText );
sNewText = MergeEntrys::GetQTZText(aResData, sOriginText);
}