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.

Translation of "Welcome email"

June 26, 2007 1:23am

Subscribe [1]
  • #1 / Jun 26, 2007 1:23am

    Ozmodiar

    16 posts

    Hi,

    I never had to manage a multilingual site, so I have no idea on where to do this ...

    Where do I change the welcome email text new members receive after registering? I need to change it in the default english, as well as in 2 additional language ?!

    Thanks

  • #2 / Jun 26, 2007 10:54am

    Robin Sowell

    13255 posts

    The easiest way to make alternative language packs is by using the translation utility (I tried it out of curiosity- it really is pretty smooth).  It’s designed to allow you to change out (almost) all of the system generated messages quickly and easily.

    That said- the email messages are actually handled differently.  To change those, you’ll want to make a copy then edit system/language/email_data.php- it holds all of the email messages.

    (And EE has quite a few language packs- you might want to skim those to see if any meet your needs.)

    And forgive the overkill if you just needed the info on email_data.php.

  • #3 / Jun 27, 2007 4:19pm

    Ozmodiar

    16 posts

    We installed 2 additional language packs (FRENCH, SPANISH) a while ago. How does the translation utility work with those? Is it a tool used to edit the language files w/o having to edit them manually?

    I’ll edit the templates in that file you mentioned! Thanks.

  • #4 / Jun 27, 2007 7:35pm

    Ozmodiar

    16 posts

    Also, I added the language field on the registration page. It works as the value appears correctly in the profile of new members.

    However, the activation email is sent in English, regardless of the language people select. Is this normal ?

  • #5 / Jun 28, 2007 11:20am

    Robin Sowell

    13255 posts

    Re: the translation utility- yep, it basically pulls up the ‘English’ version of the file into a form- and then gives you a field to type in the translation.  When you’re done, you submit and it will basically write the file for you- rather than you going in and manually editing, say- lang.admin.php.  Check the docs- they give a pretty good overview and some screen caps so you can get a feel for it.  I’m monolingual, but played with it a wee bit just to see how it works.  I’d say it’s definitely easier than manually editing things- hard to make a mistake.

    Let’s see- I’m honestly not sure about the activation email.  I took a look at the code- there’s some conditional bits going on, but it looks like in general, to send an email in a different language, EE pulls the language from the cookie for the logged in user.  BUT- the cookie isn’t set at that point- because they really haven’t confirmed and logged in.  So- it’s going to use the default language.  Assuming I’m reading everything right.

    On the other hand- since they just submitted their data- we should have access to the language they want to use, so there’s no theoretical reason we can’t send the email based on that.  Of course- this would need another change to the confirmation message- as that would be sent prior to the cookie being set as well.

    Hm- so the short answer is- I’m going to double check for you.  I think it’s working as expected- but it’s not really working like you’d prefer it to.  So it’s most likely going to be a good candidate for a feature request.  (Or an extension- but seems to me, this could be included in the core as it does make sense.)

    But let me double check- make sure my read of the code is correct.

  • #6 / Jun 28, 2007 11:36am

    Ozmodiar

    16 posts

    Thanks. For now I’ll just make the activation email trilingual ...

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

ExpressionEngine News!

#eecms, #events, #releases