On Thu, Feb 18, 2010 at 7:13 PM, Collin Peters <[email protected]>wrote:

> Thanks for the reply Velo, I appreciate your time.
>
> If if I have to use runtimeLocales and discard the output, then that
> is what I will have to do.  Doing this once does not add any
> significant time to the build.  However, doing it for every
> application that uses the resource module will begin to add up.  For
> example, right now we have 10 applications so compiling 15 locales 10
> times is 150 discarded SWFs for every build.


And why don't you define a single locale for this SWFs?

So but all 15 locales to your uber localized swf and just one (to make me
happy =D) everywhere else


>  Multiple that by every
> developer needing to do this, possibly multiple times per day, and it
> will slowly add up.  Keep in mind here that I am just making a point,
> I am not trying to stir up any issues.  This use case is definitely a
> 1 in a hundred so I don't expect something like a testLocales to be
> added, but it is still our use case which is why I asked the question.
>

> A related note:  You wrote "By definition each application SWF need to
> have resources.  The error you got while running the tests prove
> that.  Application SWF needs resource-bundle information.  Take it
> away and it will blow at runtime."
>
> This is not entirely true.  You CAN produce an application SWF without
> any resources, it simply REQUIRES the resourceModuleURLs option in the
> embedding html (via flashvars).  The Flex framework will then preload
> the resource module and everything works great.  If you do not have
> the resourceModuleURLs option, it will blow at runtime as you say.
> And of course for applications that do not use embedding html, such as
> the test swfs, this obviously will not work.
>

Still, you did include a resource bundle at runtime....


>
> So thank you for your response, and I hope I did not cause you any
> gray hairs.


I'm more likely to be bald. =/


> I do not expect Flex Mojos to be modified to support this
> use case, but I would also be careful about how you advertise how Flex
> Mojos supports runtime locales as there is a caveat in doing it when
> one resource module is to be used in multiple applications.
>

Even your scenario is covered....  so I do insist, flexmojos does support
runtime locales for SWF build.  But that is not what you wanna.

I think you should go the single locale path.... en_US to all SWFs and 15
locales to the uber-localized-SWF


VELO

-- 
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?hl=en?hl=en

http://flexmojos.sonatype.org/

Reply via email to