restore localization for custom tabs
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
e70cfbbe63
commit
858d9dc6f0
@@ -127,9 +127,9 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
.safeAreaInset(edge: .top, spacing: 0) {
|
.safeAreaInset(edge: .top, spacing: 0) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
CustomPicker(tabs:
|
CustomPicker(tabs: [
|
||||||
[("Notes", FilterState.posts),
|
(NSLocalizedString("Notes", comment: "Label for filter for seeing only notes (instead of notes and replies)."), FilterState.posts),
|
||||||
("Notes & Replies", FilterState.posts_and_replies)
|
(NSLocalizedString("Notes & Replies", comment: "Label for filter for seeing notes and replies (instead of only notes)."), FilterState.posts_and_replies)
|
||||||
],
|
],
|
||||||
selection: $filter_state)
|
selection: $filter_state)
|
||||||
|
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ struct DirectMessagesView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
CustomPicker(tabs: [
|
CustomPicker(tabs: [
|
||||||
("DMs", DMType.friend),
|
(NSLocalizedString("DMs", comment: "Picker option for DM selector for seeing only DMs that have been responded to. DM is the English abbreviation for Direct Message."), DMType.friend),
|
||||||
("Requests", DMType.rando),
|
(NSLocalizedString("Requests", comment: "Picker option for DM selector for seeing only message requests (DMs that someone else sent the user which has not been responded to yet"), DMType.rando),
|
||||||
], selection: $dm_type)
|
], selection: $dm_type)
|
||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
|
|||||||
@@ -161,8 +161,8 @@ struct FollowingView: View {
|
|||||||
.safeAreaInset(edge: .top, spacing: 0) {
|
.safeAreaInset(edge: .top, spacing: 0) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
CustomPicker(tabs: [
|
CustomPicker(tabs: [
|
||||||
("People", FollowingViewTabSelection.people),
|
(NSLocalizedString("People", comment: "Label for filter for seeing only people follows."), FollowingViewTabSelection.people),
|
||||||
("Hashtags",FollowingViewTabSelection.hashtags)
|
(NSLocalizedString("Hashtags", comment: "Label for filter for seeing only hashtag follows."), FollowingViewTabSelection.hashtags)
|
||||||
], selection: $tab_selection)
|
], selection: $tab_selection)
|
||||||
Divider()
|
Divider()
|
||||||
.frame(height: 1)
|
.frame(height: 1)
|
||||||
|
|||||||
@@ -118,9 +118,9 @@ struct NotificationsView: View {
|
|||||||
.safeAreaInset(edge: .top, spacing: 0) {
|
.safeAreaInset(edge: .top, spacing: 0) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
CustomPicker(tabs: [
|
CustomPicker(tabs: [
|
||||||
("All", NotificationFilterState.all),
|
(NSLocalizedString("All", comment: "Label for filter for all notifications."), NotificationFilterState.all),
|
||||||
("Zaps", NotificationFilterState.zaps),
|
(NSLocalizedString("Zaps", comment: "Label for filter for zap notifications."), NotificationFilterState.zaps),
|
||||||
("Mentions", NotificationFilterState.replies),
|
(NSLocalizedString("Mentions", comment: "Label for filter for seeing mention notifications (replies, etc)."), NotificationFilterState.replies),
|
||||||
], selection: $filter_state)
|
], selection: $filter_state)
|
||||||
Divider()
|
Divider()
|
||||||
.frame(height: 1)
|
.frame(height: 1)
|
||||||
|
|||||||
@@ -435,8 +435,8 @@ struct ProfileView: View {
|
|||||||
|
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
CustomPicker(tabs: [
|
CustomPicker(tabs: [
|
||||||
("Notes", FilterState.posts),
|
(NSLocalizedString("Notes", comment: "Label for filter for seeing only notes (instead of notes and replies)."), FilterState.posts),
|
||||||
("Notes & Replies", FilterState.posts_and_replies)
|
(NSLocalizedString("Notes & Replies", comment: "Label for filter for seeing notes and replies (instead of only notes)."), FilterState.posts_and_replies)
|
||||||
], selection: $filter_state)
|
], selection: $filter_state)
|
||||||
Divider()
|
Divider()
|
||||||
.frame(height: 1)
|
.frame(height: 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user