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 )
{
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 );
}
}
......
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