Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-09-24 01:06:11

Basebollfoto
Member
From: Norrtälje, Sweden
Registered: 2017-04-17
Posts: 38
Website

Unable to translate "Yes" in the confirmation mail

When the customer gets the confirmation mail it states that "I agree to the trems and conditions" followed by "Yes". The first part is translated but I cannot find where to translate the "Yes".

Offline

#2 2017-09-24 07:45:50

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unable to translate "Yes" in the confirmation mail

Hi, 'yes' and 'no' are actually database values, so we populate the values directly.

Is it only the checkbox values that you're seeing yes (or no) for?  If so, a work-around would be to edit the file that produces the email.  To do so, edit the file backlight/modules/module-cart/application/models/OrderDetails.php and change line 176 from this:

$orderdetails .= $formatter->valueRow($checkbox['title'], $checkbox['value']);

to this:

$orderdetails .= $formatter->valueRow($checkbox['title'], $checkbox['value'] == 'yes' ? 'ja' : 'nej');

(assuming 'ja' and 'nej' are the translations you're looking for)

Offline

#3 2017-09-24 14:44:39

Basebollfoto
Member
From: Norrtälje, Sweden
Registered: 2017-04-17
Posts: 38
Website

Re: Unable to translate "Yes" in the confirmation mail

It is the only one I have seen so far. I will try the work around

Offline

#4 2017-09-24 19:02:01

Basebollfoto
Member
From: Norrtälje, Sweden
Registered: 2017-04-17
Posts: 38
Website

Re: Unable to translate "Yes" in the confirmation mail

I did the change and it worked as requested which is indeed "ja" and "nej" (although I can't picture the scenario where you would get a "No" in the e-mail since it is a mandatory checkbox)

I am utterly impressed by the speed and accuracy of your response as well with the clarity of the instruction

Thanx a million

Offline

#5 2017-09-24 21:00:52

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unable to translate "Yes" in the confirmation mail

I'm glad that solved it for you.  Thanks for the kind words!

Offline

Board footer

Powered by FluxBB