I got the multiple language support working including the language
(es_ES) that is not in the flex component library, and I didn't need
to use locale chain.
I use flexmojo 4.0-alpha-4, flex framework sdk 4.0.0.14159 and maven
3.0-beta-1
My pom.xml has the following under <configuration>:
<localesSourcePath>${basedir}/src/main/resources/locale/
{locale}</localesSourcePath>
<localesCompiled>
<locale>en_US</locale>
<locale>fr_FR</locale>
<locale>es_ES</locale>
</localesCompiled>
I use localeChain in Flex code, so there is a backup string in case
some strings aren't translated to other languages.
<fx:Metadata>
[ResourceBundle("localizedContent")]
</fx:Metadata>
//depending on an external flag that is either passed in to
this Flex application via application arguments or via database
access, the localeChain is set
if (user.language == "es_ES") {
ResourceManager.getInstance().localeChain = ["es_ES",
"en_US"];
} else if (user.language == "fr_FR") {
ResourceManager.getInstance().localeChain = ["fr_FR",
"en_US"];
}
On Jul 20, 4:12 pm, Travel <[email protected]> wrote:
> Thanks for the info. I will once I get my application completely
> working with multiple languages. :)
>
> On Jul 19, 5:45 pm, Marvin Froeder <[email protected]> wrote:
>
> > <localesCompiled>
> > <locale>pt_PT,pt_BR,en_US</locale>
> > </localesCompiled>
>
> > Would be really nice if you write some docs about
> > thathttps://docs.sonatype.org/display/FLEXMOJOS/Release+4.x
> > orhttp://repository.sonatype.org/content/sites/flexmojos-site/4.0-alpha...
>
> > VELO
>
> > On Mon, Jul 19, 2010 at 9:30 PM, Travel <[email protected]> wrote:
> > > Marvin,
>
> > > Could you provide syntax of specifying locale chain in flexmojos 4?
>
> > > Thanks.
> > > -Anna
>
> > > On Jun 30, 6:25 pm, Marvin Froeder <[email protected]> wrote:
> > > > If you are using flexmojos 4 you can handle that by using locale chain.
>
> > > > Sent from DROID
>
> > > > Em 30/06/2010 22:22, "Davis Ford" <[email protected]
> > > >escreveu:
>
> > > > So do I...bummer. Looks like the flash-integration component only
> > > > contains DE, US, FR, RU, JP, CN. I just poked into the .zip SDK
> > > > download for 4.1.0.16076, and you are right, that swc is missing for
> > > > the other locales.
>
> > > > On Wed, Jun 30, 2010 at 9:13 PM, Marvin Froeder <[email protected]>
> > > wrote:
> > > > > I really wish that Ado...
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Flex Mojos" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<flex-mojos%[email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex-mojos
>
> > >http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/