Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: EMLH - System & others
by zyspec on 2009/3/23 13:14:04

I don't really know anything ablut the EMLH - System but the code above doesn't set the $xoopsConfig['language'] variable if neither the _COOKIE or _GET are set... I think you could simplify what you want to:

le="color: #000000"><?php $xoopsConfig['language'] = 'english'; //sets the default language to english if (isset( $_GET['easiestml_lang'] ) { switch ($_GET['easiestml_lang']){ case 'pt': $xoopsConfig['language'] = 'portuguese'; break; } }elseif (isset($_COOKIE['easiestml_lang'])){ switch ($_COOKIE['easiestml_lang']){ case 'pt': $xoopsConfig['language'] = 'portuguese'; break; } }


You could simplify the code even further if you don't plan to include any languages other than 'potruguesebr' and 'english'.
EMLH - System & others
by DonCurioso on 2009/3/23 8:19:39

Hi,

i follow all instructions to use EMLH, but it doesn´t translate system or modules. I´ve got all modules with english&spanish folders languages, but changes doesn´t happend...

I put this code as Rplima suggest over Gijoe´s page (replacing for code i´ll need it), but site goes crazy. All tags were showed & i was to did a new installation for it.

le="color: #000000"><?php if (isset( $_GET['easiestml_lang'] ) && isset($_COOKIE['easiestml_lang'])){ switch ($_GET['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } }elseif(isset($_COOKIE['easiestml_lang'])){ switch ($_COOKIE['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } }elseif(isset($_GET['easiestml_lang'])){ switch ($_GET['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } }


Any idea?

Thanks in advance.

Who's Online

240 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits