Home›Support›English Support›[Resolved] I can't translate my WooCommerce pages to my default language in WPML
[Resolved] I can't translate my WooCommerce pages to my default language in WPML
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.
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?
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.
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:
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.
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.
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.
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
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.