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 2020-04-23 20:12:20

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Cart auto switch language don't work

Hello,

A question that I never found the answer to.

My site is configured to have two languages "French" by default and "English".

Everything is ok for the text pages, on the other hand for the Cart module I have set up the two languages well but even if we click on the language icon and we switch to English language, the part of the "Cart" module, the buttons, the basket, the validation page and customer information remains in French.

Have you been faced with this problem?

Here is my site:
https://phototheque.nicolaslogerot.com/

thank you in advance
Nico

Last edited by Nico3939 (2020-04-23 20:13:09)

Offline

#2 2020-04-23 23:14:24

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

In my testing, it looks like the language is being applied in all areas of the cart. I did have to make sure that I filled out the fields in Cart > Settings > Languages (in addition to the main Settings > Languages area)


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2020-04-24 01:33:14

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Thanks Rod,

I already did that, configure the languages via the Backlight Languages page and the 2 languages in Cart module, but nothing helps.

I had to start translating into the 1st language (French) of the Cart module with the following technique:

<span data-lang="en">Ajouté au panier</span><span data-lang="en">Add to cart</span>


But it doesn't work with all buttons. For example, BUTTON_VIEW_CART, BUTTON_BACK_TO_THE_GALLERY, BUTTON_COMPLETE_YOUR_ORDER and BUTTON_CHANGE_YOUR_ORDER returns errors to me or the button is not displayed correctly ...

I can't find why Cart doesn't translate automatically because the rest of the website translates very well and goes well from one language to another

Last edited by Nico3939 (2020-04-24 01:33:56)

Offline

#4 2020-04-24 03:18:51

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

strange.
They were working for me earlier when I was first testing.
I just tried again and it wasn't working correctly.
I went back into cart languages and made a change and saved it. Then logged out of Backlight and back in. Then did the usual clearing of template and browser cache.
Now it's all working again. Buttons are showing the proper language.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2020-04-24 21:28:04

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

thank you Rod, I tried all this but nothing works.

When I set English by default in BackEnd, the basket is well translated but does not want to go back to French when I click on the icon in FrontEnd.

Weird, there is a bug but I can't understand where it is ...

Offline

#6 2020-04-24 21:30:22

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

You’ve done a lot of custom work, could that be an issue?
Ben will need to address this.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2020-04-24 23:03:06

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Yes, Thank for all Rod!

Offline

#8 2020-04-27 23:55:06

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Hi,

In Admin > Setting > Show advanced Settings > Miscellaneous > Cart Language

what to put? "en" or "fr", the reference language in database 1 or 2...

However I register here nothing changes

Thanks
Nico

Offline

#9 2020-04-28 00:07:15

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

I believe that sets the default language.
Go to Settings > Languages. Hover over the Manage Language link and look a the end of the URL in the browser (usually displayed in the lower left of the browser window). You'll see a number.
If you don't see a url, click on Manage Language and look at the end of the URL in the browser address bar.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2020-04-28 00:47:09

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Thanks Rod,

That's it:
French --> 1
English --> 2

I also saw this in phpadmin> Admin-Master> Language and there is a language ID column

Unfortunately, whatever I put, Cart definitely doesn't want to translate!

I tried removing languages and republishing new ones, I also tried to deactivate PHPlugins in the advanced settings of the templates .... while emptying the browser cache and using the Backlight admin ... and much more but nothing helps

Nico

Last edited by Nico3939 (2020-04-28 01:00:48)

Offline

#11 2020-04-28 01:03:41

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

I initially had success in getting the proper language to show in the cart. But after leaving the browser or coming back the next day, I find the the language is no longer being applied.
If I go into Backlight > Cart > Languages and resave languages, then it works again in the same browser (I was using Firefox).

I tried other browsers before and after but it wasn't working.

For example, I checked in Chrome after re-saving the language in Backlight in Firefox. The chosen language wasn't showing in the cart.
I then logged into Backlight while in Chrome, resaved the language, reset the cart, and checked again. The language now works.

I'll let Ben know what's going on.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2020-04-28 02:49:16

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Hummm interesting, have to try that. I have test with Chrome and Safari but not with Firefox...

Thanks Rod, I’ll try that and post result

Offline

#13 2020-04-28 03:12:55

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

what I found is if I fixed things in Firefox (while logged into Backlight in Firefox), the fix didn't translate over to other browsers. In other words, your visitors probably won't see the correct language.
It seems it only worked for me when I was in the browser that I applied the fix in.

I also applied the fix in Firefox and then switched to my laptop and looked in Firefox. The proper language didn't show up.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#14 2020-04-28 04:58:20

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

thank you Rod, that reassures me that the error would not only come from my installation.

what happens when you are logged in to the admin and enter this address?:

https://www.yourwebsite.com/backlight/c … iagnostics

« /cart/admin/diagnostics »

with me it returns an error:
Something went wrong
Invalid argument supplied for foreach() in diagnostics.php on line 215

(maybe it has nothing to do!)

Thanks
Nico

Last edited by Nico3939 (2020-04-28 05:02:07)

Offline

#15 2020-04-28 07:04:17

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Cart auto switch language don't work

I didn't know that was even a feature of Backlight. It doesn't work for me.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2020-04-28 10:34:59

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

Re: Cart auto switch language don't work

I've found the issue and released a fix.  The localisations are all application-specific (designer, publisher, cart, etc.).  Changing the language in the album wasn't removing the cart settings.  Can you visit the Backlight Modules page and update module-framework to 2.0.15.

The diagnostics page is abandoned.  It was created when the Cart configuration was stored in a text file, back in CE2?  I can't see any way of getting to that page without a direct link.

Offline

#17 2020-04-28 17:10:48

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Cart auto switch language don't work

Hi Ben,
Firstly, thank you very much for the fix, it seems that now everything is working perfectly!

And for the diagnosis, I looked everywhere where the error came from, thinking that it was due to my installation and came across this file. I am on Backlight since version 1, never used CE2.

Again thank you for your responsiveness and the update, it's perfect, a great team always listening!

Nico

Offline

Board footer

Powered by FluxBB