chore: Add L10n for Followed Tags

This commit is contained in:
Marcus Kida 2022-11-25 14:16:58 +01:00
parent ba26dd2076
commit f112e68e79
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
6 changed files with 14 additions and 4 deletions

View File

@ -722,6 +722,10 @@
},
"bookmark": {
"title": "Bookmarks"
},
"followed_tags": {
"title": "Followed Tags"
}
}
}

View File

@ -42,7 +42,7 @@ extension FollowedTagsViewController {
override func viewDidLoad() {
super.viewDidLoad()
let _title = "Followed Tags"
let _title = L10n.Scene.FollowedTags.title
title = _title
titleView.update(title: _title, subtitle: nil)

View File

@ -108,7 +108,7 @@ final class ProfileViewController: UIViewController, NeedsDependency, MediaPrevi
private(set) lazy var followedTagsBarButtonItem: UIBarButtonItem = {
let barButtonItem = UIBarButtonItem(image: UIImage(systemName: "number"), style: .plain, target: self, action: #selector(ProfileViewController.followedTagsItemPressed(_:)))
barButtonItem.tintColor = .white
//barButtonItem.accessibilityLabel = "" TODO: add missing L10n.Common.Controls.Actions.XXXXXX
barButtonItem.accessibilityLabel = L10n.Scene.FollowedTags.title
return barButtonItem
}()

View File

@ -633,6 +633,10 @@ public enum L10n {
/// Favorited By
public static let title = L10n.tr("Localizable", "Scene.FavoritedBy.Title", fallback: "Favorited By")
}
public enum FollowedTags {
/// Followed Tags
public static let title = L10n.tr("Localizable", "Scene.FollowedTags.Title", fallback: "Followed Tags")
}
public enum Follower {
/// Followers from other servers are not displayed.
public static let footer = L10n.tr("Localizable", "Scene.Follower.Footer", fallback: "Followers from other servers are not displayed.")

View File

@ -231,6 +231,7 @@ uploaded to Mastodon.";
"Scene.FavoritedBy.Title" = "Favorited By";
"Scene.Follower.Footer" = "Followers from other servers are not displayed.";
"Scene.Follower.Title" = "follower";
"Scene.FollowedTags.Title" = "Followed Tags";
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
"Scene.Following.Title" = "following";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
@ -461,4 +462,4 @@ uploaded to Mastodon.";
back in your hands.";
"Scene.Wizard.AccessibilityHint" = "Double tap to dismiss this wizard";
"Scene.Wizard.MultipleAccountSwitchIntroDescription" = "Switch between multiple accounts by holding the profile button.";
"Scene.Wizard.NewInMastodon" = "New in Mastodon";
"Scene.Wizard.NewInMastodon" = "New in Mastodon";

View File

@ -231,6 +231,7 @@ uploaded to Mastodon.";
"Scene.FavoritedBy.Title" = "Favorited By";
"Scene.Follower.Footer" = "Followers from other servers are not displayed.";
"Scene.Follower.Title" = "follower";
"Scene.FollowedTags.Title" = "Followed Tags";
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
"Scene.Following.Title" = "following";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
@ -461,4 +462,4 @@ uploaded to Mastodon.";
back in your hands.";
"Scene.Wizard.AccessibilityHint" = "Double tap to dismiss this wizard";
"Scene.Wizard.MultipleAccountSwitchIntroDescription" = "Switch between multiple accounts by holding the profile button.";
"Scene.Wizard.NewInMastodon" = "New in Mastodon";
"Scene.Wizard.NewInMastodon" = "New in Mastodon";