diff options
-rw-r--r-- | l10ntools/source/stringmerge.cxx | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/l10ntools/source/stringmerge.cxx b/l10ntools/source/stringmerge.cxx index 9e3fa7a270d3..d6ffbc67062f 100644 --- a/l10ntools/source/stringmerge.cxx +++ b/l10ntools/source/stringmerge.cxx @@ -68,17 +68,22 @@ void StringParser::Extract( const OString& rPOFile ) { if (!xmlStrcmp(pCurrent->name, (const xmlChar*)("string"))) { - xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name")); - xmlChar* pText = xmlNodeGetContent(pCurrent); - const OString sTemp = - helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'"); - common::writePoEntry( - "Stringex", aPOStream, m_pSource->name, "string", - helper::xmlStrToOString( pID ), OString(), OString(), - sTemp); + xmlChar* pTranslatable = xmlGetProp(pCurrent, (const xmlChar*)("translatable")); + if (xmlStrcmp(pTranslatable, (const xmlChar*)("false"))) + { + xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name")); + xmlChar* pText = xmlNodeGetContent(pCurrent); + const OString sTemp = + helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'"); + common::writePoEntry( + "Stringex", aPOStream, m_pSource->name, "string", + helper::xmlStrToOString( pID ), OString(), OString(), + sTemp); - xmlFree( pID ); - xmlFree( pText ); + xmlFree( pID ); + xmlFree( pText ); + } + xmlFree( pTranslatable ); } } |