pioneer icon indicating copy to clipboard operation
pioneer copied to clipboard

Translation Issue - Number Separator

Open RacerBG opened this issue 4 years ago • 6 comments

Observed behaviour

In the "Core" module at string # 358 I'm not able to include blank space as a separator for the large numbers. Transifex gives the following error: "The translation is empty and does not contain any words."

Expected behaviour

It should be possible to include a blank space as a separator.

Steps to reproduce

  1. Go to Transifex.
  2. Go to the "Core" module.
  3. Look for string # 358.
  4. Try to save the translation with just the NBSP special symbol.

RacerBG avatar Jan 02 '21 15:01 RacerBG

I'm not sure this is something we can fix, unless we introduce a special character for NBSP, that isn't the actual character? I see no other language is using the space separator, yet.

What's the number separator in german? Ping @jmf

impaktor avatar Jan 03 '21 16:01 impaktor

In Germany, thousands are separated by a dot and decimals by a comma. To illustrate, here is ten million Euro and twenty-five cents: 10.000.000,25€

Update: This varies, though, for other german-speaking languages. https://en.wikipedia.org/wiki/Decimal_separator

c3f59 avatar Jan 19 '21 16:01 c3f59

Sorry for not replying earlier... I'm not sure how many languages except Bulgarian separate large numbers with space. For example:

10 100 1 000 10 000 100 000 1 000 000 1 000 000 000

RacerBG avatar Jan 20 '21 15:01 RacerBG

We do it that way in Hungarian as well

bszlrd avatar Jan 20 '21 15:01 bszlrd

Polish, too. Not 100% certain but I believe Russian does it too.

Zireael07 avatar Jan 20 '21 16:01 Zireael07

We will likely handle this separately from the regularly-translated Transifex strings; this will require some code support, but will make it possible for more exotic separators like space to be supported.

sturnclaw avatar Jan 21 '21 02:01 sturnclaw