Yes there are ways through Javascript to do a localization/language check, 
but I think for the user experience it is much better to let them decide 
which direction they would like to go.
dan mccullough + web technology specialist + garnet hill + 603.823.5545 x 
1119

-----Original Message-----
From:   Shannon -jj Behrens [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, May 30, 2000 7:02 PM
To:     FreeTrade
Subject:        Re: [FreeTrade] Double language, may be a solutions?!?

This is cool because it is beyond just localization, it verges on
internationalization.  I wonder if you could automatically detect the
desired language via the browser variables.

-jj

Steve wrote:
>
> Hi at all,
>
> I don't know if this solution can interest to anyone, the double dns
> solutions posted some time ago was very nice, but more expensive in time
> to disk space, this solution is a very low level, but working good ;-)
>
> Create a index.html or what do you think is better for you with 2 link
> like this:
>
> -------------------------- START FILE -----------------------------
>
> <html>
> <body>
> Would you like Fretrade speak in
> <a href="index.php3"> Italiano</a> or in <br>
> <a href="index-eng.php3">English</a><br>
> </body>
> </html>
> -------------------------- END FILE -----------------------------
>
>
>
> Create 2 simply file like this index.php3 (with your default language)
> and index-eng.php3 (with english translation)
> And put the DEFINE function about language after those:
>
> --------------------
>
> file index.php3
>
> define("SERVER_NAME", $SERVER_NAME);
> define("SCRIPT_NAME", basename(__FILE__));
> define("APPLICATION_ROOT", ereg_replace("([^/\\]*)$", "", dirn
> ame(__FILE__)));
> define("EXTERNAL_PATH", dirname($SCRIPT_NAME) . "/");
>
>      define('LANGUAGE_DEF', 'italiano');
>      include(APPLICATION_ROOT . "/modules/language/" . LANGUAGE_DEF);
>
> --------------------
>
> file index-eng.php3
>
> define("SERVER_NAME", $SERVER_NAME);
> define("SCRIPT_NAME", basename(__FILE__));
> define("APPLICATION_ROOT", ereg_replace("([^/\\]*)$", "", dirn
> ame(__FILE__)));
> define("EXTERNAL_PATH", dirname($SCRIPT_NAME) . "/");
>
>      define('LANGUAGE_DEF', 'english');
>      include(APPLICATION_ROOT . "/modules/language/" . LANGUAGE_DEF);
>
> --------------------
>
> Last but not least, remove the two last lines abut language from your
> /include/global_settings
>
> Obviously the files /language/english and /language/italiano must
> be exactly translated and must running without problem.
>
> Many tanks to all the people that working around bugs and enhancements
> of FreeTrade.
>
> --
> Stefano Orsi
> Email: [EMAIL PROTECTED]
>
> --
> Stefano Orsi
> Email: [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Site:            http://www.working-dogs.com/freetrade/
> Problems?:       [EMAIL PROTECTED]

--
if (shannon - jj) * behrens == webEngineer["CLEAR INK(r)"]:
    print "<i>imagination is the only real medium(sm)</i><br>"


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to