gui icon indicating copy to clipboard operation
gui copied to clipboard

Consider factoring out "bitcoins" string in AskPassphraseDialog

Open JeremyRand opened this issue 4 years ago • 2 comments

The Bitcoin-Qt GUI contains the word "bitcoins" in two strings in AskPassphraseDialog. In the same spirit as https://github.com/bitcoin/bitcoin/pull/7192 , it would be nice to factor that out into a single constant string, so that translations are more consistent, and forks that call their coins something other than "bitcoins" can decrease their diff size relative to upstream. Seems like maybe the BitcoinUnits class could be used for this, since it already defines the string "Bitcoins".

JeremyRand avatar Jul 09 '21 02:07 JeremyRand

If you want to make changes that improve the code here, that's fine, but

and forks that call their coins something other than "bitcoins" can decrease their diff size relative to upstream.

that alone is not going to be a reason for us to make changes in our codebase.

fanquake avatar Jul 09 '21 03:07 fanquake

If you want to make changes that improve the code here, that's fine, but

and forks that call their coins something other than "bitcoins" can decrease their diff size relative to upstream.

that alone is not going to be a reason for us to make changes in our codebase.

Yes, I know. The primary reason I'd hope for this change to be made is just that it makes the code cleaner, as with the merged PR that I linked.

JeremyRand avatar Jul 09 '21 03:07 JeremyRand