ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Email Language Settings upon registration

September 26, 2012 11:41am

Subscribe [1]
  • #1 / Sep 26, 2012 11:41am

    outline4

    271 posts

    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

  • #2 / Sep 27, 2012 7:05am

    outline4

    271 posts

    I found the solution myself:

    this sets the default language:

    in your index.php files:
    after:

    * --------------------------------------------------------------------
     *  CUSTOM CONFIG VALUES
     * --------------------------------------------------------------------

    insert this:

    // sets the default language (use the name of the language folder)
    $assign_to_config['deft_lang'] = 'deutsch';

    finally I found it!
    now I feel like an EE ninja again 😉

  • #3 / Sep 27, 2012 3:37pm

    Kevin Smith

    4784 posts

    Ha, glad to hear the EE ninja is back! Awesome that you found your solution stefan, and thanks for sharing it with us!

    Anything else you need help with?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases