Set title for about-screen (IOS-14)

This commit is contained in:
Nathan Mattes 2023-06-28 09:05:21 +02:00
parent 3e2531e8fb
commit 4107370957
4 changed files with 6 additions and 4 deletions

View File

@ -719,7 +719,7 @@
} }
"about_mastodon": { "about_mastodon": {
"title": "About Mastodon", "title": "About",
"more_settings": "Even More Settings", "more_settings": "Even More Settings",
"contribute_to_mastodon": "Contribute to Mastodon", "contribute_to_mastodon": "Contribute to Mastodon",
"privacy_policy": "Privacy Policy", "privacy_policy": "Privacy Policy",

View File

@ -2,6 +2,7 @@
import UIKit import UIKit
import MastodonCore import MastodonCore
import MastodonLocalization
protocol AboutViewControllerDelegate: AnyObject { protocol AboutViewControllerDelegate: AnyObject {
func didSelect(_ viewController: AboutViewController, entry: AboutSettingsEntry) func didSelect(_ viewController: AboutViewController, entry: AboutSettingsEntry)
@ -39,6 +40,7 @@ class AboutViewController: UIViewController {
view.addSubview(tableView) view.addSubview(tableView)
view.backgroundColor = .systemGroupedBackground view.backgroundColor = .systemGroupedBackground
title = L10n.Scene.Settings.AboutMastodon.title
tableView.pinToParent() tableView.pinToParent()
} }

View File

@ -1425,8 +1425,8 @@ public enum L10n {
public static let moreSettings = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.MoreSettings", fallback: "Even More Settings") public static let moreSettings = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.MoreSettings", fallback: "Even More Settings")
/// Privacy Policy /// Privacy Policy
public static let privacyPolicy = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.PrivacyPolicy", fallback: "Privacy Policy") public static let privacyPolicy = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.PrivacyPolicy", fallback: "Privacy Policy")
/// About Mastodon /// About
public static let title = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.Title", fallback: "About Mastodon") public static let title = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.Title", fallback: "About")
} }
public enum Footer { public enum Footer {
/// Mastodon is open source software. You can report issues on GitHub at %@ (%@) /// Mastodon is open source software. You can report issues on GitHub at %@ (%@)

View File

@ -537,7 +537,7 @@ uploaded to Mastodon.";
"Scene.Settings.Overview.AboutMastodon" = "About Mastodon"; "Scene.Settings.Overview.AboutMastodon" = "About Mastodon";
"Scene.Settings.Overview.Logout" = "Logout %@"; "Scene.Settings.Overview.Logout" = "Logout %@";
"Scene.Settings.AboutMastodon.Title" = "About Mastodon"; "Scene.Settings.AboutMastodon.Title" = "About";
"Scene.Settings.AboutMastodon.MoreSettings" = "Even More Settings"; "Scene.Settings.AboutMastodon.MoreSettings" = "Even More Settings";
"Scene.Settings.AboutMastodon.ContributeToMastodon" = "Contribute to Mastodon"; "Scene.Settings.AboutMastodon.ContributeToMastodon" = "Contribute to Mastodon";
"Scene.Settings.AboutMastodon.PrivacyPolicy" = "Privacy Policy"; "Scene.Settings.AboutMastodon.PrivacyPolicy" = "Privacy Policy";