Add missing piece of localization (IOS-20)

This commit is contained in:
Nathan Mattes 2023-10-10 14:00:32 +02:00
parent 2087c24cec
commit 143e9ad683
5 changed files with 8 additions and 2 deletions

View File

@ -732,7 +732,8 @@
"rules": "Rules"
"about_instance": {
"title": "Adminstrator"
"message_admin": "Message Admin"
"message_admin": "Message Admin",
"legal_notice": "A legal notice"
}
},
"general": {

View File

@ -6,6 +6,7 @@ import MastodonSDK
import MastodonMeta
import MastodonCore
import MastodonAsset
import MastodonLocalization
class AboutInstanceTableFooterView: UIView {
let headlineLabel: UILabel
@ -50,7 +51,7 @@ class AboutInstanceTableFooterView: UIView {
}
func update(with extendedDescription: Mastodon.Entity.ExtendedDescription) {
headlineLabel.text = "A legal notice"
headlineLabel.text = L10n.Scene.Settings.ServerDetails.AboutInstance.legalNotice
let content = extendedDescription.content
.replacingOccurrences(of: "<br>", with: "\n")

View File

@ -1600,6 +1600,8 @@ public enum L10n {
/// Rules
public static let rules = L10n.tr("Localizable", "Scene.Settings.ServerDetails.Rules", fallback: "Rules")
public enum AboutInstance {
/// A legal notice
public static let legalNotice = L10n.tr("Localizable", "Scene.Settings.ServerDetails.AboutInstance.LegalNotice", fallback: "A legal notice")
/// Message Admin
public static let messageAdmin = L10n.tr("Localizable", "Scene.Settings.ServerDetails.AboutInstance.MessageAdmin", fallback: "Message Admin")
/// Administrator

View File

@ -541,6 +541,7 @@ uploaded to Mastodon.";
"Scene.Settings.ServerDetails.Rules" = "Rules";
"Scene.Settings.ServerDetails.AboutInstance.Title" = "Administrator";
"Scene.Settings.ServerDetails.AboutInstance.MessageAdmin" = "Message Admin";
"Scene.Settings.ServerDetails.AboutInstance.LegalNotice" = "A legal notice";
"Scene.Settings.General.Title" = "General";
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";

View File

@ -541,6 +541,7 @@ uploaded to Mastodon.";
"Scene.Settings.ServerDetails.Rules" = "Rules";
"Scene.Settings.ServerDetails.AboutInstance.Title" = "Administrator";
"Scene.Settings.ServerDetails.AboutInstance.MessageAdmin" = "Message Admin";
"Scene.Settings.ServerDetails.AboutInstance.LegalNotice" = "A legal notice";
"Scene.Settings.General.Title" = "General";
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";