According to Flash8 help the flash code should be:
According to XLIFF specs my localetest_de.xml should look like:Code:import mx.lang.Locale; Locale.autoReplace = true; Locale.addXMLPath("de","localetest_de.xml"); Locale.addDelayedInstance(greeting_txt, "IDS_GREETING"); Locale.loadLanguageXML("de", localeCallback) function localeCallback(success:Boolean) { if (success) { trace(Locale.stringIDArray); // IDS_GREETING trace(Locale.loadString("IDS_GREETING")); } else { trace("unable to load XML"); } }
But the TextField allways renders to "undefined" ...Code:<?xml version="1.0"?> <xliff version="1.1"> <file source-language="DE" datatype="plaintext" original="localetest_de.xml"> <body> <trans-unit id="IDS_GREETING"> <source>Hallo Welt!</source> </trans-unit> </body> </file> </xliff>
I suspect the XML beeing formated not correctly.
I am totally lost now, anyone of u guys got it working yet?




Reply With Quote