From: Eric Fischer Date: Mon, 16 Aug 2010 14:49:51 +0000 (-0700) Subject: am d22a1e89: am 244152bf: Merge "Change aapt\'s warning message to suggest formatted... X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/bc42f517d49117f88286a82e72ead502c69d56f3?ds=inline;hp=-c am d22a1e89: am 244152bf: Merge "Change aapt\'s warning message to suggest formatted="false", not "true"." into gingerbread Merge commit 'd22a1e896cbc7e86d57be9923d749b017b3cde79' * commit 'd22a1e896cbc7e86d57be9923d749b017b3cde79': Change aapt's warning message to suggest formatted="false", not "true". --- bc42f517d49117f88286a82e72ead502c69d56f3 diff --combined XMLNode.cpp index 452549b,8551b0f..cee8546 --- a/XMLNode.cpp +++ b/XMLNode.cpp @@@ -166,7 -166,7 +166,7 @@@ status_t hasSubstitutionErrors(const ch if (argCount > 1 && nonpositional) { SourcePos(String8(fileName), inXml->getLineNumber()).error( "Multiple substitutions specified in non-positional format; " - "did you mean to add the formatted=\"true\" attribute?\n"); + "did you mean to add the formatted=\"false\" attribute?\n"); return NOT_ENOUGH_DATA; } @@@ -203,13 -203,9 +203,13 @@@ status_t parseStyledString(Bundle* bund } } if (xliffDepth == 0 && pseudolocalize) { +#ifdef ENABLE_PSEUDOLOCALIZE std::string orig(String8(text).string()); std::string pseudo = pseudolocalize_string(orig); curString.append(String16(String8(pseudo.c_str()))); +#else + assert(false); +#endif } else { if (isFormatted && hasSubstitutionErrors(fileName, inXml, text) != NO_ERROR) { return UNKNOWN_ERROR;