Fix strings that were not localizable

pull/83/head
Hwee-Boon Yar 7 years ago
parent e656df91df
commit d851cdf9b5
  1. 3
      Trust/Localization/en.lproj/Localizable.strings
  2. 2
      Trust/Tokens/ViewModels/TicketTokenViewCellViewModel.swift
  3. 2
      Trust/Tokens/ViewModels/TicketsViewControllerHeaderViewModel.swift
  4. 2
      Trust/Transactions/Views/TransactionsFooterView.swift
  5. 2
      Trust/Welcome/ViewModels/WelcomeViewModel.swift

@ -188,7 +188,7 @@
"a.wallet.contents.filter.currencyOnly.title" = "CURRENCY";
"a.wallet.contents.filter.assetsOnly.title" = "ASSETS";
"a.wallet.contents.issuer.title" = "Issuer";
"a.wallet.tickets" = "Tickets";
"a.wallet.tickets" = "%@ Tickets";
"a.help.navigation.title" = "Help & FAQs";
"a.help.contact.footer.button.title" = "Still need help? Contact Us";
"a.help.contents.whatIsETH" = "What is ETH/Ethereum?";
@ -204,6 +204,7 @@
"a.settings.contents.myWalletAddress" = "My Wallet Address";
"a.settings.contents.notificationsSettings" = "Notifications Settings";
"a.settings.contents.logout" = "Log Out";
"a.welcome.navigation.title" = "Welcome";
"a.welcome.onboarding.1" = "Hold all your Crypto assets in one place";
"a.welcome.onboarding.2" = "Powered by blockchain technology, smart tickets, fraud free";
"a.welcome.onboarding.3" = "Buy, sell and transfer your favourite tokens";

@ -23,7 +23,7 @@ struct TicketTokenViewCellViewModel {
var amount: String {
let actualBalance = self.token.balance.filter { $0.balance != 0 }
return actualBalance.count.toString() + " Tickets"
return R.string.localizable.aWalletTickets(actualBalance.count.toString())
}
var issuer: String {

@ -10,7 +10,7 @@ struct TicketsViewControllerHeaderViewModel {
}
var title: String {
return "\(totalValidTicketNumber) \(R.string.localizable.aWalletTickets()) \(tokenObject.title)"
return "\(R.string.localizable.aWalletTickets(totalValidTicketNumber)) \(tokenObject.title)"
}
var issuer: String {

@ -20,7 +20,7 @@ class TransactionsFooterView: UIView {
requestButton.translatesAutoresizingMaskIntoConstraints = false
requestButton.layer.cornerRadius = 6
requestButton.titleLabel?.font = Fonts.semibold(size: Fonts.buttonSize)
requestButton.setTitle(NSLocalizedString("transactions.receive.button.title", value: "Receive", comment: ""), for: .normal)
requestButton.setTitle(R.string.localizable.transactionsReceiveButtonTitle(), for: .normal)
return requestButton
}()

@ -7,7 +7,7 @@ import UIKit
struct WelcomeViewModel {
var title: String {
return "Welcome"
return R.string.localizable.aWelcomeNavigationTitle()
}
var backgroundColor: UIColor {

Loading…
Cancel
Save