Kaydet (Commit) ba433c69 authored tarafından Andras Timar's avatar Andras Timar

do not extract translatable="false" strings from Android resource

Change-Id: Id00ce654b99426c771b647e0ae6be02bfdc24359
üst 2531d750
...@@ -68,17 +68,22 @@ void StringParser::Extract( const OString& rPOFile ) ...@@ -68,17 +68,22 @@ void StringParser::Extract( const OString& rPOFile )
{ {
if (!xmlStrcmp(pCurrent->name, (const xmlChar*)("string"))) if (!xmlStrcmp(pCurrent->name, (const xmlChar*)("string")))
{ {
xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name")); xmlChar* pTranslatable = xmlGetProp(pCurrent, (const xmlChar*)("translatable"));
xmlChar* pText = xmlNodeGetContent(pCurrent); if (xmlStrcmp(pTranslatable, (const xmlChar*)("false")))
const OString sTemp = {
helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'"); xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name"));
common::writePoEntry( xmlChar* pText = xmlNodeGetContent(pCurrent);
"Stringex", aPOStream, m_pSource->name, "string", const OString sTemp =
helper::xmlStrToOString( pID ), OString(), OString(), helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'");
sTemp); common::writePoEntry(
"Stringex", aPOStream, m_pSource->name, "string",
helper::xmlStrToOString( pID ), OString(), OString(),
sTemp);
xmlFree( pID ); xmlFree( pID );
xmlFree( pText ); xmlFree( pText );
}
xmlFree( pTranslatable );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment