Skip Navigation

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

Problem:
The client is using WooCommerce Checkout Manager with WPML and is unable to translate the values of a conditional dropdown list from English to Arabic. The strings are still showing in English despite trying solutions from the WPML forum.
Solution:
First, we asked the client if they had tried two specific methods for finding and translating strings that do not appear on the String Translation page:
1) Finding strings that aren’t selected for translation
2) Auto-register strings for translation
We then inquired if the client found the string in WPML > String Translation after trying these methods.

Next, we provided a Custom XML Configuration code to add in WPML > Settings if the fields were added in the "shipping", "Billing", or "Additional" sections:

<wpml-config><br />  <admin-texts><br />    <key name="wooccm_billing"><br />      <key name="*"><br />        <key name="options"><br />          <key name="*"><br />            <key name="label"></key><br />          </key><br />        </key><br />      </key><br />    </key><br />    <key name="wooccm_shipping"><br />      <key name="*"><br />        <key name="options"><br />          <key name="*"><br />            <key name="label"></key><br />          </key><br />        </key><br />      </key><br />    </key><br />    <key name="wooccm_additional"><br />      <key name="*"><br />        <key name="options"><br />          <key name="*"><br />            <key name="label"></key><br />          </key><br />        </key><br />      </key><br />    </key><br />  <admin-texts><br /></wpml-config>

However, we noted that this might not be necessary as we tested the method linked above and confirmed that the dropdown was correctly translated on our test site. We suggested that if the problem persists, the client should switch their theme to Storefront or TwentyTwentyone to see if the issue resolves.

If the provided solution is outdated or not applicable to the client's case, we recommend opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that the latest versions of themes and plugins are installed.

For further assistance, please contact our support team.

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

Last updated by Alejandro 2 years, 8 months ago.

Assisted by: Alejandro.

Author Posts
March 26, 2022 at 12:51 pm #10882671

osamaA-11

I'm using woocommerce-checkout-manager with WPML.
I have a conditional drop down list.
I'm trying to translate lists value from English to Arabic.
I tried all the solution on your forum to translate the strings.
But strings still showing in English.
What can I do in this cases ?
Attached are screenshots.

wpml2.JPG
wpml1.JPG
March 28, 2022 at 2:47 pm #10894415

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hi there!

Can you let me know if you have already tried any of these 2 methods:

1) https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

2) https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation

If you did, can you tell me if you found the string in WPML > String Translation?

Please let me know how it goes.

Regards.

March 31, 2022 at 5:42 am #10915635

osamaA-11

Hi there,
Yes I did 1 and 2.
Yes I'm able to find it and translate it. but it does not appear on the front-end after translation.
Regards,

March 31, 2022 at 7:16 am #10916365

osamaA-11

---------

March 31, 2022 at 3:16 pm #10922217

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

If you added the fields in the "shipping", "Billing" or "Additional" field, then you an add this code in WPML > Settings > Custom XML Configuration:


<wpml-config>
  <admin-texts>
    <key name="wooccm_billing">
      <key name="*">
        <key name="options">
          <key name="*">
            <key name="label"></key>
          </key>
        </key>
      </key>
    </key>
        <key name="wooccm_shipping">
      <key name="*">
        <key name="options">
          <key name="*">
            <key name="label"></key>
          </key>
        </key>
      </key>
    </key>
            <key name="wooccm_additional">
      <key name="*">
        <key name="options">
          <key name="*">
            <key name="label"></key>
          </key>
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

however that's not really needed. i tested the method i sent you earlier: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

and i can see the select correctly translated showing here: hidden link

So if you continue having the problem, please change your theme to storefront or TwentyTwentyone and check if the problem disappears then.

Let me know how it goes.