Warning: techy post for once; sorry about that regular folks. Looking for something nicer than cryptic bug fixes? Have a look around here!
So here we go: I’m working on a big multi-lingual AIR app within Flash Builder and just received the locale files from my client today (made with Lupo).
Couldn’t wait to see what it looked like in Japanese and in all other languages supported (13, to be precise) so I copied the “locale” folder into my project, updated the “Additional compiler arguments” with “–locale de_DE en_GB en_US es_ES fr_FR it_IT ja_JP pl_PL pt_BR pt_PT ru_RU tr_TR zh_CN –allow-source-path-overlap=true –source-path=locale/{locale}” and refreshed the project. Which broke, saying “unable to open ‘[blablah]\frameworks\locale\en_GB’”.
“Ouch”, I thought. Flex doesn’t support Great Britain’s English?
In fact en_GB was not the only locale to break the project, so I Googled around and found that copying your Flex framework en_US directory and renaming it to the missing locale could do the trick. For example I copied “C:\tools\flex4-air1.5.3\frameworks\locale\en_US” to “C:\tools\flex4-air1.5.3\frameworks\locale\en_GB” (I also did that for tr_TR, pt_PT and pl_PL)… Not the nicest solution but lookin’ good anyways!
Almost.
I then stumbled upon a lovely “Internal build error”. But that’s cool.
I can’t explain how I found how to fix this but I did: some of the locale files (named Main.properties) where having lines with only a back-slash in them (\). I simply removed those lines everywhere I found them and that was it.
I don’t know if this has anything to do with Lupo, or else; but it’s fixed and yes: the app looks nice in Japanese, thank you.
Update: apparently you don’t have to copy en_US’s content, you simply have to create an empty folder with the missing locale’s name.