PDA

View Full Version : passing a variable for bilingual site



max56
May 3rd, 2005, 05:39 AM
I have a whole lot of small flash movies with text. I want to make a site that is bilingual, that is, have the user navigate thru an English version or a French version.

I've been told the best way to do this is to create a global variable for the Frech button and another for the English on the opening Flash screen, which is also the parent swf. Then as each movie is loaded I should use an if/then statement to send the user to appropriate frame/s

BUT not sure how to construct the first script. and where to put the if/then script?
and ideas?
max

MacGuyver
May 3rd, 2005, 08:39 AM
I am at this very moment adding a second language to an existing site, and as I don't feel like creating a whole new parallell site for the second language, I am using a XML file with both language texts, and have two buttons on top of the page to swap between the nodes on the XML, say <en></en> and <fr></fr>

The site is not read yet, so you can't take a look at it, and my code is so clumsy that even I am having trouble to read it myself :P

However, it shouldn't be very hard for you to implement it, and the user would thank you for not having to fetch a whole new site just to read text on a different language.