[REQUEST] Client multilanguage

Waltz

Member
Jun 16, 2011
54
10
I am looking for a flash_texts_vars selector so user can switch the client language. I think the tutorial already made but I couldn't find it
 

Zaka

Programmer
Feb 9, 2012
471
121
You could have an option in settings to choose a language, and then in client check for the language and load the flash texts accordingly.
 

Core

Member
Nov 10, 2016
356
138
Just add the language to the end of the flash text; _en, _nl, _es, etc.
Then in users table add language column then put country code for the user in there (add to settings to allow them to change it).
It's as simple as reading the value, if you use rev just add it to the session init function and you can do;

<?= "../../flash_texts_{$_SESSION["user"]["language"]}"; ?>
 

Users who are viewing this thread

Top