Skip to content
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 legend of investment marker #4423

Conversation

mierin12
Copy link
Contributor

This is an issue that I introduced in #4298 sorry.
The non hidden tooltip itself was indeed fixed, but the common excluded label should have been PortfolioTransaction.Type.BUY.toString() instead of Messages.SecurityMenuBuy, as this label is used not only as the hidden tooltip, but also as the legend : so now Messages.SecurityMenuBuy is shown in the legend while it wasPortfolioTransaction.Type.BUY.toString() beforehand; so in French we now have "Acheter" the verb (="to buy") instead of "Achat" the noun (="purchase"), same for sell.
Capture d'écran 2024-02-12 084104

With this PR : the tooltip stays hidden for all languages, and the legend reverts to the original PortfolioTransaction.Type.BUY.toString() label.

Language Messages.SecurityMenuBuy PortfolioTransaction.Type.BUY.toString()
German Kauf Kauf
Chinese simplified 买入 买入
Chinese traditional 購入 買入
Danish Køb Køb
English Buy Buy
Spanish Compra Compra
French Acheter Achat
Italian Compra Compra
Dutch Aankopen Aankoop
Polish Kup Kupno
Portugese Comprar Comprar
Portugese brasil Comprar Comprar
Russian Покупка Покупка
Slovak Kúpiť Kúpiť
Czech Koupit Koupit

For French, having the noun in the legend is better. I believe in Dutch and Polish, Aankoop and Kupno are also the noun rather than the verb, so I think it makes sense also for them.

@buchen buchen merged commit db5beb7 into portfolio-performance:master Dec 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants