From df49d5cdbdb7924c75925c063e40203792992186 Mon Sep 17 00:00:00 2001 From: Pac Date: Thu, 2 Jan 2020 17:29:58 -0300 Subject: [PATCH] Fix bank account number label for Swedish language According to issue #3641, the label "Bankgiro number", as it was hardcoded in BankUtil.java, should not be used in Sweden. The label "Kontonummer" is the correct one to be used in Sweden and Norway. Account number validation is implemented to Norwegian accounts in AccountNrValidator.java. There is no validation implemented to Swedish accounts, so nothing to change there. If account validation for Sweden is needed, a different method would be needed. Fixes #3641 --- core/src/main/java/bisq/core/locale/BankUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/bisq/core/locale/BankUtil.java b/core/src/main/java/bisq/core/locale/BankUtil.java index a1bb2615b23..eb401b7328a 100644 --- a/core/src/main/java/bisq/core/locale/BankUtil.java +++ b/core/src/main/java/bisq/core/locale/BankUtil.java @@ -157,9 +157,9 @@ public static String getAccountNrLabel(String countryCode) { case "HK": return Res.get("payment.accountNr"); case "NO": - return "Kontonummer"; // do not translate as it is used in Norwegian only + return "Kontonummer"; // do not translate as it is used in Norwegian and Swedish only case "SE": - return "Bankgiro number"; // do not translate as it is used in Swedish only + return "Kontonummer"; // do not translate as it is used in Norwegian and Swedish only case "MX": return "CLABE"; // do not translate as it is used in Spanish only case "CL":