#197 Missing Labels in Email

Future_Requests
closed
nobody
None
5
2012-08-01
2010-06-04
cyberience
No

I found Missing labels in Email.
I discovered that the language files do not jhave entries for $email_vocab.
So I change the email_vocab function to:
function get_mail_vocab($token)
{
global $vocab;
$string = get_vocab($token, $vocab);
$unescaped_string = str_replace(' ', ' ', $string);
return convertToMailCharset($unescaped_string);
}

From
function get_mail_vocab($token)
{
global $mail_vocab;

$string = get_vocab($token, $mail_vocab);

$unescaped_string = str_replace(' ', ' ', $string);

return convertToMailCharset($unescaped_string);
}

I could have added the $mail_vocab into the language files, but I dont read Chinese or other languages, so its easier to change this one.
Hope this helps others having the same issue.

Discussion

  • This change is not correct. MRBS allows you to define a language for emails, which is specified in the config file. If you make the change above then emails will be sent in the language determined by the user's browser's language settings.

    Instead you should add the missing language tokens to the lang file specified by $mail_settings['admin_lang'] or else change $mail_settings['admin_lang'] to a language that has a complete set of tokens.

    Campbell

     


Anonymous


Cancel   Add attachments