Skip to content

Conversation

GreatSock
Copy link
Contributor

This allows the user to enter periods into the "Min amount" box in the transaction view on locales using commas. Previously only commas could be entered, which does not work.

Now when a comma is typed it will also be automatically translated into a period.

GreatSock added 2 commits May 19, 2018 00:08
Fixed not being able to type a period in the transaction view "Min amount" box on locales using comma.
Now you can only enter periods, but not commas.
When a comma is typed in the transaction view "Min amount" box it will be automatically translated into a period.
@fanquake fanquake added the GUI label May 19, 2018
@practicalswift
Copy link
Contributor

practicalswift commented May 19, 2018

I'm trying to understand the Qt code here.

If the Qt client is supposed to be culture aware when it comes to handling of the radix point, shouldn't we let the locale machinery handle it throughout to make the radix point handling consistent?

(Also, very theoretically the user could be using an exotic evil locale with a radix point other than . and , .-))

@GreatSock
Copy link
Contributor Author

It now works like any other place an amount is entered. So it should be consistent everywhere now.

And even if the user is using some weird locale it'll still allow them to type a period using the period key(or even the comma key). Before it would only let them type their locale's radix point which would not result in a valid number.

@promag
Copy link
Contributor

promag commented May 19, 2018

Concept ACK. This also allows copy&paste.

@jonasschnelli
Copy link
Contributor

Yes. Why not.
Concept ACK

@DrahtBot
Copy link
Contributor

Needs rebase

@hebasto
Copy link
Member

hebasto commented Sep 23, 2018

NACK: too complex for a locale related issue.

@maflcko
Copy link
Member

maflcko commented Sep 24, 2018

No activity in more than 2 months. Let me know when you want to work on this again and I can reopen.

@maflcko maflcko closed this Sep 24, 2018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants