summaryrefslogtreecommitdiffstats
path: root/tools/aapt/XMLNode.h
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-05-28 15:44:32 -0700
committerKenny Root <kroot@google.com>2010-06-03 09:33:43 -0700
commit15fe2cb73b0770316db302f6502f568062d68e74 (patch)
tree9764af2f6feb0083e768779fc933de1b7f98f352 /tools/aapt/XMLNode.h
parenta9f06fef8e2fff0c909132073203de5bd2461795 (diff)
downloadframeworks_base-15fe2cb73b0770316db302f6502f568062d68e74.zip
frameworks_base-15fe2cb73b0770316db302f6502f568062d68e74.tar.gz
frameworks_base-15fe2cb73b0770316db302f6502f568062d68e74.tar.bz2
Add error checking for translatable strings
Translatable strings that have multiple substitutions should use positional String.format() substitutions. This change makes it an error not to use that format on translatable strings that have more than one substitution in its text. Change-Id: I3a19707f3804aa24e8568dc1653a11576cac5916
Diffstat (limited to 'tools/aapt/XMLNode.h')
-rw-r--r--tools/aapt/XMLNode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt/XMLNode.h b/tools/aapt/XMLNode.h
index e9a263b..05624b7 100644
--- a/tools/aapt/XMLNode.h
+++ b/tools/aapt/XMLNode.h
@@ -25,6 +25,7 @@ status_t parseStyledString(Bundle* bundle,
const String16& endTag,
String16* outString,
Vector<StringPool::entry_style_span>* outSpans,
+ bool isFormatted,
bool isPseudolocalizable);
void printXMLBlock(ResXMLTree* block);