Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 6 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 4 months ago.

Assisted by: Prosenjit Barman.

Author Posts
March 10, 2024 at 9:00 pm #15392936

stephanosP

Tell us what you are trying to do?
On the single listing page (where you open a vehicle) there is only one "template" page which has content on it. The dynamic contact is detected by WPML and translated, but all other content like headings, the categories (taxonomies) etc are not being translated no matter what language you select. In the string selection however all those options are translated.

On the general inventory page there is a "Sort by" option, but this does not translate the "headers" either. For example, Year does not translate to "Jaar" in dutch etc...

Is there any documentation that you are following?
hidden link

Is there a similar example that we can see?
hidden link
The above should be dutch, but you can see "Engine", "Body" etc which is not translated.

What is the link to your site?
hidden link

March 11, 2024 at 9:17 am #15393720

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. The custom field, where you've inserted the information about the Engine, Body, etc may be set to "Copy", which is why, the text is not showing translated in other languages. Would you please change the translation preference for the specified fields to "Translate", by going to "WPML > Settings > Custom Field Translation", retranslating the listing, and checking again?

For the headings that are not displaying in translated languages on the single listing page, it might be because the template for the Single listing you've created hasn't been translated into other languages. Could you please provide the WPML Debug Information from your site? This will help me understand the WPML configurations on your site better. For guidance on how to obtain the WPML Debug Information, please refer to this tutorial: https://wpml.org/faq/provide-debug-information-faster-support/

Paste the information in the debug info box that you'll see in your next response.

I also checked the inventory page and understood the issue. As the text that you're trying to translate is a Static text, maybe scanning the theme would help to locate and translate the text. Please follow the steps below.

- Please go to WPML > Theme and Plugins Localization.
- Select the "Motors" theme and click on the "Scan" button
- Once the Scan is completed, please go to "WPML > String Translation"
- Search for the text in the header that you want to translate. If that appears in the result, click on the "+" icon under the language flag and translate the text.

However, if you're unable to locate the strings, you may need to search in the Admin screen and register the texts for translation, by following the instructions mentioned here: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

Let me know if the information helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

March 11, 2024 at 9:43 am #15393955

stephanosP

Hi there,

The options were indeed listed as "Copy" and not "Translate". I did this per instruction for the theme. I just changed this for "Engine" to Translate but for now it still remains the same on the other languages. I've checked all strings and all those are translated as needed.

The static text you refer to on the "Sort By" options is still an issue. I already did perform the register texts for translation thing but seems it does not help. The way these strings are listed is the following:
%s: highest first --> the highest first gets translated but the value in %s does not. For price and mileage there are seperate entries and those are being translated like we'd expect them to.

The debug info also added.

March 12, 2024 at 3:48 am #15397673

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update and for attaching the Debug information.

It seems the texts 'Engine', 'Body', and 'Kilometer' on the Single listing page are Taxonomy labels. Would you please go to "WPML > Taxonomy Translations", select the taxonomy that appears on the single listing page, and then try translating the labels?

As certain texts still not appear translated, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

March 13, 2024 at 7:21 am #15402185

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

I've checked and been able to trace why the contents on the Single listing template weren't showing translated.

The reason the Listing Templates weren't appearing in other languages was due to their translation preference being set to "Not Translatable". I've now updated this setting in "WPML > Settings > Post Type Translation" to allow translation for the Listing Template post type. After translating the template and linking the translated templates it to each respective language, the content on that page is now correctly displayed in all specified languages.

You can access the listing templates from this link(hidden link) and adjust the translation of the templates as per your needs.

Regarding the issue with Translating Categories - I have checked and found that the category "Engine" hasn't been registered for translation. I went to the Admin screen(Documentation: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings), and registered the "Engine" String for translation and upon translating the String from String translation, the translation appears properly in other languages.

However, for the Body and Kilometer categories, for some reason, both do not appear translated into other languages, despite making the same configuration as the "Engine" category. Could you please try recreating the Categories in the Dutch language? Once created, please go to "WPML > Taxonomy Translate" and then translate the Labels into English and French. Please do the same for Year Taxonomy as well.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

March 13, 2024 at 8:33 am #15402453

stephanosP

Recreating them in Dutch also means changing them on all existing listings and needing the theme to take those categories in account on all those pages. (not the case because I just tested this)

Is it possible that it's an issue because the original main language was English and then was selected to Dutch?
Is there a way for the ones that don't work to remove the translations and recreate them?

March 14, 2024 at 5:57 am #15406311

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi,
Thank you for the update.

Changing the default language of the site couldn't cause this issue as we can change the source language of texts from the String translation section. Please check this guide for more details about the process: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Removing translations for Categories that are not displaying their translations might help address the issue. Navigate to "WPML > String Translation", locate the problematic Category by searching for it, and then proceed to delete its translations.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] Listing page translations’ is closed to new replies.