Merge "Fixes issue causing pseudolocalization of strings in non-translatable resource files."

This commit is contained in:
Elliott Hughes
2014-04-30 21:29:52 +00:00
committed by Gerrit Code Review

View File

@@ -1340,7 +1340,6 @@ status_t compileResourceFile(Bundle* bundle,
name, name,
locale, locale,
SourcePos(in->getPrintableSource(), block.getLineNumber())); SourcePos(in->getPrintableSource(), block.getLineNumber()));
curIsPseudolocalizable = fileIsTranslatable;
} }
if (formatted == false16) { if (formatted == false16) {
@@ -1352,7 +1351,7 @@ status_t compileResourceFile(Bundle* bundle,
curType = string16; curType = string16;
curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_STRING; curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_STRING;
curIsStyled = true; curIsStyled = true;
curIsPseudolocalizable = (translatable != false16); curIsPseudolocalizable = fileIsTranslatable && (translatable != false16);
} else if (strcmp16(block.getElementName(&len), drawable16.string()) == 0) { } else if (strcmp16(block.getElementName(&len), drawable16.string()) == 0) {
curTag = &drawable16; curTag = &drawable16;
curType = drawable16; curType = drawable16;