Seems to be a nice idea, but at this point flexmojos do not allow you to pick what resource are you going to include on bundles per locale..... and that would require some manual configuration since flexmojos has no way to know which bundles user is fine to only use en_US.....
The other days I was thinking on a approach for localization problems, but my idea was to do that on flexmojos 4, something like this: <localesRuntime> <locale>en_US</locale> <locale>pt_BR,pt_PT,en_US</locale> <locale>en_EN,en_US</locale> <locale>es_AR,es_BR,es_**,es_WHATEVER,es_ES,en_US</locale> </localesRuntime> Then flexmojos you lookup for the resource bundle on the first locale, if fails fall to the second, the third and so on.... I just have no idea if flex compiler would allow that..... does anyone know if that is possible? What do you think? Would that fit into your scenario as well? VELO On Thu, Jun 3, 2010 at 8:30 AM, Alexandre A <[email protected]>wrote: > We are using datavisualization with our application. We have the > language en_US for data visualisation. So that's fine. > But we are using other locales for our application (es_ES, etc...). We > want to compile our application bundles to all languages we support > (eg. es_ES, en_US, etc...), and we do not want to compile the > datavisualization bundles to other languages than en_US. > > Then we can use "localeChain" in runtime to switch between languages. > In the "localeChain" we will specify the locale we want to see our > application with, and always specify en_US as last language in case > there is no translation of the datavisualization for this language. > EG: > localeChain="es_ES, en_US"; > > With this methodology we do not need to maintain all flex sdk bundles > with all languages our application support. > > So it will be great to be able to select the bundles we want to > compile to a locale with Flex MOJO. > Is it possible with Flex MOJO? > > > On May 28, 5:04 pm, Marvin Froeder <[email protected]> wrote: > > As it is right know flexmojos doesn't build just resources project, you > > would have a main application for the project.... Anyway, whatever > > localized dependency you declare must be available for all locales. If > you > > don't need datavisualization .rb.swc (for instance) don't declare it. > But > > if your project uses datavisualization makes no sense to which to not > > include it. > > > > VELO > > > > On Fri, May 28, 2010 at 12:33 PM, Matt C <[email protected]> wrote: > > > Is it possible to build a runtime locale swf (i.e. just the resources) > > > for a locale without having to provide the resource bundles for all > > > dependencies? > > > > > I have a project that is using datavisualization and I specify the > > > runtime locales as: > > > <runtimeLocales> > > > <locale>en_US</locale> > > > <locale>en_GB</locale> > > > </runtimeLocales> > > > > > and then specify includeResourceBundles with my own properties file: > > > <includeResourceBundles> > > > <bundle>resources</bundle> > > > </includeResourceBundles> > > > > > I would expect to three artefacts to be created application.swf, > > > application-en_US.swf and application-en_GB.swf. This is actually > > > failing because it cannot find the resources for datavisualization: > > > [INFO] Unable to find resource > > > 'com.adobe.flex.framework:datavisualization:rb.swc:en_GB:4.0.0.14159' > > > in repository central (http://repo1.maven.org/maven2). > > > > > Why is it trying to get resources for dataviz? I realise I have a > > > dependency on it but I've told it to only include my own resource > > > bundle 'resources'. > > > > > On May 28, 2:26 pm, Logan Allred <[email protected]> wrote: > > > > On Fri, May 28, 2010 at 5:54 AM, Matt C <[email protected]> wrote: > > > > > Does that look like the correct usage to you? > > > > > > Looks like it, though I'm not sure about <sourcePaths>. Velo says > > > > there's only 1 use case for it, and I'm not sure which one that is. > > > > > > Logan > > > > > -- > > > 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]> > <flex-mojos%[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]<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/
