OK. Have had a look but its a bit of a muddle.

In the distributed version of the flex sdk the es_ES locale (and quite
a few others) lack the flash-integration_rb.swc and
playerglobal_rb.swc.

As mentioned earlier in this thread and in the Adobe docs the advised
way to generate a new locale is using the copylocal command line
utility.

This just runs the java class flex2.tools.CopyLocale. The source can
be found here:

http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CopyLocale.java

This copies and recompiles all the projects in the sdk framework/
projects directory from an existing locale to the new locale ONLY IF
THE PROJECT HAS A bundles SUB DIRECTORY.

In the distruibuted version of the 4.1 SDK that i have the
playerglobal project does not exist and the flash-integration project
has no bundles directory.

Hence even if i run copylocale these swc's are not generated in my new
locale.

Looking at the source for these two projects in Adobe's repository it
seems to me that neither contain localized resources. Hence i think
that it is safe to copy the swc's from de default (en_US) locale.

I guess that compilation in flexbuilder is configured to always use
these swc's in the en_US locale which always exists and therefore does
not run into problems when compiling for other locales.

I suppose flexmojos could do the same but since this seems
undocumented and i guess that these projects could become localized at
some time in the future i suppose that this would be a bad idea.

For me the workaround in order to compile with flexmojos and the es_ES
locale has been to manually import the swc's from the en_US locale
into my locale maven repository with the classifier es_ES.

Sorry for the rant and i hope that this is useful for somebody
somewhere.



On Aug 4, 8:44 am, maxmil <[email protected]> wrote:
> When i have time i'll try to have a look into this for you.
>
> On 3 ago, 18:59, Marvin Froeder <[email protected]> wrote:
>
>
>
> > No clue how adobe deals with that.
>
> > On Tue, Aug 3, 2010 at 1:13 PM, maxmil <[email protected]> wrote:
> > > > Flexmojos won't automagically remove source resource bundle from the
> > > > compilation for no reason.  If you don't wanna/need that remove from 
> > > > your
> > > > pom.  But flexmojos won't do that by it's own, since this may or may not
> > > be
> > > > needed.
>
> > > Maybe i haven't explained myself properly. When i use the mxmlc
> > > command withlocale=es_ESit compiles fine even though no
> > > playerglobal_rb.swc exists in <flex-sdk>/frameworks/locale/es_ES.
>
> > > However when i include this local in my flexmojos config it fails
> > > because it does not find the dependency for playerglobal_rb with
> > > classifieres_ES
>
> > > On Aug 3, 2:04 pm, Marvin Froeder <[email protected]> wrote:
> > > > On Tue, Aug 3, 2010 at 8:58 AM, Max Pimm <[email protected]> wrote:
> > > > > Ah, i now think that i see the problem.
>
> > > > > playerglobal_rb.swc does not exist in the sdk in thelocalees_ES
> > > (Neither
> > > > > in this version nor the 4.0 release)
>
> > > > > Is this an oversight of adobe?
>
> > > > I have no idea, you aren't the first one with this issue, but so far no
> > > one
> > > > was able to point out what is going on.
>
> > > > > From the command line i can invoke mxmlc with locales=es_ESand compile
> > > > > without the playerglobal_rb.swc. I suppose that the compiler uses a
> > > default
> > > > > version of the library if a localized one does not exist. Could
> > > flexmojos do
> > > > > the same?
>
> > > > Flexmojos won't automagically remove source resource bundle from the
> > > > compilation for no reason.  If you don't wanna/need that remove from 
> > > > your
> > > > pom.  But flexmojos won't do that by it's own, since this may or may not
> > > be
> > > > needed.
>
> > > > > On a side note, what is the difference between configuring the plugin
> > > using
> > > > > locales or compiledLocales.
>
> > > > Locales is deprecated, may or may not work and you won't get help for it
> > > =D
>
> > > > > The plugin doc here is the same for both options:
>
> > > > >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw.
> > > ..
>
> > > > > As far as i have seen only the compiledLocales changes the
> > > compiler.locale
> > > > > command line option. How does the locales configuration option work?
>
> > > > ?
>
> > > > > Thanks
>
> > > > > Max
>
> > > > > On 08/03/2010 01:22 PM, maxmil wrote:
>
> > > > >> (I realize that the flexmojos project and sonatype repository are
> > > > >> different entities. If this is the wrong place for me to ask this
> > > > >> question please tell me where to go).
>
> > > > >> I use the sonatype maven repository for my flex dependencies and have
> > > > >> run into problems when i try to add compiled locales for Spanish to 
> > > > >> my
> > > > >> project.
>
> > > > >> The flash integration dependencies for thelocalees_ESare not
> > > > >> published in the repository (the list of published locales for the
> > > > >> 4.1.0.16248 is English, French, German, Japanese, Russian and
> > > > >> Chinese).
>
> > > > >>https://repository.sonatype.org/content/groups/flexgroup/com/adobe/fl.
> > > ..
>
> > > > >> I have added them to my local repo but would it be possible to add
> > > > >> them to the sonatype repo for this version (and future ones). The
> > > > >> spanish language is pretty widely used.
>
> > > > > --
> > > > > 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%2bunsubscr...@googlegrou
> > > > >  ps.com>
> > > <flex-mojos%[email protected]<flex-mojos%252bunsubscr...@googl
> > >  egroups.com>
>
> > > > > 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%2bunsubscr...@googlegrou
> > >  ps.com>
> > > 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/

Reply via email to