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.
Tagged: WCML
Related documentation:
This topic contains 14 replies, has 1 voice.
Last updated by viktorsL 1 day, 13 hours ago.
Assisted by: Marcel.
| Author | Posts |
|---|---|
| November 24, 2025 at 10:06 pm #17606299 | |
|
viktorsL |
Background of the issue: But when I translate strign that has default language of english to latvian it does not get shown on the frontend on latvian language of the page. Another language like russian works well for this translated english string. but not for latvian which is the default language of my website... Symptoms: Questions: |
| November 24, 2025 at 10:40 pm #17606403 | |
|
viktorsL |
strings liek - Your cart is currently empty. is still not translatedd to default language. |
| November 25, 2025 at 11:33 am #17607765 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, I would eventually also need to request temporary access (WP-Admin and FTP) to your site 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 de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. ✙ Please add the Links to the […] Edit Screen, the Page/Post where you insert the […] and the corresponding Front End Page/Screen Best Regards, |
| November 26, 2025 at 5:38 am #17610170 | |
|
viktorsL |
The link to a page is a cart page - hidden link |
| November 26, 2025 at 4:30 pm #17612886 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, could you please try clearing the contents of /wp-content/languages on your staging environment and check whether the files are regenerated afterward? Best regards, |
| November 26, 2025 at 8:00 pm #17613230 | |
|
viktorsL |
I did it and also cleared cache and things. it did not help |
| November 26, 2025 at 10:45 pm #17613519 | |
|
viktorsL |
Can it be related if I use custom plugin that overrides cart-empty.php using: and then in override cart-empty.php with something like: so the string is pulled from woocommerce in my custom plugin and thus can potentially be untranslatable to default language? Or it must work anyway? |
| November 26, 2025 at 11:09 pm #17613547 | |
|
viktorsL |
Maybe there is some way to use correct context of the language when calling actions or variables from woocommerce inside my custom overriden files, like language specific: |
| November 27, 2025 at 5:56 am #17613793 | |
|
viktorsL |
I also tried removing the custom templates from the plugin so it uses woocommerce templates and still english version appeas on front, even though default is latvian. |
| November 27, 2025 at 6:22 am #17613798 | |
|
viktorsL |
I tried translating other plugins, tried also disabling plugins, reanabling them but it did not work. When the default language domain for string is set to English and it is translated to Latvian and my website is in Latvian as default language it just does not work. Strings still displayed in default string language for default webpage language. When I choose any other language (secondary) - all works well... |
| November 27, 2025 at 4:30 pm #17615985 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, please provide a duplicator package of your site for local debugging: https://wpml.org/de/faq/provide-supporters-copy-site/. Thanks! Best Regards, |
| November 28, 2025 at 3:46 pm #17618666 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, thanks for the package. I can confirm that the issue also occurs without your custom code and with a default theme and your plugin deactivated. I also tested it locally by switching the default language, and the content is still shown in English instead of Latvian once it becomes a secondary language. I’ll need a bit more time to investigate this, but I will keep you updated. Best regards, |
| November 28, 2025 at 3:50 pm #17618668 | |
|
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
As a test, I added 1-2 new languages to force a language download from the WordPress servers. After doing that, the issue was resolved. Now Latvian appears correctly in both the default and secondary language, showing “Jūsu grozs ir tukšs.” Could you please confirm whether this works for other strings as well? Best regards, |
| November 28, 2025 at 4:13 pm #17618708 | |
|
viktorsL |
Thank you |
| November 28, 2025 at 4:15 pm #17618709 | |
|
viktorsL |
Can you explain what do you mean by adding 1-2 new languages? |



