Commit a063d9e7 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

general: localize version name

Change-Id: I1bad91b3ecab254a5f516b34b16021b625f69183
parent 1035c3b5
// swiftlint:disable all
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
// Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen
#if os(OSX)
import AppKit.NSImage
......
// swiftlint:disable all
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
// Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen
import Foundation
......@@ -356,6 +356,8 @@ internal enum L10n {
internal static let meTabBarTitle = L10n.tr("Localizable", "global.meTabBarTitle")
/// Ok
internal static let ok = L10n.tr("Localizable", "global.ok")
/// Free as in Freedom
internal static let versionName = L10n.tr("Localizable", "global.versionName")
}
internal enum Invitations {
......@@ -462,7 +464,6 @@ internal enum L10n {
extension L10n {
fileprivate static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
// swiftlint:disable:next nslocalizedstring_key
let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "")
return String(format: format, locale: Locale.current, arguments: args)
}
......
......@@ -216,7 +216,8 @@ class MeViewController: EditProfileViewController, StoryboardBased, ViewModelBas
}
return dateDefault
}
let alert = UIAlertController(title: "\nJami\nbuild: \(compileDate)\n\"Free as in Freedom\"", message: "", preferredStyle: .alert)
let versionName = L10n.Global.versionName
let alert = UIAlertController(title: "\nJami\nbuild: \(compileDate)\n\(versionName)", message: "", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: L10n.Global.ok, style: .default, handler: nil))
let image = UIImageView(image: UIImage(asset: Asset.jamiIcon))
alert.view.addSubview(image)
......
......@@ -23,6 +23,7 @@
"global.contactRequestsTabBarTitle" = "Invitations";
"global.meTabBarTitle" = "Account";
"global.ok" = "Ok";
"global.versionName" = "Free as in Freedom";
// Scan
"scan.badQrCode" = "Bad QR code";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment