• Resolved Richard Vencu

    (@rvencu)


    I am using WordPress in another language. Or even multilanguage with aids of WPML plugin. I would like to have emails sent into current language of the user requesting access to personal data.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Doesn’t WPML use mo/po files when available? If yes, you could just add the languages this way, as all the template texts are found within the translation files.

    Thread Starter Richard Vencu

    (@rvencu)

    Yes, I did it already, of course. But the sent emails are still in English. I guess in backend the email sending function has no idea what is the current language at frontend.

    Thread Starter Richard Vencu

    (@rvencu)

    Well, something strange happened. I run a network. The main site send emails in English no matter what. One subdomain is sending emails in the current language though…

    I will test more and return with my findings.

    Thread Starter Richard Vencu

    (@rvencu)

    Back – the first email is sent in the translated language. The second email (final confirmation) is sent in English even for the subdomain.

    Thread Starter Richard Vencu

    (@rvencu)

    And there is a good explanation: the frontend is in the translated language so translation is used properly. The backend is in a single language, English, therefore the processing action triggers emails in that language.

    I think the request language should be saved at the visitor/request level. Then send all subsequent emails in that language. I cannot see any other way for multilanguage sites…

    Jimako

    (@jimako)

    @rvencu we solved this by sending emails in both languages (English text and translated text).

    Plugin Author Mieke Nijs

    (@mieke01)

    Thanks for the support and great feedback.
    I think the solution to add the request language is something great to add to the plugin.

    I’ll let you know when it’s implemented.

    Kind regards,
    Mieke

    Thread Starter Richard Vencu

    (@rvencu)

    One of my sites has English plus 3 translations… Not possible to add all languages in the same email, is not professional… Adding language as request parameter is only way to go.

    Plugin Author Mieke Nijs

    (@mieke01)

    Hi Richard,

    In the new release we implemented a language field for emails.
    I tested this with WPML and Polylang. Do you use one of these plugins to make your site multilingual or do you use an other one?
    Can you also test it and see if it works for your site?

    Kind regards,
    Mieke

    Thread Starter Richard Vencu

    (@rvencu)

    Thanks. I did not notice but I will give it a try in a couple of days.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Emails in another language’ is closed to new replies.