Skip Navigation

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

Problem:
The client was unable to translate the custom excerpt using the TRAVEL TOUR theme by Goodlayers.

Solution:
We identified that the custom XML configuration code in the plugin did not register the custom excerpt for translation. The existing code in

/wp-content/plugins/tourmaster/wpml-config.xml

was missing the necessary entries. To resolve this, we provided the following XML configuration to be added to WPML > Settings > Custom XML Configuration tab:

<wpml-config>
  <custom-fields-texts>
    <key name="tourmaster-tour-option">
      <key name="*"></key>
    </key>
  </custom-fields-texts>
</wpml-config>

After adding this code, the client should edit the tour, make a small change to the tour content, save, and then update the translation. For further guidance, we referred to the documentation on custom fields translation options.

If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket in our support forum.

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.

Tagged: 

This topic contains 15 replies, has 3 voices.

Last updated by Long Nguyen 2 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
November 27, 2023 at 9:03 am #14927931

alainL-22

I don't know how to translate custom excerpt.

November 27, 2023 at 9:38 am #14928307

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Here is the forum ticket. Please let me know which custom excerpt you want to translate and share some screenshots of this.

Look forward to your reply.
Thanks

November 30, 2023 at 7:05 am #14958209

alainL-22

Hello,

The first picture shows you what ins not translated (that stays in French that is the language from which the site is made and translated, then to English and German)
The seond picture shows you where to go from the templates
And the third picture shows you what needs to be translated, and that I can't find a way
(Well, it seems that the pictures appeared in the opposite order when I loaded them, i guess you'll guess!!)
Thanks for your help
Cordially
Alain

Capture d’écran 2023-11-30 075922.jpg
Capture d’écran 2023-11-30 075706.jpg
Capture d’écran 2023-11-30 075551.jpg
November 30, 2023 at 8:34 am #14959425

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I tried some troubleshooting steps to translate the custom excerpt field but it doesn't work. The theme "TravelTour" is not available in our list of compatible themes, which you can check here https://wpml.org/theme/

So it could be a compatibility issue between this theme and WPML. Please help me to replicate the issue on a clean installation of WordPress. With this link, you can login directly to the admin area.
hidden link

Kindly follow the steps below:

- Don’t restore your site there.
- Install the TravelTour theme and necessary addon plugins.
- Try to replicate the issue.
- Then let me know the steps to replicate it.

This will help us to report the issue to the compatibility team and solve this faster.

Look forward to your reply.
Thanks

November 30, 2023 at 3:21 pm #14964527

alainL-22

Hi I installed traveltour, my question is how to translate this custom excerpt.

hidden link

Go to any tour, click sur edit, then scroll down until Tour settings, in tour settings, you will find the following menu with
GENERAL - TOUR SETTINGS - DATE & PRICE - URGENCY MESSAGE - REMINDER & MESSAGE, click on tour settings again, and then scroll down until Custom Excerpt

And please try to find a way to translate that.

Great thanks in advance

Cordially

Alain

December 1, 2023 at 2:22 am #14968187

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

On the sandbox site, I see the custom excerpt is translatable and available in the Advanced Translation Editor as well. Please check the screenshot attached.

On your site, I suggest you follow steps below and see if it helps:

1. Enable a minimal environment: Deactivate all plugins except WPML and Tour Master plugin.
2. Edit a tour > Make small change to the excerpt > Save > Update the translation.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Look forward to your reply.
Thanks

Advanced Translation Editor - WPML [Staging] 2023-12-01 08-58-00.png
December 1, 2023 at 5:03 am #14968515

alainL-22

Hi there,

Thanks for your answer. Where to go to update the translation in this case ?

December 1, 2023 at 5:08 am #14968549

alainL-22

I tried but I can't click, is there where I should go ?

Capture d’écran 2023-12-01 060752.jpg
December 1, 2023 at 6:36 am #14968911

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

After updating the tour post, you can see the circle arrows in the Languages box to update the translation, please check the screenshot attached.
If you use the Translate Everything Automatically mode (setup in WPML > Settings), the tour is translated automatically.

Thanks.

Edit Tour “Africa – Amazing African Safari” ‹ Sandbox — WordPress 2023-12-01 13-33-41.png
December 1, 2023 at 7:42 am #14969535

alainL-22

Maybe i failed in something but I did all what you asked, deactivating all the plugins except wpml and tour master, then saved and then updated the translation, but I don't see any change !
So sorry ;-(

December 1, 2023 at 8:22 am #14969915

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

So the issue is specifically on your site. Please share a backup file of your site, I will restore it on my demo site and investigate the issue. Or you can copy your live site to a staging site and share the credentials with me. Your next reply is set to private to share the info.

You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/

Look forward to your reply.
Thanks

December 8, 2023 at 10:08 am #15024345

alainL-22

Hello, so sorry for the late reply, I also needed to struggle with duplicator pro.

Please, click on the link below to get the backup files done with Duplicator pro
hidden link

Waiting for your anser.

Great thanks in advance
cordially

December 8, 2023 at 3:44 pm #15026997

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

After restoring your site on my local host, I found the issue. The custom XML configuration code in the plugin doesn't register the custom excerpt for translation. Here is the current code:

<custom-fields-texts>
    <key name="tourmaster-tour-option">
        <key name="promo-text"/>
        <key name="duration-text"/>
        <key name="date-range"/>
        <key name="departure-location"/>
        <key name="return-location"/>
    </key>
</custom-fields-texts>

you can find it in the file /wp-content/plugins/tourmaster/wpml-config.xml

I fix the issue by adding the code below to WPML > Settings > Custom XML Configuration tab to register all subfields of the custom field "tourmaster-tour-option".

<wpml-config>
  <custom-fields-texts>
    <key name="tourmaster-tour-option">
      <key name="*" />
    </key>
  </custom-fields-texts>
</wpml-config>

You can add the code to your site, then edit the tour > Make a small change to the tour content > Save and update the translation.

Refer documentation https://wpml.org/documentation/support/language-configuration-files/custom-fields-translation-options/

Look forward to your reply.
Thanks

Advanced Translation Editor - WPML 2023-12-08 22-38-34.png
December 8, 2023 at 9:26 pm #15028123
alainL-22

Hi Long,

Thank you for your solution that, according to your words seems to work.

I did everything you asked me to do.
But unfortunately and I'm so sorry for being nul, I don't know how to get to the screenshot you sent. What is the way to go there ?
Also, I still didn't find how to translate the footers, and some widgets.
Well, everything is quite complicated to me

Cordially

Alain

December 11, 2023 at 6:22 am #15033213

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Alain,

This is Waqas, I'll be taking care of the issue until Long is on vacation (this week).

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.