Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBonus committed Oct 6, 2018
1 parent 0b067be commit 8d45708
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 25 deletions.
15 changes: 9 additions & 6 deletions Adamant/Assets/l18n/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
/* Account tab: 'Send tokens' button */
"AccountTab.Row.SendTokens" = "Tokens senden";

/* Account tab: 'Address' row */
"AccountTab.Row.Address" = "Addresse";

/* Account tab: 'Get free tokens' button */
"AccountTab.Row.FreeTokens" = "Kostenlose ADM Tokens";

Expand All @@ -133,14 +136,14 @@
/* Account tab: Application section title */
"AccountTab.Section.Application" = "Application";

/* Account tab: Adamant wallet section */
"AccountTab.Sections.adamant_wallet" = "ADAMANT Wallet";
/* Account tab: Adamant wallet */
"AccountTab.Wallets.adamant_wallet" = "Adamant Wallet";

/* Account tab: Ethereum wallet section */
"AccountTab.Sections.ethereum_wallet" = "Ethereum Wallet";
/* Account tab: Ethereum wallet */
"AccountTab.Wallets.ethereum_wallet" = "Ethereum Wallet";

/* Account tab: Lisk wallet section */
"AccountTab.Sections.lisk_wallet" = "Lisk Wallet";
/* Account tab: Lisk wallet */
"AccountTab.Wallets.lisk_wallet" = "Lisk Wallet";

/* Account page: scene title */
"AccountTab.Title" = "Konto";
Expand Down
15 changes: 9 additions & 6 deletions Adamant/Assets/l18n/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
/* Account tab: 'Send tokens' button */
"AccountTab.Row.SendTokens" = "Send Tokens";

/* Account tab: 'Address' row */
"AccountTab.Row.Address" = "Address";

/* Account tab: 'Get free tokens' button */
"AccountTab.Row.FreeTokens" = "Free ADM tokens";

Expand All @@ -130,14 +133,14 @@
/* Account tab: Application section title */
"AccountTab.Section.Application" = "Application";

/* Account tab: Adamant wallet section */
"AccountTab.Sections.adamant_wallet" = "ADAMANT Wallet";
/* Account tab: Adamant wallet */
"AccountTab.Wallets.adamant_wallet" = "Adamant Wallet";

/* Account tab: Ethereum wallet section */
"AccountTab.Sections.ethereum_wallet" = "Ethereum Wallet";
/* Account tab: Ethereum wallet */
"AccountTab.Wallets.ethereum_wallet" = "Ethereum Wallet";

/* Account tab: Lisk wallet section */
"AccountTab.Sections.lisk_wallet" = "Lisk Wallet";
/* Account tab: Lisk wallet */
"AccountTab.Wallets.lisk_wallet" = "Lisk Wallet";

/* Account page: scene title */
"AccountTab.Title" = "Account";
Expand Down
15 changes: 9 additions & 6 deletions Adamant/Assets/l18n/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
/* Account tab: 'Send tokens' button */
"AccountTab.Row.SendTokens" = "Отправить токены";

/* Account tab: 'Address' row */
"AccountTab.Row.Address" = "Адрес";

/* Account tab: 'Get free tokens' button */
"AccountTab.Row.FreeTokens" = "Бесплатные ADM-токены";

Expand All @@ -130,14 +133,14 @@
/* Account tab: Application section title */
"AccountTab.Section.Application" = "Приложение";

/* Account tab: Adamant wallet section */
"AccountTab.Sections.adamant_wallet" = "ADAMANT кошелёк";
/* Account tab: Adamant wallet */
"AccountTab.Wallets.adamant_wallet" = "Adamant кошелёк";

/* Account tab: Ethereum wallet section */
"AccountTab.Sections.ethereum_wallet" = "Ethereum кошелёк";
/* Account tab: Ethereum wallet */
"AccountTab.Wallets.ethereum_wallet" = "Ethereum кошелёк";

/* Account tab: Lisk wallet section */
"AccountTab.Sections.lisk_wallet" = "Lisk кошелёк";
/* Account tab: Lisk wallet */
"AccountTab.Wallets.lisk_wallet" = "Lisk кошелёк";

/* Account tab: Delegates section title */
"AccountTab.Section.Delegates" = "Делегаты";
Expand Down
2 changes: 1 addition & 1 deletion Adamant/Wallets/Adamant/AdmWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AdmWalletService: NSObject, WalletService {
// MARK: - Notifications
let walletUpdatedNotification = Notification.Name("adamant.admWallet.updated")
let serviceEnabledChanged = Notification.Name("adamant.admWallet.enabledChanged")
let transactionFeeUpdated: Notification.Name = Notification.Name("adamant.admWallet.feeUpdated")
let transactionFeeUpdated = Notification.Name("adamant.admWallet.feeUpdated")

// MARK: RichMessageProvider properties
static let richMessageType = "adm_transaction" // not used
Expand Down
6 changes: 5 additions & 1 deletion Adamant/Wallets/Adamant/AdmWalletViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@

import UIKit

extension String.adamantLocalized.wallets {
static let adamant = NSLocalizedString("AccountTab.Wallets.adamant_wallet", comment: "Account tab: Adamant wallet")
}

class AdmWalletViewController: WalletViewControllerBase {
// MARK: Lifecycle

override func viewDidLoad() {
super.viewDidLoad()

walletTitleLabel.text = "Adamant Wallet"
walletTitleLabel.text = String.adamantLocalized.wallets.adamant
}
}
2 changes: 1 addition & 1 deletion Adamant/Wallets/Ethereum/EthWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class EthWalletService: WalletService {
// MARK: - Notifications
let walletUpdatedNotification = Notification.Name("adamant.ethWallet.walletUpdated")
let serviceEnabledChanged = Notification.Name("adamant.ethWallet.enabledChanged")
let transactionFeeUpdated: Notification.Name = Notification.Name("adamant.ethWallet.feeUpdated")
let transactionFeeUpdated = Notification.Name("adamant.ethWallet.feeUpdated")


// MARK: RichMessageProvider properties
Expand Down
6 changes: 5 additions & 1 deletion Adamant/Wallets/Ethereum/EthWalletViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@

import UIKit

extension String.adamantLocalized.wallets {
static let ethereum = NSLocalizedString("AccountTab.Wallets.ethereum_wallet", comment: "Account tab: Ethereum wallet")
}

class EthWalletViewController: WalletViewControllerBase {
// MARK: Lifecycle

override func viewDidLoad() {
super.viewDidLoad()

walletTitleLabel.text = "Ethereum Wallet"
walletTitleLabel.text = String.adamantLocalized.wallets.ethereum
}
}
13 changes: 10 additions & 3 deletions Adamant/Wallets/WalletViewControllerBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
import UIKit
import Eureka

extension String.adamantLocalized {
struct wallets {

private init() {}
}
}

class WalletViewControllerBase: FormViewController, WalletViewController {
// MARK: - Rows
enum BaseRows {
Expand All @@ -24,9 +31,9 @@ class WalletViewControllerBase: FormViewController, WalletViewController {

var localized: String {
switch self {
case .address: return "Адрес"
case . balance: return "Баланс"
case .send: return "Отправить"
case .address: return NSLocalizedString("AccountTab.Row.Address", comment: "Account tab: 'Address' row")
case . balance: return NSLocalizedString("AccountTab.Row.Balance", comment: "Account tab: Balance row title")
case .send: return NSLocalizedString("AccountTab.Row.SendTokens", comment: "Account tab: 'Send tokens' button")
}
}
}
Expand Down

0 comments on commit 8d45708

Please sign in to comment.