ExternalCommand doesn't load

10 views
Skip to first unread message

Bolo

unread,
Feb 3, 2011, 5:58:04 PM2/3/11
to BabelFx
Hi

I try to use ExternalCommand with your framework babelFX

<commandFactory>
<factory:ClassFactory generator="{ExternalLocaleCommand}">
<factory:properties>
<mx:Object externalPath="/assets/locales/\{0\}.swf"/>
</factory:properties>
</factory:ClassFactory>
</commandFactory>

but the locales are not loaded.

Can you help me ?

B.

ThomasBurleson

unread,
Feb 5, 2011, 6:54:24 PM2/5/11
to BabelFx
It appears that the ExternalLocaleCommand had a bug. If you compiled
your app without ANY locales embedded [e.g. compiler args === -
locale=''] then the ELC would incorrectly assume that en_US has been
loaded!

https://github.com/ThomasBurleson/l10n_Injection/commit/0346f1203cc388b2f4584c1a6a3f979867164a16
https://github.com/ThomasBurleson/l10nInjection_Samples/commit/7470d24d7b17c65e39c17b21499da5b8bb3b8d75

Checkout the BabelFx Source (or SWC) https://github.com/ThomasBurleson/l10n_Injection/tree/v1.0RC1.1

Extra items to note:

1) Not that your FlashBuilder compiler args should be similar to
-locale= -allow-source-path-overlap=true -source-path+=l10n/locale/
{locale}

2) Make sure that your external bundles (compiled properties files
into .swf(s)) are deployed to the dir specified.
e.g. externalPath="assets/locales/\{0\}.swf"

3) Enable logging in the LocalizationMap to view the BabelFx activity
in your eclipse console view
e.g. <l10n:LocaleMap enableLog="true"

Hopefully this will fix the issues. If you still have problems, I will
make a short video showing how to easily debug the
ExternalLocaleCommand.

- Thomas Burleson

Bolo MICHELIN

unread,
Feb 6, 2011, 2:47:02 PM2/6/11
to bab...@googlegroups.com, ThomasBurleson
Hi thomas.

Always same bugue

20:40:02.604 [ERROR] com.mindspace.l10n.injectors::SmartResourceInjector Bundle dashboard does not have the resource key 'menu.presentations'!

My locales

Compilateur arguments

B
Le 6 févr. 2011 à 00:54, ThomasBurleson a écrit :

-locale= -allow-source-path-overlap=true -source-path+=l10n/locale/
{locale}

Bolo MICHELIN

unread,
Feb 6, 2011, 4:16:52 PM2/6/11
to bab...@googlegroups.com
Thomas

Please Forgot my last message it's working.


Le 6 févr. 2011 à 00:54, ThomasBurleson a écrit :

ThomasBurleson

unread,
Feb 7, 2011, 6:44:19 PM2/7/11
to BabelFx
@Everyone,

Please make sure you are using the lastest code base and SWC from
BabelFX:

https://github.com/ThomasBurleson/l10n_Injection/tree/v1.0RC1.1

On Feb 6, 3:16 pm, Bolo MICHELIN <mala...@gmail.com> wrote:
> Thomas
>
> Please Forgot my last message it's working.
> Le 6 févr. 2011 à 00:54, ThomasBurleson a écrit :
>
> > It appears that the ExternalLocaleCommand had a bug. If you compiled
> > your app without ANY locales embedded [e.g. compiler args === -
> > locale=''] then the ELC would incorrectly assume that en_US has been
> > loaded!
>
> >https://github.com/ThomasBurleson/l10n_Injection/commit/0346f1203cc38...
> >https://github.com/ThomasBurleson/l10nInjection_Samples/commit/7470d2...
Reply all
Reply to author
Forward
0 new messages