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]