If you want to create a localized application you may find yourself in a strange situation when you did all the steps like in the book, but you continue to receive the “Unable to open locale fr_FR” error messages or “Unable to open locale de_DE”
To simulate a fix on this issue we will take the example of adding French to your app.
- The first step is to create a fr_FR folder under the /locale/ one exactly like in the Flex documentation and then add the translated bundle.properties file.
- The second step is to add the compiler options: -locale en_US fr_FR
Extra steps you need to make in order to get rid of the ugly “unable to open locale” error message:
1. goto the following path :
for windows it’s: C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\
2. Execute the following command:
> copylocale.exe en_US fr_FR