Wednesday, August 13, 2008

Localization in flex

1) compile the application with the following compiler options
-locale= -resource-bundle-list myres.txt

Now myres.txt will be created in the bin directory.

2) Create the resource swf file using the following command.
mxmlc -locale=en_US -source-path+=locale/{locale} -include-resource-bundles={contents of myres.txt} -output en_US_ResourceModule.swf

The output swf should have the format {locale string}_ResourceModule.swf.

No comments: