Skip to content

Commit

Permalink
Code refactoring and delete translations
Browse files Browse the repository at this point in the history
  • Loading branch information
BtcContributor committed Mar 12, 2021
1 parent e494de1 commit e1b9afa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 0 additions & 2 deletions core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2647,8 +2647,6 @@ offerDetailsWindow.minBtcAmount=Min. BTC amount
offerDetailsWindow.min=(min. {0})
offerDetailsWindow.distance=(distance from market price: {0})
offerDetailsWindow.myTradingAccount=My trading account
offerDetailsWindow.offererBankId=(maker's bank ID/BIC/SWIFT)
offerDetailsWindow.offerersBankName=(maker's bank name)
offerDetailsWindow.bankId=Bank ID (e.g. BIC or SWIFT)
offerDetailsWindow.countryBank=Maker's country of bank
offerDetailsWindow.commitment=Commitment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,23 +253,7 @@ private void addContent() {
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("offerDetailsWindow.myTradingAccount"), myPaymentAccount.getAccountName());
} else {
final String method = Res.get(paymentMethod.getId());
String paymentMethodLabel = Res.get("shared.paymentMethod");
if (countryCode != null && (isNationalBanks || isSpecificBanks || isSepa)) {
if (BankUtil.isBankIdRequired(countryCode))
addConfirmationLabelLabel(gridPane, ++rowIndex,
paymentMethodLabel,
method);
else if (BankUtil.isBankNameRequired(countryCode))
addConfirmationLabelLabel(gridPane, ++rowIndex,
paymentMethodLabel,
method);
} else if (paymentMethod.equals(PaymentMethod.CASH_DEPOSIT)) {
addConfirmationLabelLabel(gridPane, ++rowIndex,
paymentMethodLabel,
method);
} else {
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.paymentMethod"), method);
}
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.paymentMethod"), method);
}

if (showXmrAutoConf) {
Expand Down

0 comments on commit e1b9afa

Please sign in to comment.