Authoring multilanguage text with the Strings panel 377
5. Click OK.
Flash generates the following ActionScript, which stores the language XML file paths. You
can use this as a starting point for your own language detection script.
import mx.lang.Locale;
Locale.setFlaName("<flaFileName>");
Locale.setDefaultLang("langcode");
Locale.addXMLPath("langcode", "url/langcode/flaname_langcode.xml");
XML file format
Exported XML is in UTF-8 format and follows the XML Localization Interchange File
Format (XLIFF)1.0 standard. It defines a specification for an extensible localization
interchange format that lets any software provider produce a single interchange format that
can be delivered to, and understood by, any localization service provider. For more
information about XLIFF, see www.oasis-open.org/committees/xliff/.
XLIFF examples
If any of the following characters are entered in the Strings panel, they are replaced by the
appropriate entity reference when written to XML files:
NOTE
The ActionScript generated by the Strings panel does not use the Locale.initialize
function. You must decide how to call this function based on the language detection
customizations your project requires.
Character Replaced by
&&
''
""
<<
>>