Skip Navigation

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

Problem:
The client needs to display different decimal separators for invoices in English and German on a WooCommerce site, both using the Euro currency. The client found the necessary string for the decimal separator but it was registered and locked, preventing changes.
Solution:
1. Set the default decimal separator in WooCommerce to a period (.) for English, which is the site's default language. Navigate to WooCommerce → Settings → General → Currency Options and set the Decimal Separator to a period (`.`).
2. To adjust the decimal separator for German, use WPML's String Translation. Go to WPML → String Translation and click on the Admin Texts Translation link here. Search for `woocommerce_price_decimal_sep`, check the box, and click "Add to String Translation".
3. In WPML → String Translation, search again for `woocommerce_price_decimal_sep`. For German, set the translation value to a comma (`,`), and leave the English version as is.

If this solution does not resolve your issue or seems outdated, we 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 further assistance is needed, please open a new support ticket here.

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 4 replies, has 1 voice.

Last updated by Carlos Rojas 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
May 2, 2025 at 11:16 am #16989300

simonM-37

Background of the issue:
I am trying to produce invoices in two languages, English and German, on my site hidden link. Both invoices are in the Euro currency. In WooCommerce, I have to choose a decimal separator as a point (.) or a comma (,).

Symptoms:
I need English invoices to display the amount as €29.99 and German invoices to display it as €29,99 or 29,99 €.

Questions:
Is it possible to have different decimal separators for English and German invoices in WooCommerce with the same currency (Euro €)?

May 2, 2025 at 1:45 pm #16989826

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Since your site’s default language is English and you want to show different decimal separators for English and German invoices (while using Euro currency), here’s how you can set it up using WPML’s String Translation:

1. Go to WooCommerce → Settings → General → Currency Options
Set the Decimal Separator to a period (`.`)
This will apply to English (the default language)

2. Go to WPML → String Translation
At the bottom of the page, click on the Admin Texts Translation link https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#register-admin-and-setting-strings-for-translation
Search for `woocommerce_price_decimal_sep`
Check the box and click "Add to String Translation"

3. Back in WPML → String Translation, search for `woocommerce_price_decimal_sep`
For German, set the translation value to a comma (`,`)
Leave the English version unchanged (it will inherit the default value `.`)

Can you try this?

May 2, 2025 at 2:01 pm #16989860

simonM-37

Hi Bruno

I can find the string, but it is greyed out and disabled, so I can't check the box to add it to String Translation.

It says "Registered and locked" (see screenshot).

Please advise.

Kind regards
Simon

Screenshot 2025-05-02 at 15.59.29.png
May 6, 2025 at 7:20 am #16999484

Carlos Rojas
WPML Supporter since 03/2017

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

Timezone: Europe/Madrid (GMT+02:00)

Hello Simon,
My name is Carlos, and I will continue working on this ticket

The message you see means this string is already available in WPML -> String Translation. Please search and translate the string in WPML -> String Translation

Please let me know if you need further assistance.

May 6, 2025 at 9:59 pm #17003778

simonM-37

Gracias Carlos. Solved!

May 7, 2025 at 6:59 am #17004548

Carlos Rojas
WPML Supporter since 03/2017

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

Timezone: Europe/Madrid (GMT+02:00)

Great!

Please don't hesitate to contact us if you need our help in the future with WPML.
Have an excellent day.