Best practices for internationalizing your Flex application?

I am studying the internationalization of the Flex application I'm working on, and I'm curious if there are any recommendations or recommendations for this.

Google for such information leads to a small number of small articles and blog posts, each of which does it differently, and the advantages and disadvantages are not entirely clear.

Edited for limited volume:

  • Only two languages ​​need to be supported (en_CA and fr_CA)
  • Must be able to switch at runtime
+5
source share
1 answer

, .

:

, : ( Flex Builder go → Flex Compiler → )

-locale=en_CA,fr_CA -source-path=locale/{locale}

:

src/locale/en_CA/resources.properties
src/locale/fr_CA/resources.properties

: unable to open 'C:\Program Files\Adobe\Flex Builder 3\sdks\3.1.0\frameworks\locale\en_CA'

SDK-12507

:
sdks\3.1.0\bin :

copylocale en_US en_CA  
copylocale en_US fr_CA

Flex Builder .

.mxml :

<mx:Metadata>
    [ResourceBundle("resources")]
</mx:Metadata>

:

<mx:TitleWindow title="Window Title">

:

<mx:TitleWindow 
    title="{resourceManager.getString('resources', 'windowTitle')}">

var name:String = "Name";

:

var name:String = resourceManager.getString("resources", "name");

src/locale/en_CA/resources.properties:

windowTitle=Window Title
name=Name
+5

All Articles