Publishing and deploying multilanguage text

When you save, publish, or test the FLA file, a folder with an XML file is created for each available language you selected in the Strings panel. The default location for the XML folders and files is the same as the location of the FLA file. For example, if you have a file named Test in the mystuff directory, and you have selected English (en), German (de), and Spanish (es) as available languages, when you save the FLA file, the following folder structure is created:

\mystuff\Test.fla
\mystuff\de\Test_de.xml
\mystuff\en\Test_en.xml
\mystuff\es\Test_es.xml

When you deploy a SWF file, you also need to deploy the associated XML files with the string translations in the web server. The first frame that contains text cannot be displayed until the entire XML file is downloaded.

Automatic language detection and the default language

You can change the default language to any language that you have selected as an available language. When automatic language detection is turned on, and the SWF file is viewed on the language operating system platform, the default language is displayed on any systems that are set to a default language other than those languages you selected. For example, if you have set your default language to English, and if you have selected JP, EN, and FR as available languages, users who have their system language set to Japanese, English, or French automatically see text strings displayed in their language. However, users who have their system language set to Swedish, which is not one of the languages you selected, automatically see text strings displayed in the default language you selected—in this case, English.

When you publish a Flash application (select File > Publish), however, the default language setting specified in the Strings panel Settings dialogue box is published in the resulting SWF file. For example, if the default language set in the Strings panel Settings dialogue box is French, but the operating system and Flash are in English, the published movie SWF file is in the default language, in this case French.

Note: When you test a Flash application (select Control > Test Movie), the Stage language setting specified in the Strings panel is published in the resulting SWF file. For example, if the Stage language set in the Strings panel Settings dialogue box is English, and the default language is French, the test SWF file is in the Stage language, in this case English.

To select the default language and automatic language detection:

  1. Select Window > Other Panels > Strings to open the Strings panel.
  2. Click the Settings button to display the Settings dialog box.
  3. In the Default language pop-up menu, select the language you want to use for the default language. This must be a language you previously added as an available language.
  4. If you want to enable automatic language detection, make sure that Insert ActionScript for Automatic Language Detection is selected.
  5. Click OK.