Add missing localization (#690)

This commit is contained in:
Nathan Mattes 2022-12-30 17:02:20 +01:00
parent ade95302ca
commit efafefac48
5 changed files with 10 additions and 2 deletions

View File

@ -306,6 +306,9 @@
"instant": "Instant Sign-up",
"manually_reviewed" = "Manual Review"
},
"language": {
"all": "All"
},
"search": {
"placeholder": "Search name or URL"
}

View File

@ -300,8 +300,7 @@ extension MastodonPickServerViewModel: PickServerCategoryCollectionViewCellDeleg
case .language(_):
guard allLanguages.value.isNotEmpty else { return }
//FIXME: @zeitschlag localize
let allLanguagesAction = UIAction(title: "All") { _ in
let allLanguagesAction = UIAction(title: L10n.Scene.ServerPicker.Language.all) { _ in
self.selectedLanguage.value = nil
cell.titleLabel.text = L10n.Scene.ServerPicker.Button.language
}

View File

@ -1276,6 +1276,10 @@ public enum L10n {
/// USERS
public static let users = L10n.tr("Localizable", "Scene.ServerPicker.Label.Users", fallback: "USERS")
}
public enum Language {
/// All
public static let all = L10n.tr("Localizable", "Scene.ServerPicker.Language.All", fallback: "All")
}
public enum Search {
/// Search name or URL
public static let placeholder = L10n.tr("Localizable", "Scene.ServerPicker.Search.Placeholder", fallback: "Search name or URL")

View File

@ -444,6 +444,7 @@ uploaded to Mastodon.";
"Scene.ServerPicker.SignupSpeed.All" = "All";
"Scene.ServerPicker.SignupSpeed.Instant" = "Instant Sign-up";
"Scene.ServerPicker.SignupSpeed.ManuallyReviewed" = "Manual Review";
"Scene.ServerPicker.Language.All" = "All";
"Scene.ServerPicker.Search.Placeholder" = "Search name or URL";
"Scene.ServerRules.Button.Confirm" = "I Agree";
"Scene.ServerRules.PrivacyPolicy" = "privacy policy";

View File

@ -437,6 +437,7 @@ uploaded to Mastodon.";
"Scene.ServerPicker.SignupSpeed.All" = "All";
"Scene.ServerPicker.SignupSpeed.Instant" = "Instant Sign-up";
"Scene.ServerPicker.SignupSpeed.ManuallyReviewed" = "Manual Review";
"Scene.ServerPicker.Language.All" = "All";
"Scene.ServerPicker.Search.Placeholder" = "Search name or URL";
"Scene.ServerRules.Button.Confirm" = "I Agree";
"Scene.ServerRules.PrivacyPolicy" = "privacy policy";