Add missing piece of localization (IOS-20)
This commit is contained in:
parent
2087c24cec
commit
143e9ad683
|
@ -732,7 +732,8 @@
|
|||
"rules": "Rules"
|
||||
"about_instance": {
|
||||
"title": "Adminstrator"
|
||||
"message_admin": "Message Admin"
|
||||
"message_admin": "Message Admin",
|
||||
"legal_notice": "A legal notice"
|
||||
}
|
||||
},
|
||||
"general": {
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue