Add strings to the strings panel – Adobe Flash Professional CS3 User Manual

Page 289

Advertising
background image

FLASH CS3

User Guide

283

If the language does not appear in the Languages box, in the blank field below the Languages box, type a language
code in the format xx. (The language code is from ISO 639-1.) Click Add.

3

Repeat step 3 until you have added all the necessary languages.

4

Select a default language from the Default runtime language menu. This language appears on systems that do not

have one of the active languages you selected.

5

To load an XML file for the languages from a different URL at runtime, type the URL in the URL text field and

click OK.

A column for each selected language appears in the Strings panel. The columns appear in alphabetical order.

6

Save the FLA file. When you save the FLA file, a folder for each language you selected is created in the same folder

indicated in the SWF publish path. If no SWF publish path has been selected, it is created in the folder the FLA file
resides in. Within each language file an XML file is created that is used to load translated text.

Remove a language

1

Select Window > Other Panels > Strings, and click Settings.

2

In the Active languages field, highlight a language and click Remove.

3

Repeat step 3 until you have removed all the unwanted languages.

4

When you finish removing languages, click OK.

The column for each removed language no longer appears in the Strings panel.

Note: When you remove a language from the Strings panel, the language XML file is not deleted from the local file
system. This lets you add the language back into the Strings panel by using the previous XML file, and prevents
accidental deletion. To completely remove the language, you must delete or replace the language XML file.

Add strings to the Strings panel

Assign text strings to the Strings panel in the following ways:

Assign a string ID to a dynamic or input text field

Add a string to the Strings panel without assigning it to a text field

Assign an existing string ID to an existing dynamic or input text field

See also

“Creating text” on page 265

Assign a string ID to a text field

1

Select Window > Other Panels > Strings.

2

Select the Text tool. On the Stage, create an input or dynamic text field.

3

While the text field is selected, type a unique ID in the ID field in the Strings panel.

4

Click the Settings button and select a language or languages from the list in the Settings dialog box. The languages

you select should include the default language you wish to use and any other languages in which you plan to publish
your work.

5

Click Apply.

Advertising