openScale icon indicating copy to clipboard operation
openScale copied to clipboard

Inconsistent handling of decimal separator in manual input of weight entries

Open sciamano opened this issue 5 years ago • 0 comments

I'm using current f-droid version 2.3.0 on a system with russian locale, the app itself is set to use default language setting, so it uses diligently comma "," as the decimal separator to display the numbers (like 95,4 for example) in stats, graphs etc as it actually supposed to be.

However, each time I want to enter my weight manually, I have to remember to use dot "." as decimal separator (quite annoying) because the input field does not accepts comma "," and just removes it. Entering 93,5 ends up in 935 kg.

To reproduce it, go to manual weight input dialog, click on the prefilled number to select it completely and start to overwrite it by typing 93,5

The expected behavior will be that comma "," is accepted as the decimal separator if the locale says so. This will also make the handling of numbers consistent with rest of UI as described above.

sciamano avatar Jun 22 '20 18:06 sciamano