mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 20:25:31 +00:00
Updated translation keys
This commit is contained in:
Binary file not shown.
@@ -55,11 +55,11 @@ class RegattaCheckInTableViewController: CheckInTableViewController {
|
||||
|
||||
fileprivate func setupLocalization() {
|
||||
navigationItem.title = "REGATTAS TITLE"
|
||||
headerTitleLabel.text = Translation.HomeView.HeaderTitleLabel.Text.String
|
||||
headerTitleLabel.text = Translation.RegattaCheckInListView.HeaderTitleLabel.Text.String
|
||||
scanCodeButton.setTitle(Translation.ScanView.Title.String, for: .normal)
|
||||
noCodeButton.setTitle(Translation.HomeView.NoCodeAlert.Title.String, for: .normal)
|
||||
infoCodeLabel.text = Translation.HomeView.InfoCodeLabel.Text.String
|
||||
footerTextView.text = Translation.HomeView.FooterTextView.Text.String
|
||||
noCodeButton.setTitle(Translation.RegattaCheckInListView.NoCodeAlert.Title.String, for: .normal)
|
||||
infoCodeLabel.text = Translation.RegattaCheckInListView.InfoCodeLabel.Text.String
|
||||
footerTextView.text = Translation.RegattaCheckInListView.FooterTextView.Text.String
|
||||
}
|
||||
|
||||
// MARK: - Review
|
||||
@@ -85,15 +85,15 @@ class RegattaCheckInTableViewController: CheckInTableViewController {
|
||||
fileprivate func reviewTerms(completion: @escaping () -> Void) {
|
||||
guard Preferences.termsAccepted == false else { completion(); return }
|
||||
let alertController = UIAlertController(
|
||||
title: Translation.HomeView.TermsAlert.Title.String,
|
||||
message: Translation.HomeView.TermsAlert.Message.String,
|
||||
title: Translation.RegattaCheckInListView.TermsAlert.Title.String,
|
||||
message: Translation.RegattaCheckInListView.TermsAlert.Message.String,
|
||||
preferredStyle: .alert
|
||||
)
|
||||
let showTermsAction = UIAlertAction(title: Translation.HomeView.TermsAlert.ShowTermsAction.Title.String, style: .default) { [weak self] action in
|
||||
let showTermsAction = UIAlertAction(title: Translation.RegattaCheckInListView.TermsAlert.ShowTermsAction.Title.String, style: .default) { [weak self] action in
|
||||
UIApplication.shared.openURL(URLs.Terms)
|
||||
self?.reviewTerms(completion: completion) // Review terms until user accepted terms
|
||||
}
|
||||
let acceptTermsAction = UIAlertAction(title: Translation.HomeView.TermsAlert.AcceptTermsAction.Title.String, style: .default) { action in
|
||||
let acceptTermsAction = UIAlertAction(title: Translation.RegattaCheckInListView.TermsAlert.AcceptTermsAction.Title.String, style: .default) { action in
|
||||
Preferences.termsAccepted = true
|
||||
completion() // Terms accepted
|
||||
}
|
||||
@@ -228,7 +228,7 @@ class RegattaCheckInTableViewController: CheckInTableViewController {
|
||||
fileprivate func showNoCameraAlert() {
|
||||
let alertController = UIAlertController(
|
||||
title: Translation.Common.Error.String,
|
||||
message: Translation.HomeView.NoCameraAlert.Message.String,
|
||||
message: Translation.RegattaCheckInListView.NoCameraAlert.Message.String,
|
||||
preferredStyle: .alert
|
||||
)
|
||||
let okAction = UIAlertAction(title: Translation.Common.OK.String, style: .default, handler: nil)
|
||||
@@ -238,8 +238,8 @@ class RegattaCheckInTableViewController: CheckInTableViewController {
|
||||
|
||||
fileprivate func showNoCodeAlert() {
|
||||
let alertController = UIAlertController(
|
||||
title: Translation.HomeView.NoCodeAlert.Title.String,
|
||||
message: Translation.HomeView.NoCodeAlert.Message.String,
|
||||
title: Translation.RegattaCheckInListView.NoCodeAlert.Title.String,
|
||||
message: Translation.RegattaCheckInListView.NoCodeAlert.Message.String,
|
||||
preferredStyle: .alert
|
||||
)
|
||||
let okAction = UIAlertAction(title: Translation.Common.OK.String, style: .default, handler: nil)
|
||||
|
||||
@@ -172,25 +172,25 @@ class Translation: NSObject {
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - HomeView
|
||||
// MARK: - RegattaCheckInListView
|
||||
|
||||
struct HomeView { static let Key = "\(HomeView.self)"
|
||||
struct HeaderTitleLabel { static let Key = "\(HomeView.Key).\(HeaderTitleLabel.self)"
|
||||
struct RegattaCheckInListView { static let Key = "\(RegattaCheckInListView.self)"
|
||||
struct HeaderTitleLabel { static let Key = "\(RegattaCheckInListView.Key).\(HeaderTitleLabel.self)"
|
||||
struct Text { static let Key = "\(HeaderTitleLabel.Key).\(Text.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
}
|
||||
struct FooterTextView { static let Key = "\(HomeView.Key).\(FooterTextView.self)"
|
||||
struct FooterTextView { static let Key = "\(RegattaCheckInListView.Key).\(FooterTextView.self)"
|
||||
struct Text { static let Key = "\(FooterTextView.Key).\(Text.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
}
|
||||
struct InfoCodeLabel { static let Key = "\(HomeView.Key).\(InfoCodeLabel.self)"
|
||||
struct InfoCodeLabel { static let Key = "\(RegattaCheckInListView.Key).\(InfoCodeLabel.self)"
|
||||
struct Text { static let Key = "\(InfoCodeLabel.Key).\(Text.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
}
|
||||
struct TermsAlert { static let Key = "\(HomeView.Key).\(TermsAlert.self)"
|
||||
struct TermsAlert { static let Key = "\(RegattaCheckInListView.Key).\(TermsAlert.self)"
|
||||
struct Title { static let Key = "\(TermsAlert.Key).\(Title.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
@@ -208,12 +208,12 @@ class Translation: NSObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
struct NoCameraAlert { static let Key = "\(HomeView.Key).\(NoCameraAlert.self)"
|
||||
struct NoCameraAlert { static let Key = "\(RegattaCheckInListView.Key).\(NoCameraAlert.self)"
|
||||
struct Message { static let Key = "\(NoCameraAlert.Key).\(Message.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
}
|
||||
struct NoCodeAlert { static let Key = "\(HomeView.Key).\(NoCodeAlert.self)"
|
||||
struct NoCodeAlert { static let Key = "\(RegattaCheckInListView.Key).\(NoCodeAlert.self)"
|
||||
struct Title { static let Key = "\(NoCodeAlert.Key).\(Title.self)"
|
||||
static let String = NSLocalizedString(Key, comment: "")
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user