Hi Tim-

interesting question!
i took hermans Original codebase
layout is created which incorporates:
sample mxml created
sample as scripts are created
mxmlc on the mxmlc to produce swf

internationalisation:
1)I assume you have xml input? append each xml input with language_country e.g. 
en_US 

2)you will need some way to determine the language easiest way is to is to 
sniff $ENV{"HTTP_ACCEPT_LANGUAGE"};
3)then apply the appended xml to the AS code populating string values

even though this is a maven-plugin the architecture adheres to Adobe Flex 
Framework
Feel free to ping me offline as I have that here (and dont want to introduce OT 
topics to list!)

thanks,
Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> Date: Thu, 16 Jun 2011 16:46:59 -0500
> Subject: Re: Flex 3 with Maven - Resource bundles in SWC not available in app
> From: tobr...@discursive.com
> To: dev@maven.apache.org
> 
> Bill, I'd recommend posting this question to the Flexmojos user list.
> Here's a link to:
> 
> http://groups.google.com/group/flex-mojos/topics
> 
> Tim
> 
> On Mon, May 16, 2011 at 10:31 PM, sg057052 <bill.burf...@sabre.com> wrote:
> 
> > I followed an example on a flexmojos site at
> > https://docs.sonatype.org/display/FLEXMOJOS/Application+Localization to
> > add
> > my Language.properties to a library project.  The Language.properties file
> > was not in the standard location, so I added <resourceBundlePath> to the
> > SWC
> > maven POM:
> >
> > Multi-Module SWC Localization
> > If you are using a multi-module maven project that uses a SWC with
> > localization and a SWF that uses the SWC there are a few options:
> > Use runtimeLocales in your SWC and add the Resource Bundle as a dependency
> > in your SWF for each of your supported locales: SWC POM
> >        <build>
> >                <plugins>
> >                        <plugin>
> >                                <groupId>org.sonatype.flexmojos</groupId>
> >
> >  <artifactId>flexmojos-maven-plugin</artifactId>
> >                                <configuration>
> >
> > <runtimeLocales><locale>en_US</locale></runtimeLocales>
> >                                                       <resourceBundlePath>
> >
> > ${basedir}/src/main/flex/locales/{locale}
> >                                                       </resourceBundlePath>
> >                                </configuration>
> >                        </plugin>
> >                </plugins>
> >        </build>
> >
> > The project compiles fine and creates the 2 SWC files.
> >
> >
> > The Application project (SWF) does not compile because it says it cannot
> > find the Language resource bundle.
> >
> > SWF POM
> >        <dependencies>
> >                <dependency>
> >                        <groupId>com.example</groupId>
> >                        <artifactId>example-swc</artifactId>
> >                        <version>${project.version}</version>
> >                        <type>swc</type>
> >                </dependency>
> >                <dependency>
> >                        <groupId>com.example</groupId>
> >                        <artifactId>example-swc</artifactId>
> >                        <version>${project.version}</version>
> >                        <type>rb.swc</type>
> >                        <classifier>en_US</classifier>
> >                </dependency>
> >        </dependencies>
> >
> >
> > Does the Application POM also need to have a change to it to know the path
> > of the RB?
> >
> >
> > The Applications main MXML file has:
> >    <mx:Metadata>
> >        [ResourceBundle("Language")]
> >    </mx:Metadata>
> > Does this need to change at all?
> >
> > Thanks to all for your help!
> >
> > --
> > View this message in context:
> > http://maven.40175.n5.nabble.com/Flex-3-with-Maven-Resource-bundles-in-SWC-not-available-in-app-tp4402522p4402522.html
> > Sent from the Maven Developers mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> >
> >
                                          

Reply via email to