Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to make the WPML plugin compatible with the MotoPress Hotel Booking Plugin and the Hotell Pro Theme by Good Looking Themes. The client is facing issues with translating fields controlled by the theme and is unsure if WPML automatically translates these or if manual translation is necessary.
Solution:
We recommend the following steps to ensure that your theme and plugins are fully compatible with WPML for translation:
1. Navigate to WPML -> Theme and plugins localization, select your theme/plugin, and perform a scan.
2. Go to WPML -> String Translation.
3. Scroll down and click on the "Translate texts in admin screens »" link.
4. Search for the strings you need to translate.
5. Select the strings you wish to translate.
6. Click on the "Add to String Translation" button.
7. Then click on the "« Return to String Translation" link.
8. Translate the selected strings, clear your site's cache, and check the front end to see the changes.
For more detailed guidance, please refer to our documentation on translating texts in the admin texts screen.

If this solution doesn't look relevant to your issue, please don't hesitate to open a new support ticket with us.

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.

This topic contains 15 replies, has 3 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
December 14, 2023 at 7:34 pm #15068405

marioS-63

Tell us what you are trying to do?
I am trying to get the WPML plugin to be compatible with MotoPress Hotel Booking Plugin in conjunction with utilizing the Hotell Pro Theme by Good Looking Themes. Translation appears to be working with the Motopress plugin but it's not translating fields which are controlled by the theme. Does WPML automatically translate this or do I have to manually translate everything? I really could use some help making the settings in WPML function with my site properly.

What is the link to your site?
hidden link

December 16, 2023 at 8:46 am #15076765

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Can you please show us specific examples of the fields? If they are already configured as translatable, as described here https://wpml.org/documentation/getting-started-guide/translating-custom-fields/, you should be able to translate them automatically.

The content may come from another source inside the plugin so other translation methods may be needed (taxonomies, admin strings), etc.

Please let me know.

Best Regards
Marcel

December 16, 2023 at 7:48 pm #15077889

marioS-63

Hi Marcel,

I've gone through all of the strings and turned everything I can to translatable.

The issue I am having is mainly with the theme UI website content for the frontpage/homepage and some of the other areas. If you visit hidden link, you will notice that most of the content on the frontpage/homepage does not translate when you click Spanish and I cannot seem to find it anywhere in the strings. It's not a traditional WordPress page that's created, it seems to be internal to the theme UI.

I've included some pictures which I hope will help. These are just some of the areas that are not translating as part of the theme UI.

Thank you,
Mario

Lejos_6.jpg
Lejos_5.jpg
Lejos_4.jpg
Lejos_3.jpg
Lejos_2.jpg
Lejos_1.jpg
December 17, 2023 at 11:07 am #15078683

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Mario,

I'm Osama from WPML forums support. I'll be glad to help you today.

Please try 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

December 18, 2023 at 4:25 pm #15086155

marioS-63

Hi Osama,

I followed your instructions and now the problem is there are over 18,000 untranslated admin strings in the theme code. For some reason, I am unable to select 1000 items per page to speed up the process of moving the admin strings to translatable strings. Even if that would work, it would take me 187 times to move them over. Is there a solution here? I can't be expected to manually move admin strings 1,870 times. That's insanity and my site is really simple.

See attached image representing the issue.

Thank you for you assistance.
Mario

Lejos_7.jpg
December 18, 2023 at 4:28 pm #15086225

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Mario,

You don't need to translate all the admin texts. You just need to search for the untranslated strings on the home page. For example, search for the "ABOUT THE LOCATION" string.

Best regards,
Osama

December 18, 2023 at 4:48 pm #15086299

marioS-63

Hi Osama,

Thank you, that helped tremendously. I can't believe I missed the search option :-/.

Mario

December 18, 2023 at 4:50 pm #15086305

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Mario,

We all miss an option at some time.🙂 Please let me know if you need further assistance translating the home page strings.

Best regards,
Osama

December 19, 2023 at 6:20 pm #15095849

marioS-63

I am having some issues locating some of the strings but I think I can work through it.

On another note, is there any way to have the currency switch automatically when the language changes to Spanish and vise versa? I do have the multi-currency plug-in associated with the MotoPress Hotel Booking Plugin.

Thank you,
Mario

December 19, 2023 at 7:40 pm #15096337

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Mario,

WPML changes the currency regarding the language when you use WooCommerce Multilingual. Kindly check this guide. (https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/)

Please open a new ticket if you need more help regarding the currency switcher.

In our forum, we try to keep one issue per ticket. Continuing with one ticket per issue not only helps supporters focus on one issue at once but also enables other users to find solutions to their questions faster.

Best regards,
Osama

December 21, 2023 at 5:14 pm #15112415

marioS-63

Hi Osoma,

I did run into an issue with some of the strings. Please see attached pictures. In this case, I searched for the word "massive" which is included in the first slider of the homepage. I located it, and moved it over from admin strings to theme strings and translated. For some reason, it's not updating on the site when a majority of everything else is updating instantly as I complete translations. Any ideas on why this would occur?

Thank you,
Mario

Massive_2.png
Massive_1.png
December 21, 2023 at 7:41 pm #15113261

marioS-63

Hi Osama,

I am having a persistent issue with the Testimonial section as well as the Facilities section on the homepage. All of the translations are within WordPress but it's not switching over when Spanish is chosen as the language. Any ideas on this issue?

Also, please note. I am not currently using a cache plugin as A2 was having issues with the hotel booking system integration and making the booking system not function properly.

Mario

December 22, 2023 at 11:35 am #15116589

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Mario,

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 would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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

December 23, 2023 at 12:40 pm #15122427

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

1) Thanks for the access details. I was able to fix the slider strings issue by the following steps:

1- Add the following code to WPML-> Settings-> Custom XML tab

<wpml-config>
  <admin-texts>
    <key name="theme_mods_hotell-pro">
      <key name="*" />
      <key name="slider_custom">
        <key name="*">
          <key name="title" />
          <key name="subtitle" />
          <key name="link" />
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

2- Go to String Translation and translate the strings (hidden link)

Please check this guide to know more about registering Admin texts using XML. (https://wpml.org/documentation/support/language-configuration-files/translate-strings-in-wp-options-table/)

2) For the testimonials and services sections, you need to translate the testimonials/facilities posts IDs via String Translation. (Kindly check the attached screenshots)

Please check the home page and let me know if it works correctly.

Best regards,
Osama

2023-12-23_14-23-46.jpg
2023-12-23_14-18-37.jpg
January 2, 2024 at 7:31 pm #15144560
marioS-63

Hello Osama, happy new year!

When reviewing my entire site and the translation issues, I still have issues in a few places.

1. The contact form shows that it has been translated, however it shows an error on the translated page.

2. I can't seem to find how to change the link on the main menu "Home" option to direct back to the translated page.

3. Under FAQ, the title of the questions cannot be translated as they are "registered and locked".

4. I can't seem to find how to translate the "MAP LOCATION" on the home page. I've checked the string translation under all domains and the admin strings.

Thank you! After these issues are resolved, I believe we are all set.

Mario

New threads created by Osama Mersal and linked to this one are listed below:

https://wpml.org/forums/topic/split-hotell-pro-theme-support-with-wpml/

Map Location.jpg
Home Link.png
FAQ-1.png
FAQ.png
Contact Form.png