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

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 23 replies, has 0 voices.

Last updated by giedriusN 1 day, 1 hour ago.

Assisted by: Waqas Bin Hasan.

Author Posts
February 11, 2025 at 7:57 am #16690191

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I was able to reproduce the issue as you mentioned and have escalated the issue to our 2nd tier team for further investigation.

I'll get back to you as soon as there's more to it.

February 13, 2025 at 8:21 am #16700499

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

After a detailed discussion with the team, please note the following:

- Updating WC Setting for decimal separator, by changing language from top admin bar is not the correct way. Because if you save these settings in the other language, this 'll overwrite these in all the languages.

- The correct way is to translate these settings from WPML -> String Translation, as you did too. BUT, there you need to correct the language of the string first. By default, WC registered that decimal separator setting in English, while your site's default language is Lithuanian. So the correct way of doing it as following:
--- Make sure the language is default Lithuanian, from top admin bar.
--- In WooCommerce -> Settings, set the , (comma) as decimal separator and save.
--- Go to WPML -> String Translation and search for it.
--- If there's English flag shown for the , (comma), change/correct the language to Lithuanian.
--- Translate the comma to . (dot) in English.

After this, there's no amounts mess in orders created in WP Admin (WC -> Orders). Means all the amounts are reflecting correctly.

I've recorded a couple of videos to show the above mentioned, please watch hidden link

I'm not sure how your expected translation of decimal separator been working previously. I'll recommend providing a test site where it has been working or where you can make it work using previous versions of WPML plugins you've used (and it was working as you mentioned). So then we can try looking again into it. Because so far, the correct workflow is as mentioned above and we're unable to reproduce the issue following it.

February 13, 2025 at 12:36 pm #16702051

giedriusN

Thank you for the information.

This issue appeared after we upgraded WPML plugins. With previous version, it was possible to create orders through administration interface without any problems.

After changing the language domain of the separator string, so that we have ,(LT) -> .(EN), this issue no longer appears when an order is entered using LT language.

However, if you switch to EN (in the top menu), and then try to enter an order in English, the same issue is back again. Would it be possible for you to try and confirm?

Thank you in advance.

Kind Regards,
Giedrius

February 14, 2025 at 12:41 pm #16706395

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates, I'll check again and 'll get back to you accordingly.

P.S.: I'll be off over the weekend and 'll be able to attend on Monday.

February 14, 2025 at 2:42 pm #16706892

giedriusN

Thanks, I will be waiting for the news.

Have a good weekend.

Kind Regards,
Giedrius

February 17, 2025 at 5:24 am #16711643

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I rechecked and can not reproduce that wrong amount issue. However, I can see that even changing to English, still uses , (comma) for the decimal separator. Is that what you're referring to?

Please watch my screen recording hidden link .

If that's not the case and you're still able to reproduce the "wrong" amount in case of English, please record your screen showing clearly and exactly what and how it is happening. You can use the same sandbox (hidden link) to reproduce the issue.

Please also note that on the frontend, it works perfectly fine.

February 17, 2025 at 1:20 pm #16714457

giedriusN

Hello,

It looks like language switching is not working in your sandbox site - after switching to EN in the top menu bar, the menus still were in Lithuanian. So I changed the language in the profile settings.

Now, with demo user, I see everything in English. Try to create an order, add a product, press Recalculate, then Create, then Recalculate again. The result is 1234.00 € - see the picture attached.

Kind Regards,
Giedrius

WPML-20250217.png
February 18, 2025 at 5:56 am #16716869

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. Previously we've been missing these 2 key points (admin language and recalculating again), while circling around the translation of the comma.

I've reproduced as you mentioned and am checking with my team. I'll get back to you accordingly.

February 18, 2025 at 1:23 pm #16719125

giedriusN

Thank you so much, I will be waiting for the updates.

Kind Regards,
Giedrius