Skip to content

Conversation

@jonasschnelli
Copy link
Contributor

Addresses #7014 (partial).

Users can be confused by looking at the "amount" column in the receive coins table (history or created addresses) because they expect the amount of "coins received by this address" instead of the "requested amount".

Renaming table header from "amount" to "requested amount".

@laanwj
Copy link
Member

laanwj commented Jan 20, 2016

utACK
(nit: please change the commit and pull request title to "requested amount" too)

@jonasschnelli jonasschnelli changed the title [Qt] rename "amount" to "received amount" in receive coins table [Qt] rename "amount" to "requested amount" in receive coins table Jan 20, 2016
@jonasschnelli
Copy link
Contributor Author

Sorry. Typo. Fixed (reworded commit and PR title to "requested amount").

@maflcko
Copy link
Member

maflcko commented Jan 20, 2016

utACK 6693cb2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about

 QString RecentRequestsTableModel::getAmountTitle()
 {
-    QString amountTitle = tr("Amount");
     if (this->walletModel->getOptionsModel() != NULL)
-    {
-        amountTitle += " ("+BitcoinUnits::name(this->walletModel->getOptionsModel()->getDisplayUnit()) + ")";
-    }
-    return amountTitle;
+        return tr("Requested") + " ("+BitcoinUnits::name(this->walletModel->getOptionsModel()->getDisplayUnit()) + ")";
+    else
+        return tr("Requested amount");
 }

@fanquake
Copy link
Member

utACK

@jonasschnelli
Copy link
Contributor Author

Applied @MarcoFalke diff (force push). Thanks. It's a nice solution for a smaller column.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need a special translation for the case that the model is not set, it is an error case which shouldn't crash but there's no need to make translators work for it (just return empty or something like that).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about the new solution?

@jonasschnelli jonasschnelli merged commit df6e8e1 into bitcoin:master Jan 21, 2016
jonasschnelli added a commit that referenced this pull request Jan 21, 2016
…ins table

df6e8e1 [Qt] rename "amount" to "requested amount" in receive coins table (Jonas Schnelli)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 9, 2017
…eive coins table

df6e8e1 [Qt] rename "amount" to "requested amount" in receive coins table (Jonas Schnelli)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 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.

4 participants