This module creates an extra mail template which is not translatable when enabling the variables module internationalization. All other mail templates can be translated.

Would be nice if this could be implemented.

Comments

rob c’s picture

Status: Active » Closed (works as designed)

I guess you have to switch the site to the language you want to translate the template to, visit the admin/config/people/accounts page (for Dutch for example nl/admin/config/people/accounts ) and translate the template and save it OR http://drupal.org/node/652064#comment-3765628 if that's still valid.

The code for this is practically the same as Drupal core, so i guess it's something not related to this module, but please re-open the issue when you are sure it's not.

kle’s picture

Category: bug » feature
Status: Closed (works as designed) » Needs review

Hi,
this wasn't easy to solve: With i18n you can control so called Multilanguage Variables.
Just enable "Variable translation" and go to configure.
Now you can turn on all site-mails to multi-language-vars.
But there is no Var for user-registration mail. Why? Because the module lacks of something like this:

/**
 * hook_variable_info (defined in variable.module)
 */
function user_registrationpassword_variable_info($options) {
  $variables['user_registrationpassword_register_[mail_part]'] = array(
    'type' => 'user_mail',
    'title' => t('Welcome, no approval, password is already set', array(), $options),
    'description' => t('Customize welcome e-mail messages sent to new members when password is already set .', array(), $options),
    'group' => 'user_mails',
  );
  return $variables;
}

No you can turn on this here: admin/config/regional/i18n/variable

In admin/config/people/accounts you than will see a small message: This is a multilingual variable. under the Edit-Field.

Hello maintainer: maybe you want this to add to your fine module...

Happy translate !

rob c’s picture

Assigned: Unassigned » rob c

I'm flooded with work at the moment / other issues, but this one is getting higher on my TODO list.
Expect an update somewhere next week. (i didn't forgot about it)

Already did a small test and it indeed shows up, i am going to do some more testing, but seems like a descent fix.

Can you create a patch for this kle? Saves me a lil bit of work. Thnx!
(more info: http://drupal.org/patch )

rob c’s picture

Status: Needs review » Reviewed & tested by the community

It's available for testing on Git. Test the 7.x-1.x repo.
http://drupal.org/node/1050930/git-instructions/7.x-1.x

Will be available in -dev somewhere in the next 24 hours.
Please test and confirm working, also updated the README.txt to reflect the changes.

Thanks for this patch, yes, this wasn't easy to find. Great work!

We will publish a new release soon. 1.3 will include this issue and some minor coding style issues.
If you want it now, get the 7.x-1.x version from Git.

(will update status to fixed ones 1.3 is released)

rob c’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Fixed in the development release, 1.3 will be released very soon. Help out test the current dev. Thnx!

rob c’s picture

Assigned: rob c » Unassigned
Issue summary: View changes