summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-06-22 18:54:01 +0200
committerAndras Timar <atimar@suse.com>2013-06-22 22:23:06 +0200
commitf60520f7b887dcaa4663fb408660e87e6881352a (patch)
tree686f23785f8037ced3e5653e8fdf344e135c0cf4 /l10ntools
parent46b09ee63e901a9c8fdc41fe16398a932be35340 (diff)
fdo#66048: export cannot handle starting \\\"
Old stuff. By now we always have to add double quotes to the edges of text. Change-Id: I14ca7283d723bf87fb232288d92e53393e90103e Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index c15d81fe22e5..44672df9a8c4 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -1197,10 +1197,6 @@ void Export::WriteToMerged(const OString &rText , bool bSDFContent)
void Export::ConvertMergeContent( OString &rText )
{
- sal_Bool bNoOpen = ( rText.indexOf( "\\\"" ) != 0 );
- sal_Bool bNoClose = !rText.endsWith("\\\"");
-
-
rText = rText.replaceAll("\\\'","\'"); // Temporary: until PO files contain escaped single quotes
// (Maybe next PO update solve this)
rText =
@@ -1208,11 +1204,7 @@ void Export::ConvertMergeContent( OString &rText )
rText.replaceAll("","\\0x7F"),
"\n""\t""\\""\"","\\n""\\t""\\\\""\\\"");
- if ( bNoOpen )
- rText = "\"" + rText;
-
- if ( bNoClose )
- rText += "\"";
+ rText = "\"" + rText + "\"";
}
void Export::ConvertExportContent( OString& rText )