]> git.saurik.com Git - android/aapt.git/blobdiff - XMLNode.cpp
am f781b4ef: am e37ab632: Merge "Fix build on some linux machines"
[android/aapt.git] / XMLNode.cpp
index 57ff47a2595e1d30dc8f69a66c47894d95f12ccd..452549b80b8503eee2e7a270bd86edccb0af23bc 100644 (file)
@@ -203,9 +203,13 @@ status_t parseStyledString(Bundle* bundle,
                 }
             }
             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;