Multi-Language WebSite

DarkDragonLord

New Member
Messages
782
Reaction score
0
Points
0
Hi guys
well, i've found a really nice tutorial but i dont got the point of somethings

Here is the tutorial:

http://www.13dots.com/forum/index.php?showtopic=2535



Could someone explain me it better? I have same questions of one of the users there:


Could you manage the necessary scripts ?

Just the basic ones ?
The code to the link (when you press another language)
And the get_language.php
The database, I am not geting the point, could you explain it again ?

I did not figured out how make the link to change languagess or anything

AND, how can i make the language the person choosed to be stored in a cookie, this way when he visit again, will already be in the language he choosed?


thanks =**
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Use $_COOKIE instead of $_SESSION to store it in a cookie.

I don't see why you'd need MYSQL though, it'd be far easier to just store your languages in a fixed set of directories and sanitize the input.
 

DarkDragonLord

New Member
Messages
782
Reaction score
0
Points
0
so..
PHP:
<?php
$_SESSION['language']['lid'] = "1";
?>

will be
PHP:
<?php
$_COOKIE['language']['lid'] = "1";
?>

???


argh, i dont get it...
could you make all php's to me and put comments in everything (so i can understand)? i can pay you some credits ^^ :naughty::naughty:
Edit:
OK!

i've found, understood, tested and posted here
http://forums.x10hosting.com/tutorials/37385-tutorial-multi-language-websites.html

everyone who needs, is there ^^
 
Last edited:
Top