Add localization (IOS-20)
This commit is contained in:
parent
622df06d4a
commit
0e0855982f
|
@ -726,6 +726,9 @@
|
||||||
"privacy_policy": "Privacy Policy",
|
"privacy_policy": "Privacy Policy",
|
||||||
"clear_media_storage": "Clear Media Storage"
|
"clear_media_storage": "Clear Media Storage"
|
||||||
},
|
},
|
||||||
|
"about_instance": {
|
||||||
|
"message_admin": "Message Admin"
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"title": "General",
|
"title": "General",
|
||||||
"appearance": {
|
"appearance": {
|
||||||
|
|
|
@ -726,6 +726,9 @@
|
||||||
"privacy_policy": "Privacy Policy",
|
"privacy_policy": "Privacy Policy",
|
||||||
"clear_media_storage": "Clear Media Storage"
|
"clear_media_storage": "Clear Media Storage"
|
||||||
},
|
},
|
||||||
|
"about_instance": {
|
||||||
|
"message_admin": "Message Admin"
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"title": "General",
|
"title": "General",
|
||||||
"appearance": {
|
"appearance": {
|
||||||
|
|
|
@ -23,7 +23,7 @@ enum AboutSettingsEntry: Hashable {
|
||||||
case .privacyPolicy:
|
case .privacyPolicy:
|
||||||
return L10n.Scene.Settings.AboutMastodon.privacyPolicy
|
return L10n.Scene.Settings.AboutMastodon.privacyPolicy
|
||||||
case .clearMediaCache(_):
|
case .clearMediaCache(_):
|
||||||
return L10n.Scene.Settings.AboutMastodon.cleaerMediaStorage
|
return L10n.Scene.Settings.AboutMastodon.clearMediaStorage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
import MastodonAsset
|
import MastodonAsset
|
||||||
|
import MastodonLocalization
|
||||||
|
|
||||||
class ContactAdminTableViewCell: UITableViewCell {
|
class ContactAdminTableViewCell: UITableViewCell {
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ class ContactAdminTableViewCell: UITableViewCell {
|
||||||
configuration.textProperties.color = Asset.Colors.Brand.blurple.color
|
configuration.textProperties.color = Asset.Colors.Brand.blurple.color
|
||||||
configuration.image = UIImage(systemName: "envelope")
|
configuration.image = UIImage(systemName: "envelope")
|
||||||
configuration.imageProperties.tintColor = Asset.Colors.Brand.blurple.color
|
configuration.imageProperties.tintColor = Asset.Colors.Brand.blurple.color
|
||||||
configuration.text = "Contact Admin"
|
configuration.text = L10n.Scene.Settings.AboutInstance.messageAdmin
|
||||||
|
|
||||||
contentConfiguration = configuration
|
contentConfiguration = configuration
|
||||||
}
|
}
|
||||||
|
|
|
@ -1416,9 +1416,13 @@ public enum L10n {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public enum Settings {
|
public enum Settings {
|
||||||
|
public enum AboutInstance {
|
||||||
|
/// Message Admin
|
||||||
|
public static let messageAdmin = L10n.tr("Localizable", "Scene.Settings.AboutInstance.MessageAdmin", fallback: "Message Admin")
|
||||||
|
}
|
||||||
public enum AboutMastodon {
|
public enum AboutMastodon {
|
||||||
/// Clear Media Storage
|
/// Clear Media Storage
|
||||||
public static let cleaerMediaStorage = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.CleaerMediaStorage", fallback: "Clear Media Storage")
|
public static let clearMediaStorage = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.ClearMediaStorage", fallback: "Clear Media Storage")
|
||||||
/// Contribute to Mastodon
|
/// Contribute to Mastodon
|
||||||
public static let contributeToMastodon = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.ContributeToMastodon", fallback: "Contribute to Mastodon")
|
public static let contributeToMastodon = L10n.tr("Localizable", "Scene.Settings.AboutMastodon.ContributeToMastodon", fallback: "Contribute to Mastodon")
|
||||||
/// Even More Settings
|
/// Even More Settings
|
||||||
|
|
|
@ -535,7 +535,9 @@ uploaded to Mastodon.";
|
||||||
"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";
|
||||||
"Scene.Settings.AboutMastodon.CleaerMediaStorage" = "Clear Media Storage";
|
"Scene.Settings.AboutMastodon.ClearMediaStorage" = "Clear Media Storage";
|
||||||
|
|
||||||
|
"Scene.Settings.AboutInstance.MessageAdmin" = "Message Admin";
|
||||||
|
|
||||||
"Scene.Settings.General.Title" = "General";
|
"Scene.Settings.General.Title" = "General";
|
||||||
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";
|
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";
|
||||||
|
|
|
@ -535,7 +535,9 @@ uploaded to Mastodon.";
|
||||||
"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";
|
||||||
"Scene.Settings.AboutMastodon.CleaerMediaStorage" = "Clear Media Storage";
|
"Scene.Settings.AboutMastodon.ClearMediaStorage" = "Clear Media Storage";
|
||||||
|
|
||||||
|
"Scene.Settings.AboutInstance.MessageAdmin" = "Message Admin";
|
||||||
|
|
||||||
"Scene.Settings.General.Title" = "General";
|
"Scene.Settings.General.Title" = "General";
|
||||||
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";
|
"Scene.Settings.General.Appearance.SectionTitle" = "Appearance";
|
||||||
|
|
Loading…
Reference in New Issue