Skip to content

Commit

Permalink
Merge branch 'release/0.3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBonus committed Apr 5, 2018
2 parents 05d7cf1 + c564d75 commit 91dc633
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Adamant/Assets/l18n/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
/* Account tab: Confirm logout alert */
"AccountTab.ConfirmLogout.MessageFormat" = "Logout from %@?";

/* Account tab: A full 'Join ICO' link, with %@ as address */
"AccountTab.JoinIcoUrlFormat" = "https://adamant.im/ico?wallet=%@";

/* Account tab: Balance row title */
"AccountTab.Row.Balance" = "Balance";

Expand Down
Binary file modified Adamant/Assets/l18n/ru.lproj/Localizable.strings
Binary file not shown.
2 changes: 1 addition & 1 deletion Adamant/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>0.3.7</string>
<key>CFBundleVersion</key>
<string>24</string>
<string>25</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
Expand Down
4 changes: 3 additions & 1 deletion Adamant/Stories/Account/AccountViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ extension String.adamantLocalized {
static let webApp = NSLocalizedString("AccountTab.TransferBlocked.GoToPWA", comment: "Account tab: 'Transfer not allowed' alert 'go to WebApp button'")
static let transferNotAllowed = NSLocalizedString("AccountTab.TransferBlocked.Message", comment: "Account tab: Inform user that sending tokens not allowed by Apple until the end of ICO")

static let joinIcoUrlFormat = NSLocalizedString("AccountTab.JoinIcoUrlFormat", comment: "Account tab: A full 'Join ICO' link, with %@ as address")

private init() { }
}
}
Expand Down Expand Up @@ -241,7 +243,7 @@ class AccountViewController: FormViewController {
})
.onCellSelection({ [weak self] (_, _) in
guard let address = self?.accountService.account?.address,
let url = URL(string: "https://adamant.im/ico/?wallet=\(address)") else {
let url = URL(string: String.localizedStringWithFormat(String.adamantLocalized.account.joinIcoUrlFormat, address)) else {
return
}

Expand Down

0 comments on commit 91dc633

Please sign in to comment.