Change Language Dynamically
Change Language Dynamically
com
Skip to content
FAQ
Register
Login
HI
I wanna know how i can change language dynamiclly.
When a user loggin in the system... the language change by that was setting by default for the user (I keep
Language in a table user->language)
but i some cases I have to change the language for the other one at the momento to call a particulare page
function ListOptions_Rendered() {
$userLang = ew_ExecuteRow("
SELECT *
FROM user
WHERE pk_id = " . $user->pk_id->CurrentValue);
if ($userLang['language']=='FR'){$lang = 'fr';}
else {$lang = 'en';}
if ( $_SESSION[EW_SESSION_LANGUAGE_ID] == 'en') {
} else {
I was trying to change the language doing in my PAGE_LOAD() event and Page_DataRendering () event
with out success :(
$lang = $_GET['lang'];
$Language->Languageid = $lang;
or
$gsLanguage = $lang
Thank you :)
cruzz
Top
Webmaster
Posts: 11683
Joined: Fri Aug 06, 2004 5:59 pm
Top
cruzz
Top
Display posts from previous: All posts Sort by Post time Ascending Go
Post a reply
3 posts • Page 1 of 1
Board index
Delete all board cookies • All times are UTC + 8 hours