Skip Navigation

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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 5 months ago.

Assisted by: Prosenjit Barman.

Author Posts
February 9, 2024 at 1:35 am #15283813

diegoB-20

Hi there,

We have created several Spanish Custom languages, Spanish for Chile, Peru, Colombia, Argentina, Mexico, etc. WordPress works fine and the website is shown in Spanish when accessing the different folders. However, the Woocomerce part (product listing, add to cart, the cart itself, etc) it's shown in English for some of those Spanish custom languages.

For instance:

AR: Works fine --> hidden link
CL: Works fine --> hidden link
CO: Works fine --> hidden link
PE: Doesnt work fine --> hidden link

February 9, 2024 at 11:46 am #15285823

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

Please note that translations for all static strings in WooCommerce are provided within the WooCommerce Translation (PO) file. If a translation exists in this file, it will automatically be applied without the need for manual translation of that particular string.

For the custom language versions you've created from Spanish, it seems that only the Spanish (Peru) translation is not displaying correctly. According to the WooCommerce Translation project, currently, only 20% of WooCommerce's strings are translated into Spanish (Peru), as seen here: hidden link.

This indicates that the strings appearing in English on the WooCommerce pages might not have been translated into the Spanish (Peru) language or the translations might not have been added to the translation files yet.

To fix any untranslated texts, please try the following steps and hopefully, it will help in solving the issue:

- Navigate to "WPML > Theme and Plugins Localization".
- Choose the "WooCommerce" plugin and scan the plugin for strings.
- After the scan is complete, select the "Automatically load the theme's .mo file using 'load_textdomain'" option on the same page and add "woocommerce" in the "Enter Textdomain" field. Save your changes.
- Then, go to "WPML > String Translation" and look for the untranslated string.
- If you find the string, you can add the Spanish (Peru) translation by clicking on the "+" icon.

If the string doesn't show up in the String Translation section, you might find it in the Admin Texts section by following the guide here: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings.

Please reach out if these steps help resolve the issue or if you require further assistance. I'm here to help.

Best wishes,
Prosenjit

The topic ‘[Closed] WooCommerce shown in English when we use Spanish Custom Language’ is closed to new replies.