7.2.X, 7.3.X, Master
Steps to reproduce:
- Start a Liferay portal
- Create a structure (Struct1) with a 'Text' and a 'Number' field
- Create a new web content (Content1) using the above-created structure
- For the default English translation, add "Hello" to the Text and "-12.54" to the Number field
- Switch to Spanish translation and observe that the value is still "-12.54"
- Change the Text field to "Hola" and keep the "-12.54" value in the Number field
- Save the web content
- Open the web content again and check the values
Expected result: The value should be "-12.54" for English and Spanish as well (or possibly "-12,54" for Spanish, since that's the correct number format for that language)
Actual result: For English translation, "-12.54" but for Spanish translation "-1254"
Most likely caused by
LPS-102643 . Although, it fixes a different scenario. In Spanish and Italian the comma "," is the decimal separator, and the dot "." is simply dropped from the value, when parsing it on those specific languages. Technically, this is the correct behavior, but it's confusing for the users, as the values are directly copied between languages when creating translations. Users expect the numerical values to work, even when they don't "translate" them manually (by replacing "." with "," and vice-versa).
- is caused by
LPS-102643 Problem saving decimal metadata with italian locale
LPS-126957 Numeric values are not translated in editor