Home
last modified time | relevance | path

Searched refs:transUnit (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/tools/localize/
DXLIFFFile.cpp90 XMLNode* transUnit = transUnits[j]; in Parse() local
92 string rawID = transUnit->GetAttribute("", "id", ""); in Parse()
94 transUnit->Position().Error("<trans-unit> tag requires an id"); in Parse()
101 transUnit->Position().Error("<trans-unit> has invalid id '%s'\n", rawID.c_str()); in Parse()
106 XMLNode* source = get_unique_node(transUnit, XLIFF_XMLNS, "source", false); in Parse()
116 XMLNode* target = get_unique_node(transUnit, XLIFF_XMLNS, "target", false); in Parse()
126 XMLNode* altTrans = get_unique_node(transUnit, XLIFF_XMLNS, "alt-trans", false); in Parse()
503 const TransUnit& transUnit = transUnits[j]; in ToXMLNode() local
508 tuAttrs.push_back(XMLAttribute(XLIFF_XMLNS, "id", transUnit.id)); in ToXMLNode()
514 if (transUnit.source.comment != "") { in ToXMLNode()
[all …]