Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alphawallet failed to use comma , as decimal separator in Spanish #3099

Closed
SmartLayer opened this issue Feb 20, 2023 · 4 comments
Closed

alphawallet failed to use comma , as decimal separator in Spanish #3099

SmartLayer opened this issue Feb 20, 2023 · 4 comments
Assignees

Comments

@SmartLayer
Copy link
Member

SmartLayer commented Feb 20, 2023

Reference: Read this first
https://www.reddit.com/r/ethdev/comments/1178d5p/how_do_you_deal_with_european_number_notation_in/?utm_source=share&utm_medium=android_app&utm_name=androidcss&utm_term=1&utm_content=share_button

  1. The left side shows that a UK bank (wise) in Spanish language mode, where the user types with a decimal point, and the screen confirms with a decimal comma. This is the desired behaviour.
  2. The right side shows that alphawallet use decimal point during input (acceptable) as well as display (not okay)

(Of course we are not supposed to hard code the correct behaviour like how numbers are displayed 𝑖𝑓 Android has a system way to do that, since we never have the full knowledge of which locale uses decimal comma which uses decimal points.

device is Samsung S21 Ultra Thin

Correct behaviour AlphaWallet behaviour
Screen_Recording_20230220_134755_Wise mp4 Screen_Recording_20230220_123359_AlphaWallet mp4
@SmartLayer SmartLayer changed the title Can't send 0.1 ETH, minimum is 1 Not using , as decimal separator in Spanish Feb 20, 2023
@SmartLayer SmartLayer changed the title Not using , as decimal separator in Spanish alphawallet failed to use comma , as decimal separator in Spanish Feb 20, 2023
@JamesSmartCell
Copy link
Member

JamesSmartCell commented Feb 20, 2023

@weiwu-zhang we came to a conclusion some time ago to simply force the input to always use decimal, no matter what locale as this is safest.

The above issue applies to an old version of AlphaWallet.

@seabornlee if you think we can update the internationalisation safely - and use the ',' for locales that support this - please go ahead. We'll probably need to add some run-time testing for this.

@hboon
Copy link
Member

hboon commented Feb 21, 2023

Yes, we decided to always use , as thousands separator and . as decimal separator no matter the locale more than a year ago.

There were a few reasons:

  • some sites in the blockchain like Coinmarketcap does this so users are used to it
  • keyboard doesn't always provide the correct buttons for the separators
  • copy and paste from elsewhere
  • we didn't get it to work, this way was much simpler and consistent

So let's keep this unless there's a very solid reason to change it and we are really confident there is no issue making the change. We have far too many regressions already.

@SmartLayer
Copy link
Member Author

SmartLayer commented Feb 21, 2023

I'm accepting the decision because it was a thought-over process by the team (I disagree with the decision because we should aim to be better than banks instead of better than dapps, all bank apps do it the local way. But I can't overrule a decision without being in the UX role). In the meanwhile, yearly review on this decision is needed to avoid we fall behind other wallets when they progress to cover larger userbase instead of focusing on crypto native.

A lesson I never forgot from the lesson my father told me when I was in middle school:

son, you don't need to learn to use a computer because it will never be prevelant in China. The reason is that English is the language of computers - everyone learns to use computers in English. Still, Chinese will not learn English on a large enough scale to make computers relevant because China is not using the world conventional 26 letters.

(Today, I have not seen any native Chinese use English computers) -> In conclusion, user experience always moves forward.

@hboon
Copy link
Member

hboon commented Feb 21, 2023

#3104 to set a reminder to follow up in a year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@hboon @SmartLayer @seabornlee @JamesSmartCell and others