New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Removed duplicated text in Token Popup #14428
base: master
Are you sure you want to change the base?
fix: Removed duplicated text in Token Popup #14428
Conversation
Made sure Token List title is only appended if sourceName does not already ends with such string
Jenkins Builds
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't (or may not) work due to the translations; better just display the token list name verbatim
Yup. I think it's better, but still not something we can translate. @alaibe Would it be a good idea to change the |
@alexjba yes indeed, backend should not provide any text to render, we could even potentially simply returns a "key" |
Good point! A "key" is even better. Do you want me to add a task for this? |
In this case current PR becomes irrelevant. Should it be discarded now? |
Not sure. I guess you have a few options:
|
I would leave on the backend side only names, I doubt anyone would like to see 'Uniswap' or 'Status' words translated, and then UI part appends translated 'Token List' |
That's how it should look like actually, e.g.: text: qsTr("%1 Token List").arg(backendTokenListName) |
NVM, looks like we have a key in the nim model. So could be just a string mapping: |
We also have this in Constants.qml: readonly property QtObject supportedTokenSources: QtObject {
readonly property string uniswap: "Uniswap Labs Default Token List"
readonly property string status: "Status Token List"
readonly property string custom: "custom"
} |
@Seitseman ping, any progress here? |
fixes #14366
What does the PR do
Made sure Token List title is only appended if sourceName does not already ends with such string
Screenshot of functionality (including design for comparison)