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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 20 replies, has 2 voices.

Last updated by Osama Mersal 10 months, 1 week ago.

Assisted by: Osama Mersal.

Author Posts
October 6, 2024 at 11:43 pm #16258601

firmaD-2

Background of the issue:
I am trying to set up the Motors Theme on my site hidden link to have listings in 4 languages using WPML. The theme is supposed to be fully compatible with WPML, but I am experiencing issues. I have configured custom fields specific to the theme to translate under WPML > Settings in the Taxonomies Translation section. I have tried importing listings via CSV for each language using WP All Import and translating listings via WPML, but neither method resolves the issue.

Symptoms:
On the inventory page hidden link I am facing three issues:
- terms used in the filters and in the vehicles grid/list appear in English, despite being translated in the single listing view.
- the modern filter titles and search fields also remain in English.
- the Search by keywords title and tag search inside the field also appear in English in all languages

On the homepage hidden link as well the car filter that does not work in any of the languages:
- the drop-downs shows "Scegli condizione" repeated in all fields (image named filter).

Questions:
Is there a way I can get support to make this theme work with WPML?
What is the correct setup for the Motors Theme and WPML to ensure translations work as expected?

October 8, 2024 at 2:56 pm #16266101

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please try the following steps for the untranslated strings:

1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

2) Please check the video in the useful resources section on this page and the known issue section.

Best regards,
Osama

October 10, 2024 at 12:23 am #16272608

firmaD-2

Hi, thanks for the reply. but this does not solve my problem. I can't understand what you mean at this step:

3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button

I can't find the Translate texts in admin screens section.

I give you an example of the strings I can't translate. This is translated in the string translation in all languages, but still show up in English only.

Screenshot 2024-10-10 at 02.18.10.png
Screenshot 2024-10-10 at 02.17.10.png
October 10, 2024 at 7:11 am #16273045

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

October 10, 2024 at 8:03 am #16273274

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. Please check the following steps:

1- Go to WPML-> String Translation
2- Scroll down and enable the "Look for strings while pages are rendered" option
3- Visit the page on the front end
4- Disable the option
5- Search for the string
6- Translate the string

I applied the above steps to translate the "Date: newest first" string, which can be found in three text domains. However, the one that appears in the hidden link">filter is the "stm_vehicles_listing" domain.

After translating the string, it appears correctly on the front end. (Kindly check the attached screenshot)

Best regards,
Osama

2024-10-10_10-59-23.png
October 10, 2024 at 8:29 am #16273394

firmaD-2

Amazing, thanks to you I could do a small step. I managed to translate the first two:

- Date: newest first
- Date: oldest first

The point is that now I tried to translate also the other items in the dropdown, but the very same process does not work.

For Price: lower first and highest first the string is found only in motors and if I translate it nothing happens.

Screenshot 2024-10-10 at 10.27.50.png
Screenshot 2024-10-10 at 10.26.55.png
Screenshot 2024-10-10 at 10.25.38.png
Screenshot 2024-10-10 at 10.24.05.png
October 10, 2024 at 8:43 am #16273491

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please translate the first two entries hidden link">here.

Best regards,
Osama

October 10, 2024 at 10:35 am #16274224

firmaD-2

Amazing, this worked for the dropdown and I managed to translate also the Search by Keywords and Search text in the filter.

I have several sections I can't translate, I try to show you one by one to avoid confusion.

Now I am trying to figure out how to translate the categories (attributes) that make possible the search with the filter in each single listing appearing in the inventory.

IU could not manage to do that.

Also one question: after I translated all the strings after clicking on the "Look for strings while pages are rendered" will remain on the site or could it be that after some time WPML loses the record of them?

Screenshot 2024-10-10 at 12.33.36.png
Screenshot 2024-10-10 at 12.30.48.png
Screenshot 2024-10-10 at 12.29.49.png
October 10, 2024 at 10:47 am #16274359

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I translated the Year string using the following steps:

1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

Best regards,
Osama

October 10, 2024 at 2:07 pm #16275619

firmaD-2

Thank you so much, you opened my eyes on this.

After your update I translated year in the other two remaining languages and it worked.

I tried all the steps and finally translated Model Style but it still shows up in English: hidden link

On top of that I can't understand why the dropdown in the Homepage search bar always show the same attributes in the wrong language. Woudl you be able to give a look at that and provide me with a feedback.

Thank you so much in advance

Screenshot 2024-10-10 at 15.54.42.png
Screenshot 2024-10-10 at 16.03.33.png
Screenshot 2024-10-10 at 16.03.26.png
Screenshot 2024-10-10 at 16.02.52.png
October 10, 2024 at 3:04 pm #16276007

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) I'm not sure why the rest of the strings are not translated on the front end.

Please log in to this hidden link">sandbox site and install your theme. Then, please create a test car and translate it to replicate the issue.

If the issue is replicable, please let me know to check it and consult our compatibility team.

2) For the home page filter, I noticed that when adding these fields to a translated car, the filter appears correctly. (Kindly check the attached screenshot)

Best regards,
Osama

2024-10-10_17-43-09.png
October 14, 2024 at 1:06 am #16283720

firmaD-2

Dear Osama, tomorrow I try to install the theme in the sandbox and replicate the issue and come back to you.

In the while I kept using the method you did show me and managed to translated a few terms, but it didn't work for the majority of the string that are missing, for instance engine, conditions, model style etc. (1st image).

On top of that I saw some strange things I can't understand. Why Anno Anné and Jahr show up as English terms in the string translation list if those are the terms used for translating the original term year (image 2)?

Screenshot 2024-10-14 at 02.22.24.png
Screenshot 2024-10-14 at 03.05.34.png
October 14, 2024 at 7:14 am #16284172

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) You can change the string source language to the correct language. Kindly check this guide.

2) For the untranslated strings, please check them on the sandbox after installing your theme there.

Best regards,
Osama

October 21, 2024 at 1:48 pm #16312656

firmaD-2

Ok, Sorry for my delay, I am still working on it and testing. Please don't close the ticket. More updates are coming in the next two days. Thanks o smuch

October 21, 2024 at 1:50 pm #16312659

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Sure, please take your time and let me know if you need further assistance regarding this issue.

Best regards,
Osama

The topic ‘[Closed] Motors Theme Translations Set Up and Logic’ is closed to new replies.