Home › Forums › WoodMart support forum › Issue with product element only displayign EN text
Issue with product element only displayign EN text
- This topic has 23 replies, 2 voices, and was last updated 4 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
October 26, 2020 at 7:08 am #236086
ToriTori38ParticipantHi there,
I have a German website (front end language German, backend English) and have noticed an issue with the “Products Tab” – a WP Bakery element. When you click “load more” or navigate to a new tab, it displays the translated text in English rather than German.
All text is translated in the plugins, but for sme reason when the element loads products or a new tab with Ajax, it is not calling the language files.
I have created a video to show you. This is not an issue with another plugin on the website. It is specifically linked to this element we are using.
I am using loco translate on this website, not WPML. One option is to trick the sytsem by falsely translating the English Loco language files to German.
Video in private content below
October 26, 2020 at 12:33 pm #236205
Aizaz Imtiaz AwanKeymasterHello,
I watched the video you attached and visited your website and there are no product tabs added to the homepage.
Please provide me with the URL of the page where the product tabs are added to check it myself and help you out accordingly.
Regard’s.
Xtemos Studios.October 26, 2020 at 4:40 pm #236286
ToriTori38ParticipantHi Aizaz,
Yes this is a testing site. Below I have added details so you can look.
I have not given you admin access, as I would prefer not to due to data protection rules. Hopefully you can offer some advise from seeing issue front-end.Many thanks
October 27, 2020 at 7:11 am #236393
Aizaz Imtiaz AwanKeymasterHello,
I have visited your website and load more buttons on the product tabs showing the translated products.
Screenshot for Clarification: https://ibb.co/xC5ND3B
Please clear the cache and check back.
Regard’s.
Xtemos Studios.October 27, 2020 at 7:16 am #236394
ToriTori38ParticipantThanks for looking. Couple points:
1. The “loading” text (when youload more products) displays in English, even though it is translated via Loco (Woodmart string). Do you know how I make it appear in German?
2. The tax and delivery text actually shows in English only when I am logged in. If I am not logged in it shows in German. Is that normal?
Many thanks
October 27, 2020 at 7:26 am #236399
ToriTori38ParticipantUPDATE – Seems the issue of text appearing in English (rather than German) is when I am logged in. If I am logged in the text (loading + tax and delivery options) are shown in English, which is strange. So it is taking the admin language for the front-end for some strings. Do you know why that is? If I am not logged in all is correct – all displays in German.
Can you also just confirm the correct file location to save my Woodmart translations to (in Loco), so they are not deleted with updates (custom, system or author)? I have attached a screenshot with the 3 file location options.
Thanks again.
Attachments:
You must be logged in to view attached files.October 27, 2020 at 11:30 am #236483
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third-party plugins, activate the parent theme clear cache, and check back.
If the problem continues then leave all the third-party plugins deactivated and provide admin panel login details to check it myself and help you out accordingly.
Best Regards.
November 4, 2020 at 3:08 pm #238667
ToriTori38ParticipantHi there,
Just reporting back on this. It is actually linked to the admin language and when I am logged in. If I change my admin language to German (and I am logged in), then the text all apears in German rather than English.
Is that normal behaviour, that admin language is affecting strings in your theme which are loaded with Ajax? I have no cache enabled on the site.
November 5, 2020 at 6:09 am #238867
Aizaz Imtiaz AwanKeymasterHello,
This is the default behaviour of the loco translate plugin that when you selected a particular language from the dashboard then the same language is shown on the front-end as well. That’s why it displays the german language when you logged in.
Best Regards.
November 5, 2020 at 8:43 am #238927
ToriTori38ParticipantHi Aizaz,
Yes OK but it only affects the languages within your theme framework / elements. None of the rest of the site is affected. It is only where ajax is used to load or refresh elements where there is this issue (the slide out cart suffers from this aswell).
So are you saying we canot fix this compatability issue with Loco Translate? I hope it should not be a big issue (as most of our customers should have the DE language admin), but it is not great having a langauge displaying front end whilst logged in, which should not be there.
Thanks
November 5, 2020 at 12:05 pm #239027
Aizaz Imtiaz AwanKeymasterHello,
If you want to show the English language for Backend then please go to Users >> Edit the User which you are using for Administrator >> THen select the English Language for that user, in this way the backend shows the English language.
For the frontend, go to Settings >> General >> Select the languages which you want to show on the frontend like German.
If still you will find the issue, please share the WP admin login details of your site so I will check and gives you the possible solution.
Best Regards.
November 5, 2020 at 12:30 pm #239041
ToriTori38ParticipantHello Aizaz,
Yes the front end language is set to German (in WP settings), but when loading elements with Ajax your theme strings are showing in English rather than German. Even error messages are in English rather than German.
Please see again these 2 videos (in private content):
If youre OK, I shall send you login details, but this is a production site so please be careful and do not make any code changes directly on this site.
November 5, 2020 at 1:22 pm #239084
Aizaz Imtiaz AwanKeymasterHello,
Yes, please share the WP admin login details of your staging site, I will only check the possible solution and give you the solution you can do it by yourself. I will not make any changes to your site.
Best Regards.
November 5, 2020 at 1:23 pm #239085
ToriTori38ParticipantOK many thanks. I will send login details after lunch
November 5, 2020 at 2:15 pm #239109
ToriTori38ParticipantHello,
I ahve added credentials in the private information below. Thank you
November 6, 2020 at 11:01 am #239373
Aizaz Imtiaz AwanKeymasterHello,
Your issue has been solved. This is your site cache issue, I have just go to the wp-content/ folder and remove the cache folder from your site.
Also, please go to Loco >> Settings >> and add the Scan JavaScript files with extensions:
js
Please see the screenshot: http://prnt.sc/vela02Please check your site now in the Incognito browser.
Best Regards.
November 6, 2020 at 12:12 pm #239389
ToriTori38ParticipantHello,
Thank you for looking at this but the issue is still the same when I look in 2 different browsers in incognito mode. I have attached 2 videos again in the private area to show you (Firefox incognito mode).
Please do not remove the maintenance mode from the website. It is very important search engines do not access the site.
November 6, 2020 at 1:14 pm #239437
Aizaz Imtiaz AwanKeymasterHello,
It is the site cache issue, when you log out and see the website the translation is working fine, only after login into the WP admin the translation is not showing. Please see the video:
https://streamable.com/ys33l5Best Regards.
November 6, 2020 at 2:19 pm #239469
ToriTori38ParticipantHello Aizaz,
I explained that already to you.
It is not a cache issue. It is 100% to do with the language of the admin user. If you change your admin language to German, you will see that these strings are in German when you are logged in (rather than English). That is not to do with cache.Kindly please do not remove the maintenance mode from the website.
November 6, 2020 at 3:07 pm #239495
ToriTori38ParticipantHello Aizaz,
As I said in my first message on this matter (if you cannot locate the problem), maybe one option is to trick the system by falsely translating the English Loco language files to German. So even if the English strings are used the text will display in German.
If I do that, what location do I need to save the loco files to, so they are not deleted with plugin/theme updates? Please see image attached.
Attachments:
You must be logged in to view attached files.November 7, 2020 at 10:37 am #239674
Aizaz Imtiaz AwanKeymasterHello,
Yes, you should use the custom location, after that, you will not lose the translation after the theme update or plugin update in the future.
Best Regards.
November 7, 2020 at 12:19 pm #239719
ToriTori38ParticipantHi Aizaz,
I notice you uploaded the Wp File Manger to my site. Can you let me know if you made any changes to any of the files?
November 7, 2020 at 12:28 pm #239721
ToriTori38ParticipantAlso, do you agree the best method to sort this issue is to do my workaround? To trick the system by falsely replacing the English Loco language strings with German ones. Ive tested on the slide out cart, and it works (replacing the English strings with German ones).
November 7, 2020 at 12:56 pm #239727
Aizaz Imtiaz AwanKeymasterHello,
1. Yes, I have installed the WP File Manager but did not made any changes to the file just check the cache folder of the site.
2. Yes, if the issue will be solved for you then you can use that trick.
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register