[Resolved] Not automatic translation with Woocommerce
This thread is resolved. Here is a description of the problem and solution.
Problem: On an Albanian website, WooCommerce elements like checkout and basket are not automatically displaying in Albanian when set as the default language, unlike a similar setup on a Bulgarian site. Solution: 1. Ensure the default locale is set to "sq" instead of "sq_AL" in WPML > Languages > Edit languages, to match WooCommerce's language files. 2. Rescan WooCommerce for new strings at WPML > Theme & Plugin Localization. 3. In WPML > String Translation, locate and open the translation dialog for untranslated strings. If necessary, delete the registered string so WPML can automatically register it again when visiting the frontend. 4. Enable the option to auto-register strings at WPML > Translation Dashboard > Other texts (Strings) > Detect untranslated strings for testing. 5. Manually translate strings that are not automatically translated by creating a translation job in WPML > Translation Dashboard or using the Advanced Translation Editor.
If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we recommend opening a new support ticket at WPML support forum.
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.
Background of the issue:
I have a website with Albanian and English languages and a hidden Greek language. I set the Albanian language as the default language of the website, similar to another site where I set Bulgarian as the default language. On the Bulgarian site, WooCommerce elements like checkout and basket automatically display in Bulgarian when I change the default language.
Symptoms:
On the Albanian site, WooCommerce elements like checkout and basket do not automatically display in Albanian when I set it as the default language.
Questions:
Why are WooCommerce elements not automatically translating to Albanian when I set it as the default language?
Can you help me resolve the issue with automatic translation on the Albanian site?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
WooCommerce is currently translated into 92% of Albanian: hidden link
In this case, it would be WordPress, which is handling the original strings. Do you get different results if you disable WPML for a moment and run WooCommerce in Albanian?
If yes, revise WPML > Languages > Edit languages, are you making sure to use the default locale "sq".
If you use a different default locale, WordPress will not be able to download the language file.
If this will not solve the issue, please let me know.
Hi Andreas,
i use the sq but its not translating anything by default regarding woocommerce.
Can you pls login to check?
In the other site that is a clone with bulgarian in works nice.
Can you help at least have the albanian language with the 92% comleted, i dont mind, but not nothing
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
The required fields are located below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
Click "I still need assistance" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Your site was using the default locale "sq_AL". It needs to be "sq" to match with WooCommerce's language files.
After that, I scanned WooCommerce again for new strings at WPML > Theme & Plugin Localization.
The problem here is that many strings have already been registered. You will need to locate the strings in WPML > String Translation and open the translation dialog. As long as the strings have not yet been translated, WPML will pull the correct translations once you open the dialog.
In doubt, simply delete the registered string at WPML > String Translation, and WPML can automatically register the string again when visiting the frontend.
For this purpose, you can enable the option to auto-register strings, at WPML > Translation Dashboard > Other texts (Strings) > Detect untranslated strings.
Would you mind if we enable this option for testing? There are still a fe strings that need further attention.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
If you revise now WPML > String Translation and filter by text domain "WooCommerce", you will find many translated strings.
It only looks like some of those translations need to be done manually or by using automatic translation.
Example:
Showing all %d results
This string can be found by WPML when scanning the shop page, but if I search here I can not find it: hidden link
Inside the WooCommerce language file, the string appears as:
Showing all %1$d results
This means the string "Showing all %d results" seems not to be part of the WooCommerce language file, and this is why it is not translated automatically. You will need to create the translation yourself in this case.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Yes, please. There should be only a few strings left that need manual translation.
You can use WPML > String Translation, or you can go to WPML > Translation Dashboard > Other texts (Strings), search for the strings, create a job for all strings and then translate them with the Advanced Translation Editor. Create a job, assign it to yourself, and then access the job at WPML > Translation.
If you have credits available, you could also make use of automatic translation for these strings.