Skip to content

Commit

Permalink
Improve translation key usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Apr 22, 2022
1 parent 539664d commit 5f41a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,6 @@ market.tabs.spreadPayment=Offers by Payment Method
market.tabs.trades=Trades

# OfferBookChartView
market.offerBook.buyAltcoin=Buy {0}
market.offerBook.sellAltcoin=Sell {0}
market.offerBook.buyWith=Buy {0}
market.offerBook.sellWith=Sell {0}
market.offerBook.sellOffersHeaderLabel=Sell {0} to
market.offerBook.buyOffersHeaderLabel=Buy {0} from
market.offerBook.buy=I want to buy bitcoin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ public Number fromString(String string) {
String viewPriceCurrencyCode = CurrencyUtil.isCryptoCurrency(code) ? Res.getBaseCurrencyCode() : code;

sellHeaderLabel.setText(Res.get("market.offerBook.sellOffersHeaderLabel", viewBaseCurrencyCode));
sellButton.updateText(Res.get("market.offerBook.sellWith", viewBaseCurrencyCode, viewPriceCurrencyCode));
sellButton.updateText(Res.get("shared.sellCurrency", viewBaseCurrencyCode, viewPriceCurrencyCode));

buyHeaderLabel.setText(Res.get("market.offerBook.buyOffersHeaderLabel", viewBaseCurrencyCode));
buyButton.updateText(Res.get("market.offerBook.buyWith", viewBaseCurrencyCode, viewPriceCurrencyCode));
buyButton.updateText(Res.get("shared.buyCurrency", viewBaseCurrencyCode, viewPriceCurrencyCode));

priceColumnLabel.set(Res.get("shared.priceWithCur", viewPriceCurrencyCode));

Expand Down

0 comments on commit 5f41a3f

Please sign in to comment.