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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Noman 1 year, 2 months ago.

Assisted by: Noman.

Author Posts
April 20, 2024 at 3:52 pm #15546262

basR-5

hidden link

On the checkout page fields are not translated like First name, Last name, etc.

we need to translate this automatically. I tried various settings on the plugin but not work.

Please do the needful on this and fix the issue

April 21, 2024 at 11:42 am #15547107

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. For translating the WooCommerce checkout page strings, please try to follow the below steps:

1. Please go to WPML >> Theme and plugins localization page, select the Woocommerce plugin, and press the “Scan selected plugins for strings” button.

2. Go to WPML >> String Translation page, search for the your required string, and translate them automatically by following the below doc: https://wpml.org/documentation/automatic-translation/automatically-translate-strings-with-wpml

3. If you are unable to find those strings from WPML >> String Translation page, please try the below procedures:

- Go to the WPML >> String Translation page and in the Auto register strings for translation section, enable the ‘Look for strings while pages are rendered’ option.
- Re-visit the page on the front end where the string appears:
- Re-visit the WPML >> String Translation page and search for that string.
- Translate the string.
- After translating the string, uncheck the auto-registration option.

4. If the issue persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

April 21, 2024 at 5:06 pm #15547556

basR-5

hidden link

Here as per your info, i have tried but still it does not work and in checkout, the first name, last name, and other fields is not translated yet

April 22, 2024 at 7:46 am #15548418

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for trying the above steps and sharing the screenshot. In your screenshot, It seems the wrong source language is assigned to the string that is coming from WooCommerce Checkout Manager.

You can easily change the source language of the strings that you see in the string translation by following the below steps:

1. Please go to WPML >> String Translation page.
2. Select all strings that have wrong language assigned.
3. Choose the English language from the “Change the language of selected strings” dropdown as you can see in the attached screenshot.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.

Thank you

wrong language assigned.png
April 23, 2024 at 6:58 am #15553751

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for sharing the login details. I’ve noticed that these labels were the admin strings that is added from WooCommerce >> Settings > Checkout > Shipping page. To translate the admin strings we first need to enable it’s translation from WPML >> String Translation > Translate texts in admin screens » link at the bottom of the page as you can see in the attached screenshot.

Or we can use the XML code in WPML >> Settings > Custom XML Configuration to enable it’s translation directly without enabling it from Admin Texts Translation page: hidden link page. So, I’ve followed the below steps:

1. Added the below XML code in WPML >> Settings > Custom XML Configuration section:

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

2. Went to WPML >> String Translation assigned the English language to those strings.

3. Added the translation and now it seems to be working correctly. Could you please check and confirm?

You can update the translation from here if needed: hidden link

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you for your cooperation and patience

frontend strings 1.png
Enable shipping fields translation.png
Admin text translation link.png

The topic ‘[Closed] in the checkout page fields lable not translated like First name, Last name etc’ is closed to new replies.