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".
Consider factoring out "bitcoins" string in AskPassphraseDialog #380
issue JeremyRand opened this issue on July 9, 2021-
JeremyRand commented at 2:53 AM on July 9, 2021: contributor
-
fanquake commented at 3:22 AM on July 9, 2021: member
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.
-
JeremyRand commented at 3:27 AM on July 9, 2021: contributor
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.
- hebasto added the label Refactoring on Jul 11, 2021
-
hebasto commented at 8:53 AM on September 24, 2025: member
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.
Closing for now. Feel free to open a PR to continue the discussion on the proposed code improvements.
- hebasto closed this on Sep 24, 2025