Skip Navigation

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

Problem:
The client is unable to translate WooCommerce pages into Vietnamese despite having WPML and WooCommerce Multilingual installed. The default language is set to Vietnamese, and English is the second language. When WPML is deactivated and the site's language is switched to Vietnamese, the WooCommerce pages translate correctly, indicating a potential issue with WPML settings.

Solution:
1. We recommend updating the translation strings by navigating to the WordPress admin area, going to Dashboard > Updates, and clicking on 'Update Translations'.
2. If that doesn't resolve the issue, we suggest importing the translation strings manually:
- Go to WPML > Theme and plugins localization and scan strings in the WooCommerce plugin and other plugins/theme.
- Download the PO file from the Stable project translation at https://translate.wordpress.org/projects/wp-plugins/woocommerce/stable/vi/default/
- Switch the default language to English in WPML > Languages.
- Import the PO file via WPML > String Translation.
- Switch the default language back to Vietnamese in WPML > Languages.
For detailed instructions, refer to our documentation on importing and exporting PO files.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we 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. If needed, do not hesitate to open a new support ticket for further assistance.

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

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
May 3, 2024 at 10:21 am #15590724

nguyenM-3

Hello, I'm trying to translate my WooCommerce pages into Vietnamese but struggle to do so despite having installed WPML and WooCommerce Multilingual.

As I have set up in WPML, Vietnamese is my website's default language, and English is my second language. Supposedly, when I download WooCommerce Multilingual, all my WooCommerce pages (shop, cart, account, etc.) should be automatically translated to my default language, right? However, in the Vietnamese version of my web, all the WooCommerce modules remain in English.

I only managed to translate some English text in the WooCommerce pages using WPML string translation, but that's not enough. I found out that if I deactivate the WPML plugin, then switch my site's language to Vietnamese, the WooCommerce pages are all translated to Vietnamese just fine. So, is there a problem with the plugin's setting?

Here's the link to my site: hidden link

Screenshot 2024-05-03 at 11.26.31.png
Screenshot 2024-05-03 at 11.26.19.png
Screenshot 2024-05-03 at 11.26.13.png
May 4, 2024 at 2:38 pm #15593527

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please increase your WP Memory limit to 256M? 128M is the minimum required by WPML.
Your current values are:

PHP Memory Limit 768M
WP Memory Limit 40M
Add this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/ That's all, stop editing! Happy blogging. /

Now, verify the current settings at WPML > Support > WordPress. Then complete the translation again.

These settings can be limited directly by your hosting provider, so I recommend you contact and ask them to modify them directly.
If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, which means, with a default theme and no other plugins installed.

----

Next, go to WPML > Theme & Plugin Localization. You should see a white banner on top of the page that indicates that WPML found new language files in a theme or plugin. Open the dialog, mark all the checkboxes, and run the dialog.

This will create the custom language files for WPML on your server at /wp-content/languages/wpml and the Vietnamese translations should be available after taking this step.

In case this dialog will not complete the task or not solve the issue, please let us know and we will assist you further.

Best regards
Andreas

May 5, 2024 at 5:06 am #15593932
nguyenM-3

Hi Andreas,

I managed to get the WP Memory limit to 256M, but my problem has not been sold and now it has more problem.

Can you go to my website to have a look please hidden link Because I do not know how to explain to you probably through text.

Go to maihistoria.com => on the menu you will see "Bộ sưu tập" => "Cài áo cao cấp" => You will see lots of products. But when you click in one product, it shows "No results found".

This problem happened when I increased the WP Memory limit to 256M yesterday.

For your information, I am using Woocommerce for my shopping page.

Please help me solve this.

Thank you.

Nguyên--

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/single-product-page-shows-no-results-found/

May 5, 2024 at 5:08 am #15593933

nguyenM-3

However, when i change the product page to English, it still appears.
That is why it is so strange.
Because the original language of my website is Vietnamese, not English.
I attach here the photo of the product page in English.

Screenshot 2024-05-05 at 12.07.43.png
May 5, 2024 at 5:15 am #15593949

nguyenM-3

All of my products that I uploaded in Vietnamese version. When i click in now, they all appear "No result found"

May 5, 2024 at 6:53 am #15593968

nguyenM-3

And regarding yesterday's instruction, I got stuck at the step "complete the translation again", because I don't quite understand what to do. All my pages and themes have been translated to English already, so do I need to delete those translations and do them all again? I also didn't see any white banner in Theme & Plugin Localization, leaving me confused of what to do next.

May 6, 2024 at 3:48 am #15594908

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

Thank you for contacting WPML support, I’m happy to help you with this issue.

I understand the issue on the WooCommerce pages is the strings are not displaying the translation. If you deactivate WPML and switch the site to Vietnamese, the translation strings are displayed on the pages correctly.

The translation strings are downloaded from the WordPress translation system hidden link

Please go to admin area > Dashboard > Updates > Click on Update Translation and see if it helps. If not, there is a workaround to import translation strings to your site, please follow steps below and let me know if it helps:

1. Go to WPML > Theme and plugins localization > Scan strings in the WooCommerce plugin and other plugins, theme.

2. Go to the Stable project translation hidden link
and download the PO file, check the attached screenshot.

3. Go to WPML > Languages > Switch the default language to English.

4. Go to WPML > String Translation > Import PO file to your site.

5. Go to WPML > Languages > Switch the default language back to Vietnamese.

Refer documentation https://wpml.org/documentation/getting-started-guide/string-translation/#import-export-po-files

Regarding the issue with the single product page, we limit one issue per ticket only so I will split this ticket into a new one for better handling.

Looking forward to your reply.
Thanks

Translations < Vietnamese < Stable (latest release) < GlotPress | WordPress.org 2024-05-06 10-19-59.png
String Translation ‹ WPML — WordPress 2024-05-06 10-16-19.png
May 8, 2024 at 4:39 am #15604164

nguyenM-3

Hi Long,

Thank you for your help, your instruction was very useful. I have managed to translate my WooCommerce pages to Vietnamese already. So, thanks again!

Regards,
Nguyen