From 7d77f8b39309bf4ce63005d12d039039dbc01e81 Mon Sep 17 00:00:00 2001 From: Andreas Buchen Date: Sun, 7 Nov 2021 10:26:32 +0100 Subject: [PATCH] Fixed messages if not attributes are defined for widget --- .../src/name/abuchen/portfolio/ui/messages.properties | 2 +- .../src/name/abuchen/portfolio/ui/messages_de.properties | 2 +- .../src/name/abuchen/portfolio/ui/messages_es.properties | 4 ++-- .../src/name/abuchen/portfolio/ui/messages_fr.properties | 2 +- .../src/name/abuchen/portfolio/ui/messages_it.properties | 2 +- .../src/name/abuchen/portfolio/ui/messages_nl.properties | 2 +- .../src/name/abuchen/portfolio/ui/messages_pt.properties | 2 +- .../src/name/abuchen/portfolio/model/LimitPriceSettings.java | 1 + 8 files changed, 9 insertions(+), 8 deletions(-) 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 62f18bb70f..bf980939e2 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 @@ -1820,7 +1820,7 @@ MsgErrorTradeCollectionWithErrors = Error while collecting trades MsgErrorUpdating = Error on updating -MsgHintNoAttributesConfigured = No attributes of type ''{0}'' configured.\nConfigure now +MsgHintNoAttributesConfigured = No attributes of type ''{0}'' configured.\nConfigure now MsgIncorrectConvertedSubTotal = Converted sub-total is incorrect 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 30fbc90540..6c76afca70 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 @@ -1813,7 +1813,7 @@ MsgErrorTradeCollectionWithErrors = Fehler bei der Berechnung von Trades MsgErrorUpdating = Fehler beim Update -MsgHintNoAttributesConfigured = Keine Attribute vom Typ ''{0}'' konfiguriert.\nJetzt konfigurieren +MsgHintNoAttributesConfigured = Keine Attribute vom Typ ''{0}'' konfiguriert.\nJetzt konfigurieren MsgIncorrectConvertedSubTotal = Umgerechnete Zwischensumme ist fehlerhaft 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 89dcbb1ad8..fb09e783e2 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 @@ -1683,7 +1683,7 @@ MenuRenameLabel = Editar etiqueta... MenuReportingPeriodDelete = Eliminar -MenuReportingPeriodDeleteConfirm = ¿Realmente quieres eliminar el filtro ''{0}''? +MenuReportingPeriodDeleteConfirm = \u00BFRealmente quieres eliminar el filtro ''{0}''? MenuReportingPeriodInsert = A\u00F1adir elementos @@ -1807,7 +1807,7 @@ MsgErrorTradeCollectionWithErrors = Error en el cobro de las operaciones MsgErrorUpdating = Error en la actualizaci\u00F3n -MsgHintNoAttributesConfigured = No se han configurado atributos de tipo ''{0}''.\nConfigurar ahora +MsgHintNoAttributesConfigured = No se han configurado atributos de tipo ''{0}''.\nConfigurar ahora MsgIncorrectConvertedSubTotal = Sub-total convertido es incorrecto 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 68fa99e928..4cc1d0f371 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 @@ -1808,7 +1808,7 @@ MsgErrorTradeCollectionWithErrors = Erreur pendant la r\u00E9cup\u00E9ration des MsgErrorUpdating = Erreur pendant la mise \u00E0 jour -MsgHintNoAttributesConfigured = Aucun attribut de type ''{0}'' configur\u00E9.\nConfigurer maintenant +MsgHintNoAttributesConfigured = Aucun attribut de type ''{0}'' configur\u00E9.\nConfigurer maintenant MsgIncorrectConvertedSubTotal = Le sous-total converti est incorrect 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 d34d3a6f80..64fc4436ef 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 @@ -1813,7 +1813,7 @@ MsgErrorTradeCollectionWithErrors = Errore durante raccolta operazioni MsgErrorUpdating = Errore durante l'aggiornamento -MsgHintNoAttributesConfigured = Nessun attributo di tipo ''{0}'' configurato.\nConfigura ora +MsgHintNoAttributesConfigured = Nessun attributo di tipo ''{0}'' configurato.\nConfigura ora MsgIncorrectConvertedSubTotal = Il sub-totale convertito \u00E8 errato 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 8628f72c62..0c6f06e20b 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 @@ -1807,7 +1807,7 @@ MsgErrorTradeCollectionWithErrors = Fout bij ophalen orders MsgErrorUpdating = Fout bij bijwerken -MsgHintNoAttributesConfigured = Geen kenmerken van het type ''{0}'' geconfigureerd.\nNu configureren +MsgHintNoAttributesConfigured = Geen kenmerken van het type ''{0}'' geconfigureerd.\nNu configureren MsgIncorrectConvertedSubTotal = Geconverteerd subtotaal is incorrect 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 7423fbfab2..a6becb7546 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 @@ -1807,7 +1807,7 @@ MsgErrorTradeCollectionWithErrors = Erro ao coletar negocia\u00E7\u00F5es MsgErrorUpdating = Erro ao atualizar -MsgHintNoAttributesConfigured = Nenhum atributo do tipo ''{0}'' configurado.\nConfigure agora +MsgHintNoAttributesConfigured = Nenhum atributo do tipo ''{0}'' configurado.\nConfigure agora MsgIncorrectConvertedSubTotal = Subtotal convertido est\u00E1 incorreto diff --git a/name.abuchen.portfolio/src/name/abuchen/portfolio/model/LimitPriceSettings.java b/name.abuchen.portfolio/src/name/abuchen/portfolio/model/LimitPriceSettings.java index 89e8d03b4f..2f5e0334e3 100644 --- a/name.abuchen.portfolio/src/name/abuchen/portfolio/model/LimitPriceSettings.java +++ b/name.abuchen.portfolio/src/name/abuchen/portfolio/model/LimitPriceSettings.java @@ -51,6 +51,7 @@ public String getFullLabel(LimitPrice limit, SecurityPrice price) return limit.toString(); StringJoiner joiner = new StringJoiner(" / ", " (", ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + joiner.setEmptyValue(""); //$NON-NLS-1$ if (getShowAbsoluteDiff()) { double absDistance = (limit.getValue() - price.getValue()) / Values.Quote.divider();