R – Changing Flex Components Language

apache-flexflex3flexbuilder

When we are building a application in Flex the components that we add are in English.

Lets say that i want to change then to French, Spanish or Portuguese.

How could i do that??

I've google a bit about it, but nothing good.

I didn't look too much, because you guys always now things, and here in SO its more faster to ask than search for it

😀

Thanks for any help.

EDIT:

I think i didn't expressed my self correctly.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="408" height="332">

    <mx:DateChooser x="117" y="83"/>

</mx:Application>

This creates a calendar where you can choose a date, as default shows the present date.
If you take a look the Months he shows "January, February, …" they are in English, lets say i want then in French or any other language.

How can i do that?

Best Answer

Adobe has a good article on the ResourceManager. This lets you store different languages, currency formats, etc, and access them based on the current locale the application is running in(runtime configurable).

In practice please remember to check the sizing of your Labels and Buttons! In one language a label may be well placed and the appropriate size, in another language the label may be too small and your whole layout will look bad. It's better to think of that upfront instead of at the end.... like I did....

EDIT:

I haven't followed this guideline, but it seems to match your Datechooser edit. I don't use Datechooser in either of the apps I maintain, so I can't provide help with it unfortunately.

Related Topic