Dear joanmcapera!
I did tried this. But I’ve got error message:
A PHP Error was encountered Severity: Notice Message: Undefined variable: _SESSION Filename: core/EE_Lang.php Line Number: 46
I’ve put the language setting line into my index template file. Did You put it elsewhere? It looks, like it was not definied.
hi there, I didn’t read the thread in full, but I was looking for the same thing at the same time. maybe I’m completely off…
try this in your index.php files:
Below
* --------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* --------------------------------------------------------------------add this
// sets the default language (use the name of the language folder)
$assign_to_config['deft_lang'] = 'deutsch';this will change the language according the /en or /fr url and trigger the language specific errors etc…
it works like a charm! cheers stefan
Dear joanmcapera! I did tried this. But I’ve got error message: A PHP Error was encountered Severity: Notice Message: Undefined variable: _SESSION Filename: core/EE_Lang.php Line Number: 46 I’ve put the language setting line into my index template file. Did You put it elsewhere? It looks, like it was not definied.
Im not good at php, but the isset conditional should protect against that error. Anyway, i think next answer is better than my solution.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.