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
......@@ -67,6 +67,9 @@ void StringParser::Extract( const OString& rPOFile )
pCurrent; pCurrent = pCurrent->next)
{
if (!xmlStrcmp(pCurrent->name, (const xmlChar*)("string")))
{
xmlChar* pTranslatable = xmlGetProp(pCurrent, (const xmlChar*)("translatable"));
if (xmlStrcmp(pTranslatable, (const xmlChar*)("false")))
{
xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name"));
xmlChar* pText = xmlNodeGetContent(pCurrent);
......@@ -80,6 +83,8 @@ void StringParser::Extract( const OString& rPOFile )
xmlFree( pID );
xmlFree( pText );
}
xmlFree( pTranslatable );
}
}
xmlFreeDoc( m_pSource );
......
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