Example:

  1. Create an email to be sent to the submitter of the form in English and translate it to Dutch.
  2. Create an email to be sent to the site editor in English and do not translate it.
  3. As a visitor of the site in Dutch, fill in the form
  4. Visitor receives email 1 in Dutch
  5. Site editor receives email 2 in English

Is the above the expected behaviour or should we make an option when creating an email like 'Send this email if there is no translation regardless of the current language of the submitter of the form'?

CommentFileSizeAuthor
#4 MailHog_email.png23.71 KBadhariwal
#3 MailHog.png23.71 KBadhariwal

Comments

adhariwal created an issue. See original summary.

scott_euser’s picture

Status: Active » Closed (outdated)

Are you looking at the stable release? Multi-lingual is available in the development branch which should be released as stable shortly. You're welcome to test the development branch which does have an upgrade path (note that by updating, you won't be able to roll back to the current stable release - you'll need to wait for the new stable release to come up to move to that - I would recommend backing up first before updating to a development branch).

If this issue is related to the development branch, please reopen.

adhariwal’s picture

StatusFileSize
new23.71 KB

I now tested it with dev branch and added two email templates one for English and other for Hindi, while sending a test email my site language was Hindi and I received two emails one in Hindi and other English.

error image

adhariwal’s picture

StatusFileSize
new23.71 KB
adhariwal’s picture

Version: 8.x-1.13 » 8.x-1.x-dev
Status: Closed (outdated) » Active
scott_euser’s picture

Title: Contact emails module does not support multi lingual use case. » Contact emails multilingual sends emails from all languages

Can you confirm whether you created 2 emails or whether you created 1 email then translated that single email?

adhariwal’s picture

I created two emails one for each language.

scott_euser’s picture

Hmmm I think we need to consider this a bit.

  • As an editor, I add an email in English to notify me of new submissions. I expect to receive that email regardless of what language the visitor submits in.
  • As a visitor, I expect to receive a receipt confirmation email in my own language.

Perhaps we need to give control to the site builder control per email to decide its behaviour.

Thoughts?

scott_euser’s picture

Title: Contact emails multilingual sends emails from all languages » Contact emails multilingual sends other languages if there is no translation in the current language
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

If you do actually translate the email rather than create 2 emails, only the email in your current language gets sent.

  1. Go to /admin/structure/contact/emails
  2. Under operations for the email you want to translate, choose 'Translate'
  3. Click 'Add' under the language you want to translate the email to
adhariwal’s picture

@scott_euser I agrees with the use case you have narrated. Also I don't think adding content translation is a good idea here. Can't system choose the appropriate email template based on the current language of the site?

scott_euser’s picture

Could you explain why you think content translation is not a good idea? I would prefer to use the tools we have available to us rather than create our own - keeps it easier to support. Happy to hear arguments against that.

astonvictor’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks