hasankhan786 / daily-money

Automatically exported from code.google.com/p/daily-money
0 stars 0 forks source link

Dot not accepted as decimal separator in some locales #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use Polish locale, with comma as the decimal separator. Unfortunately the on 
screen numeric keyboard only shows dot, and entering, say, "9.22" in daily 
money detail screen is interpreted as "9".

I work around that by entering the calculator and immediately clicking OK. This 
puts the amount as "9,22", which is correctly parsed.

Ideally daily money should accept both comma and dot as decimal separator.

(Nexus One, 2.3.1, MicroMod v.20 (based on AOSP).)

Original issue reported on code.google.com by divided.mind on 19 Jun 2011 at 1:34

GoogleCodeExporter commented 9 years ago
I can confirm this bug, its not new. 

When I enter amount, the key for ',' (which is decimal point in my locale), is 
blocked.

I can choose to either enter the amount completely in the calculator, or use 
'.' and then enter calculator to route ok, to have the decimal point fixed.

I guess you can fix it in two ways, I frankly don't care which.

1  Fix the keyboard entry method, so the locales decimal point is allowed to be 
typed.
2  Make the program ignore locale in regard to decimal point, and always use '.'

I am not sure that this is a bug in ' Daily Money', since many a Android 
applications have the problem, I suspect Android might be to blame.

I am on samsung galaxy tab, and I am running  'Daily Money 0.9.7' on 'Android 
2.2, Froyo'.

You are welcome to contact me for further details or testing.

Original comment by bytebin...@gmail.com on 13 Jul 2011 at 11:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It's related to Android Issue 2626.
http://code.google.com/p/android/issues/detail?id=2626

In the issue are some workarounds explained, the fix must come with a new 
Android version.

WORKAROUND for Daily Money:
Use the calculator for decimal input. It works in my locale (Germany).

The calculator somehow generates a correct float, even it displays "." as 
seperator. Then it converts it back to string with the current locale. And 
there it is the "," seperator.

Original comment by philipp....@gmail.com on 22 Jul 2011 at 2:08

GoogleCodeExporter commented 9 years ago
Have same trouble. Daily money v0.98, Russian locale, Android 2.3.6 stock for 
Samsung Galaxy S Plus. Workaround with calculator works. I think that's because 
Daily money ignores android-set locale.

Original comment by azcapone on 16 Aug 2012 at 9:39