diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-05-22 15:37:25 +0200 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-05-22 18:46:45 +0200 |
commit | 851b3afb28a87934b933184af2ebb8f8144815ab (patch) | |
tree | 98db2c6094b7bdd701683cbe8c388e131a4d4f48 /l10ntools | |
parent | c4318b8c1912c1ee947d96b02b3d4abf2eaf65f6 (diff) |
l10ntools: support x-comments in ulf format
Change-Id: I9e2812b02348538aa5bb6a130530d12b31a374dd
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/lngmerge.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx index 5465d556a023..959a93c2961f 100644 --- a/l10ntools/source/lngmerge.cxx +++ b/l10ntools/source/lngmerge.cxx @@ -114,6 +114,7 @@ bool LngParser::CreatePO( const OString &rPOFile ) else { WritePO( aPOStream , Text , sSource , sID ); } + Text.erase("x-comment"); } aPOStream.close(); return true; @@ -129,7 +130,7 @@ void LngParser::WritePO(PoOfstream &aPOStream, { common::writePoEntry( "Ulfex", aPOStream, rActFileName, "LngText", - rID, OString(), OString(), rText_inout["en-US"]); + rID, OString(), rText_inout.count("x-comment") ? rText_inout["x-comment"] : OString(), rText_inout["en-US"]); } } |