diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages.properties index 1dbab48036..47881f74aa 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages.properties @@ -2620,7 +2620,7 @@ TooltipAverageHoldingPeriod = The average holding period is calculated as follow TooltipDateOfExchangeRate = Exchange rate of {0} -TooltipHintPressAlt = Press 'Alt' when opening tooltip to sort entries by value +TooltipHintPressAlt = Press ''{0}'' when opening tooltip to sort entries by value TooltipMaxDrawdown = The Maximum Drawdown is the maximum peak to valley loss in a given period.\n\n{0} to {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_cs.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_cs.properties index 0a6ec9c39f..3d57d54538 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_cs.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_cs.properties @@ -2602,7 +2602,7 @@ TooltipAverageHoldingPeriod = Pr\u016Fm\u011Brn\u00E1 doba dr\u017Een\u00ED se v TooltipDateOfExchangeRate = Sm\u011Bnn\u00FD kurz {0} -TooltipHintPressAlt = Stisknut\u00EDm kl\u00E1vesy Alt p\u0159i otev\u0159en\u00ED n\u00E1pov\u011Bdy se\u0159ad\u00EDte polo\u017Eky podle hodnoty +TooltipHintPressAlt = Stisknut\u00EDm kl\u00E1vesy ''{0}'' p\u0159i otev\u0159en\u00ED n\u00E1pov\u011Bdy se\u0159ad\u00EDte polo\u017Eky podle hodnoty TooltipMaxDrawdown = Maxim\u00E1ln\u00ED \u010Derp\u00E1n\u00ED je maxim\u00E1ln\u00ED ztr\u00E1ta od vrcholu k \u00FAdol\u00ED v dan\u00E9m obdob\u00ED.\n\n{0} a\u017E {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_da.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_da.properties index aa37be79ad..ab1974d197 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_da.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_da.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = Den gennemsnitlige holdeperiode beregnes som f\u00 TooltipDateOfExchangeRate = Vekselkurs p\u00E5 {0} -TooltipHintPressAlt = Tryk p\u00E5 'Alt', n\u00E5r du \u00E5bner v\u00E6rkt\u00F8jstip for at sortere poster efter v\u00E6rdi +TooltipHintPressAlt = Tryk p\u00E5 ''{0}'', n\u00E5r du \u00E5bner v\u00E6rkt\u00F8jstip for at sortere poster efter v\u00E6rdi TooltipMaxDrawdown = Det maksimale tilbagefald er det maksimale h\u00F8jeste til laveste tab i en given periode.\n\n{0} til {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_de.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_de.properties index dd751a2ed7..0a84c541fd 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_de.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_de.properties @@ -2613,7 +2613,7 @@ TooltipAverageHoldingPeriod = Die mittlere Haltedauer errechnet sich wie folgt:\ TooltipDateOfExchangeRate = Wechselkurs vom {0} -TooltipHintPressAlt = 'Alt' ('Option' unter macOS) beim \u00D6ffnen des Tooltips sortiert die Eintr\u00E4ge nach Wert +TooltipHintPressAlt = ''{0}'' beim \u00D6ffnen des Tooltips sortiert die Eintr\u00E4ge nach Wert TooltipMaxDrawdown = Der maximale Drawdown stellt den maximalen kumulierten Verlust innerhalb der betrachteten Periode dar. Die Berechnung erfolgt aus der Differenz des letzten Hochs und dem tiefsten Punkt seitdem.\n\n{0} bis {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_es.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_es.properties index 2cc60c5f3a..2dbfcbacaa 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_es.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_es.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = El Periodo Medio de Tenencia se calcula de la sigu TooltipDateOfExchangeRate = Tasa de cambio de {0} -TooltipHintPressAlt = Pulse 'Alt' al clicar para ordenar por valor +TooltipHintPressAlt = Pulse ''{0}'' al clicar para ordenar por valor TooltipMaxDrawdown = El m\u00E1ximo \u201Cdrawdown\u201D (\u2018ca\u00EDda\u2019) es la p\u00E9rdida m\u00E1xima del periodo considerado, la diferencia entre el \u00FAltimo m\u00E1ximo y el punto m\u00E1s bajo desde entonces.\n\nDesde el {0} hasta el {1}. diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_fr.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_fr.properties index b633e4d3f5..11507ad389 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_fr.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_fr.properties @@ -2606,7 +2606,7 @@ TooltipAverageHoldingPeriod = La dur\u00E9e moyenne de d\u00E9tention est calcul TooltipDateOfExchangeRate = Taux de change de {0} -TooltipHintPressAlt = Appuyer sur 'Alt' lors de l'ouverture de l'info-bulle pour trier les entr\u00E9es par valeur +TooltipHintPressAlt = Appuyer sur ''{0}'' lors de l''ouverture de l''info-bulle pour trier les entr\u00E9es par valeur TooltipMaxDrawdown = La diminution maximale est la perte maximale entre le pic et le creux au cours d''une p\u00E9riode donn\u00E9e.\n\n{0} \u00E0 {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_it.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_it.properties index 549facc5d5..d5781f341c 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_it.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_it.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = Il periodo medio di detenzione \u00E8 calcolato co TooltipDateOfExchangeRate = Tasso di cambio di {0} -TooltipHintPressAlt = Per ordinare le voci in base al valore premi "Alt" all'apertura del tooltip +TooltipHintPressAlt = Per ordinare le voci in base al valore premi ''{0}'' all''apertura del tooltip TooltipMaxDrawdown = Il Massimo Drawdown \u00E8 il massimo calo rispetto da un precedente picco in un certo periodo.\n\n{0} a {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_nl.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_nl.properties index c27f89f1d7..7fcc8372e6 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_nl.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_nl.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = De gemiddelde bewaarperiode wordt als volgt bereke TooltipDateOfExchangeRate = Wisselkoers van {0} -TooltipHintPressAlt = Gebruik "Alt + rechtermuisklik" of "option + rechtermuisklik" om items op waarde te sorteren. +TooltipHintPressAlt = Gebruik "{0} + rechtermuisklik" om items op waarde te sorteren. TooltipMaxDrawdown = De maximale daling is het maximale piek-tot-dalverlies in een bepaalde periode.\n\n{0} tot {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pl.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pl.properties index d48b03f4be..87824b4a9e 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pl.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pl.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = \u015Aredni czas posiadania oblicza si\u0119 w nas TooltipDateOfExchangeRate = Kurs wymiany {0} -TooltipHintPressAlt = Naci\u015Bnij 'Alt' podczas otwierania podpowiedzi, aby posortowa\u0107 pola po warto\u015Bci +TooltipHintPressAlt = Naci\u015Bnij ''{0}'' podczas otwierania podpowiedzi, aby posortowa\u0107 pola po warto\u015Bci TooltipMaxDrawdown = Maksymalny Zjazd to maksymalna strata od szczytu do doliny w okre\u015Blonym okresie.\n\n{0} do {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt.properties index 8ff162546b..f7fd227fcd 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt.properties @@ -2603,7 +2603,7 @@ TooltipAverageHoldingPeriod = O per\u00EDodo m\u00E9dio de cust\u00F3dia \u00E9 TooltipDateOfExchangeRate = Taxa de c\u00E2mbio de {0} -TooltipHintPressAlt = Pressione 'Alt' ao abrir a dica de ferramenta para classificar as entradas por valor +TooltipHintPressAlt = Pressione ''{0}'' ao abrir a dica de ferramenta para classificar as entradas por valor TooltipMaxDrawdown = O Drawdown M\u00E1ximo \u00E9 o pico m\u00E1ximo de perda entre um vale em um pico em determinado per\u00EDodo.\n\n{0} a {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt_BR.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt_BR.properties index 7085836dc8..cc66386708 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt_BR.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_pt_BR.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = O per\u00EDodo m\u00E9dio de cust\u00F3dia \u00E9 TooltipDateOfExchangeRate = Taxa de c\u00E2mbio de {0} -TooltipHintPressAlt = Pressione 'Alt' ao abrir o pop-up para ordenar os itens por valor +TooltipHintPressAlt = Pressione ''{0}'' ao abrir o pop-up para ordenar os itens por valor TooltipMaxDrawdown = O Drawdown M\u00E1ximo \u00E9 o pico m\u00E1ximo de perda entre um vale em um pico em determinado per\u00EDodo.\n\n{0} a {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_ru.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_ru.properties index 2fe73af38d..5e7d6f7df0 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_ru.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_ru.properties @@ -2603,7 +2603,7 @@ TooltipAverageHoldingPeriod = \u0421\u0440\u0435\u0434\u043D\u0438\u0439 \u043F\ TooltipDateOfExchangeRate = \u041E\u0431\u043C\u0435\u043D\u043D\u044B\u0439 \u043A\u0443\u0440\u0441 {0} -TooltipHintPressAlt = \u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u0432\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0435\u0439 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u0438 \u043F\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044E +TooltipHintPressAlt = \u041D\u0430\u0436\u043C\u0438\u0442\u0435 ''{0}'' \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u0432\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0435\u0439 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u0438 \u043F\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044E TooltipMaxDrawdown = \u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u041F\u0440\u043E\u0441\u0430\u0434\u043A\u0430 - \u044D\u0442\u043E \u043C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043F\u0430\u0434\u0435\u043D\u0438\u0435 \u0437\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u0435\u0440\u0438\u043E\u0434.\n\n{0} \u0434\u043E {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_sk.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_sk.properties index aace724aa6..573c81dfb2 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_sk.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_sk.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = Priemern\u00E1 doba dr\u017Eby sa vypo\u010D\u00ED TooltipDateOfExchangeRate = V\u00FDmenn\u00FD kurz {0} -TooltipHintPressAlt = Stla\u010Den\u00EDm kl\u00E1vesu Alt pri otvoren\u00ED n\u00E1povedy zorad\u00EDte polo\u017Eky pod\u013Ea hodnoty +TooltipHintPressAlt = Stla\u010Den\u00EDm kl\u00E1vesu ''{0}'' pri otvoren\u00ED n\u00E1povedy zorad\u00EDte polo\u017Eky pod\u013Ea hodnoty TooltipMaxDrawdown = Maxim\u00E1lne \u010Derpanie je maxim\u00E1lna strata od vrcholu po dno v danom obdob\u00ED.\n\n{0} a\u017E {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh.properties index 1c974c1a9f..cacf032bdb 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = \u5E73\u5747\u6301\u6709\u671F\u6309\u4EE5\u4E0B\u TooltipDateOfExchangeRate = {0} \u7684\u6C47\u7387 -TooltipHintPressAlt = \u8BF7\u5728\u6253\u5F00\u63D0\u793A\u6846\u6309\u4F4F \u201CAlt\u201D \u4EE5\u6392\u5E8F\u6761\u76EE +TooltipHintPressAlt = \u8BF7\u5728\u6253\u5F00\u63D0\u793A\u6846\u6309\u4F4F \u201C{0}\u201D \u4EE5\u6392\u5E8F\u6761\u76EE TooltipMaxDrawdown = \u6700\u5927\u56DE\u64A4\u4E3A\u7ED9\u5B9A\u5468\u671F\u5185\u6700\u9AD8\u4E0E\u6700\u4F4E\u62A5\u4EF7\u4E4B\u5DEE\u3002\n\n {0} \u81F3 {1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh_TW.properties b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh_TW.properties index 2f0b97a878..13f7c92e4a 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh_TW.properties +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_zh_TW.properties @@ -2605,7 +2605,7 @@ TooltipAverageHoldingPeriod = \u5E73\u5747\u6301\u6709\u671F\u5982\u4E0B\u8A08\u TooltipDateOfExchangeRate = {0}\u7684\u532F\u7387 -TooltipHintPressAlt = \u6253\u958B\u63D0\u793A\u6642\u6309\u300CAlt\u300D\u6309\u503C\u6392\u5E8F\u8F38\u5165 +TooltipHintPressAlt = \u6253\u958B\u63D0\u793A\u6642\u6309\u300C{0}\u300D\u6309\u503C\u6392\u5E8F\u8F38\u5165 TooltipMaxDrawdown = \u6700\u5927\u56DE\u64A4\u662F\u5728\u7279\u5B9A\u671F\u9593\u5167\u7684\u9AD8\u9EDE\u5230\u4F4E\u9EDE\u7684\u6700\u5927\u640D\u5931\u3002\n{0}\u81F3{1} diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/chart/TimelineChartToolTip.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/chart/TimelineChartToolTip.java index be7bf67b82..0bdadbd222 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/chart/TimelineChartToolTip.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/chart/TimelineChartToolTip.java @@ -2,6 +2,7 @@ import java.text.DecimalFormat; import java.text.Format; +import java.text.MessageFormat; import java.time.LocalDate; import java.util.ArrayList; import java.util.Arrays; @@ -227,7 +228,10 @@ protected void createComposite(Composite parent) extraInfoProvider.forEach(provider -> provider.accept(container, focus)); Label hint = new Label(data, SWT.WRAP); - hint.setText(Messages.TooltipHintPressAlt); + String os = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$ + String pressAltOrOption = os.startsWith("mac") ? "Option" : "Alt"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + hint.setText(MessageFormat.format(Messages.TooltipHintPressAlt, pressAltOrOption)); + // first set a small width and then update later GridData hintData = GridDataFactory.fillDefaults().span(2, 1).hint(10, SWT.DEFAULT).span(2, 1).create(); hint.setLayoutData(hintData);