Update localization
This commit is contained in:
parent
0310508a53
commit
b2d26078c1
|
@ -676,9 +676,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"account_list": {
|
"account_list": {
|
||||||
"tab_bar_hint": "Current selected profile: %s. Double tap then hold to show account switcher",
|
|
||||||
"dismiss_account_switcher": "Dismiss Account Switcher",
|
"dismiss_account_switcher": "Dismiss Account Switcher",
|
||||||
"add_account": "Add Account"
|
"add_account": "Add Account",
|
||||||
|
"switch_accounts": "Switch Accounts"
|
||||||
},
|
},
|
||||||
"wizard": {
|
"wizard": {
|
||||||
"new_in_mastodon": "New in Mastodon",
|
"new_in_mastodon": "New in Mastodon",
|
||||||
|
|
|
@ -309,8 +309,7 @@ extension MainTabBarController {
|
||||||
}
|
}
|
||||||
if let profileTabItem {
|
if let profileTabItem {
|
||||||
profileTabItem.accessibilityCustomActions = [
|
profileTabItem.accessibilityCustomActions = [
|
||||||
// TODO: i18n (scene.account_list.switch_accounts)
|
UIAccessibilityCustomAction(name: L10n.Scene.AccountList.switchAccounts) { [weak self] _ in
|
||||||
UIAccessibilityCustomAction(name: "Switch Accounts") { [weak self] _ in
|
|
||||||
self?.showAccountSwitcher()
|
self?.showAccountSwitcher()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,8 +136,7 @@ extension SidebarViewModel {
|
||||||
case .me:
|
case .me:
|
||||||
if self.authContext?.mastodonAuthenticationBox.authenticationRecord.object(in: self.context.managedObjectContext)?.user != nil {
|
if self.authContext?.mastodonAuthenticationBox.authenticationRecord.object(in: self.context.managedObjectContext)?.user != nil {
|
||||||
cell.accessibilityCustomActions = [
|
cell.accessibilityCustomActions = [
|
||||||
// TODO: i18n (scene.account_list.switch_accounts)
|
UIAccessibilityCustomAction(name: L10n.Scene.AccountList.switchAccounts) { [weak self] _ in
|
||||||
UIAccessibilityCustomAction(name: "Switch Accounts") { [weak self] _ in
|
|
||||||
guard let self, let delegate = self.delegate else { return false }
|
guard let self, let delegate = self.delegate else { return false }
|
||||||
delegate.sidebarViewModelDidSwitchAccounts(self)
|
delegate.sidebarViewModelDidSwitchAccounts(self)
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -406,10 +406,8 @@ public enum L10n {
|
||||||
public static let addAccount = L10n.tr("Localizable", "Scene.AccountList.AddAccount")
|
public static let addAccount = L10n.tr("Localizable", "Scene.AccountList.AddAccount")
|
||||||
/// Dismiss Account Switcher
|
/// Dismiss Account Switcher
|
||||||
public static let dismissAccountSwitcher = L10n.tr("Localizable", "Scene.AccountList.DismissAccountSwitcher")
|
public static let dismissAccountSwitcher = L10n.tr("Localizable", "Scene.AccountList.DismissAccountSwitcher")
|
||||||
/// Current selected profile: %@. Double tap then hold to show account switcher
|
/// Switch Accounts
|
||||||
public static func tabBarHint(_ p1: Any) -> String {
|
public static let switchAccounts = L10n.tr("Localizable", "Scene.AccountList.SwitchAccounts")
|
||||||
return L10n.tr("Localizable", "Scene.AccountList.TabBarHint", String(describing: p1))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public enum Bookmark {
|
public enum Bookmark {
|
||||||
/// Your Bookmarks
|
/// Your Bookmarks
|
||||||
|
|
|
@ -153,7 +153,7 @@ Your profile looks like this to them.";
|
||||||
"Common.Controls.Timeline.Timestamp.Now" = "Now";
|
"Common.Controls.Timeline.Timestamp.Now" = "Now";
|
||||||
"Scene.AccountList.AddAccount" = "Add Account";
|
"Scene.AccountList.AddAccount" = "Add Account";
|
||||||
"Scene.AccountList.DismissAccountSwitcher" = "Dismiss Account Switcher";
|
"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.Bookmark.Title" = "Your Bookmarks";
|
||||||
"Scene.Compose.Accessibility.AppendAttachment" = "Add Attachment";
|
"Scene.Compose.Accessibility.AppendAttachment" = "Add Attachment";
|
||||||
"Scene.Compose.Accessibility.AppendPoll" = "Add Poll";
|
"Scene.Compose.Accessibility.AppendPoll" = "Add Poll";
|
||||||
|
|
Loading…
Reference in New Issue