Skip Navigation

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

Problem:
The client was unable to locate and save translations for some custom strings on their website.
Solution:
We added the following XML code to the Custom XML Configuration tab in WPML->Settings to make the strings available for translation:

<wpml-config><br />  <admin-texts><br />    <key name="widget_bookyourtravel_search_widget"><br />      <key name="*"><br />        <key name="widget_search_for_label"/><br />        <key name="submit_button_text"/><br />        <key name="widget_generic_filter_label_1"/><br />        <key name="widget_generic_filter_label_2"/><br />        <key name="widget_location_filter_label_1"/><br />        <key name="widget_location_filter_label_2"/><br />        <key name="widget_carrental_filter_label_1"/><br />        <key name="widget_submit_button_text"/><br />        <key name="widget_clear_button_text"/><br />      </key><br />    </key><br />  </admin-texts><br /></wpml-config>

After adding the code, we instructed the client to go to WPML->String Translation and search for the widget's strings to translate them. We also provided a guide on XML configuration for further assistance: https://wpml.org/documentation/support/language-configuration-files/translate-strings-in-wp-options-table/

If you're experiencing a similar issue and the solution provided here does not resolve it, or if it seems outdated or not applicable to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum: https://wpml.org/forums/forum/english-support/.

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 3 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
January 31, 2024 at 1:17 pm #15249458

angelm-12

Hello Osama: I have some few custom strings which I have failed to locate.

I kindly request for help.
hidden link

hidden link

hidden link (hidden link) and RESERVA AHORA

They are translated but the translation are not saved I think.

I look forward to quick response.

Kind regards.

January 31, 2024 at 1:20 pm #15249465

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

1) The first two issues are fixed. Please check if the strings are translated correctly.

2) The search widget issue, please create a widget per language. Kindly check this guide. (https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages)

Best regards,
Osama

February 1, 2024 at 12:53 pm #15255016

angelm-12

Thank you Osama, I have tried all the methods you gave to look the following strings but I have failed: hidden link and hidden link and also hidden link I have failed

I kind request for your suport.

February 1, 2024 at 1:09 pm #15255055

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I've added the following XML code to WPML-> Settings-> Custom XML tab.

<wpml-config>
  <admin-texts>
    <key name="widget_bookyourtravel_search_widget">
      <key name="*">
        <key name="widget_search_for_label"/>
        <key name="submit_button_text"/>
        <key name="widget_generic_filter_label_1"/>
        <key name="widget_generic_filter_label_2"/>
        <key name="widget_location_filter_label_1"/>
        <key name="widget_location_filter_label_2"/>
        <key name="widget_carrental_filter_label_1"/>
        <key name="widget_submit_button_text"/>
        <key name="widget_clear_button_text"/>
      </key>
    </key>
  </admin-texts>
</wpml-config>

Please go to WPML-> String Translation, search for the widget's strings, and translate them.

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

Please let me know if the strings work correctly after translating them.

Best regards,
Osama