Lines Matching refs:child
125 for child in root:
127 if isinstance(child, ET._Comment):
128 last_comment = child
129 elif child.tag == "string":
135 text = "".join(child.itertext())
136 sample = "".join(sample_iter(child)).strip().strip("'\"")
140 info(child, "Missing string comment to aid translation",
145 if "translatable" in child.attrib and child.attrib["translatable"].lower() == "false":
152 if misspelling in child.attrib:
153 error(child, "Misspelled <string> attribute.", misspelling, expected)
157 info(child, "Missing CHAR LIMIT to aid translation",
162 warn(child, "Expanded string length is larger than CHAR LIMIT",
167 error(child, "Turned quotation mark glyphs are more polished",
170 error(child, "Turned quotation mark glyphs are more polished",
173 error(child, "Ellipsis glyph is more polished",
176 error(child, "Non-breaking glyph is more polished",
179 error(child, "Using non-standard spelling",
182 warn(child, "Ranges should use en dash glyph",
185 warn(child, "Phrases should use em dash glyph",
188 warn(child, "Only use single space between sentences",
191 warn(child, "Actions should use android:textAllCaps in layout; ignore if acronym",
193 if " phone " in text and "product" not in child.attrib:
194 warn(child, "Strings mentioning phones should have variants for tablets",
200 error(child, "Substitutions must be indexed",
204 for gc in child.iter():
209 error(child, "Substitutions must define id attribute",
212 error(child, "Substitutions must define example attribute",
217 error(child, "Substitutions must be inside xliff tags",