hi ee,
I really need help on how to set the language so that the error messages and emails are sent in the corresponding language!
I have researched the forums, docs, devot-ee - but coudn’t find a decent answer to my problem!
let’s have a look on what I want to achieve:
I use the “alternative method for multilingual site” from the wiki.
I put the index.php files into the folders “en” “de” and “fr” and I define a language with the following code:
$assign_to_config['global_vars'] = array(
'cgv_language_code' => 'de',
'cgv_locale' => 'de_DE',
'cgv_language' => 'german'
);I even put in this, which I think should change the default language. (please confirm that this is correct)
$assign_to_config['language'] = 'german';I have unchecked the “Enable This Template?” on the email templates concerned.
the activation code contains the “language_identifier” segment:
http://www.mydomein.ch/fr/?ACT=14&id=x8eRAQmLPo
http://www.mydomein.ch/en/?ACT=14&id=x8eRAQmLPo
http://www.mydomein.ch/de/?ACT=14&id=x8eRAQmLPo
it’s always sending the emails in the default language!
the user’s language is set correct!
so here’s a few questions:
how can I check which language expressionengine is assigned to?
how can I set the language from within the index.php file?
how can I set the language from a template?
could you please shed some light!
highly appreciated!
stefan