Update localization

This commit is contained in:
Jed Fox 2022-11-08 13:37:11 -05:00
parent 0310508a53
commit b2d26078c1
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
5 changed files with 7 additions and 11 deletions

View File

@ -676,9 +676,9 @@
}
},
"account_list": {
"tab_bar_hint": "Current selected profile: %s. Double tap then hold to show account switcher",
"dismiss_account_switcher": "Dismiss Account Switcher",
"add_account": "Add Account"
"add_account": "Add Account",
"switch_accounts": "Switch Accounts"
},
"wizard": {
"new_in_mastodon": "New in Mastodon",

View File

@ -309,8 +309,7 @@ extension MainTabBarController {
}
if let profileTabItem {
profileTabItem.accessibilityCustomActions = [
// TODO: i18n (scene.account_list.switch_accounts)
UIAccessibilityCustomAction(name: "Switch Accounts") { [weak self] _ in
UIAccessibilityCustomAction(name: L10n.Scene.AccountList.switchAccounts) { [weak self] _ in
self?.showAccountSwitcher()
return true
}

View File

@ -136,8 +136,7 @@ extension SidebarViewModel {
case .me:
if self.authContext?.mastodonAuthenticationBox.authenticationRecord.object(in: self.context.managedObjectContext)?.user != nil {
cell.accessibilityCustomActions = [
// TODO: i18n (scene.account_list.switch_accounts)
UIAccessibilityCustomAction(name: "Switch Accounts") { [weak self] _ in
UIAccessibilityCustomAction(name: L10n.Scene.AccountList.switchAccounts) { [weak self] _ in
guard let self, let delegate = self.delegate else { return false }
delegate.sidebarViewModelDidSwitchAccounts(self)
return true

View File

@ -406,10 +406,8 @@ public enum L10n {
public static let addAccount = L10n.tr("Localizable", "Scene.AccountList.AddAccount")
/// Dismiss Account Switcher
public static let dismissAccountSwitcher = L10n.tr("Localizable", "Scene.AccountList.DismissAccountSwitcher")
/// Current selected profile: %@. Double tap then hold to show account switcher
public static func tabBarHint(_ p1: Any) -> String {
return L10n.tr("Localizable", "Scene.AccountList.TabBarHint", String(describing: p1))
}
/// Switch Accounts
public static let switchAccounts = L10n.tr("Localizable", "Scene.AccountList.SwitchAccounts")
}
public enum Bookmark {
/// Your Bookmarks

View File

@ -153,7 +153,7 @@ Your profile looks like this to them.";
"Common.Controls.Timeline.Timestamp.Now" = "Now";
"Scene.AccountList.AddAccount" = "Add Account";
"Scene.AccountList.DismissAccountSwitcher" = "Dismiss Account Switcher";
"Scene.AccountList.TabBarHint" = "Current selected profile: %@. Double tap then hold to show account switcher";
"Scene.AccountList.SwitchAccounts" = "Switch Accounts";
"Scene.Bookmark.Title" = "Your Bookmarks";
"Scene.Compose.Accessibility.AppendAttachment" = "Add Attachment";
"Scene.Compose.Accessibility.AppendPoll" = "Add Poll";