Skip to content

Consider factoring out "bitcoins" string in AskPassphraseDialog #380

Closed

Description

@JeremyRand

The Bitcoin-Qt GUI contains the word "bitcoins" in two strings in AskPassphraseDialog. In the same spirit as bitcoin/bitcoin#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".

Activity

  1. fanquake commented on Jul 9, 2021

    @fanquake
    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.

  2. JeremyRand commented on Jul 9, 2021

    @JeremyRand
    ContributorAuthor

    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.

  3. hebasto commented on Sep 24, 2025

    @hebasto
    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.

  4. locked and limited conversation to collaborators on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions