damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 8ab1c6a89956586e7a90184b1bc6fd98ed3b129a
parent e8fae19b973486e491c36028c45dfe1ccf1126de
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 14 Jul 2024 21:56:15 -0700

restore localization for custom tabs

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/ContentView.swift | 6+++---
Mdamus/Views/DirectMessagesView.swift | 4++--
Mdamus/Views/FollowingView.swift | 4++--
Mdamus/Views/Notifications/NotificationsView.swift | 6+++---
Mdamus/Views/Profile/ProfileView.swift | 4++--
5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -127,9 +127,9 @@ struct ContentView: View { } .safeAreaInset(edge: .top, spacing: 0) { VStack(spacing: 0) { - CustomPicker(tabs: - [("Notes", FilterState.posts), - ("Notes & Replies", FilterState.posts_and_replies) + CustomPicker(tabs: [ + (NSLocalizedString("Notes", comment: "Label for filter for seeing only notes (instead of notes and replies)."), FilterState.posts), + (NSLocalizedString("Notes & Replies", comment: "Label for filter for seeing notes and replies (instead of only notes)."), FilterState.posts_and_replies) ], selection: $filter_state) diff --git a/damus/Views/DirectMessagesView.swift b/damus/Views/DirectMessagesView.swift @@ -73,8 +73,8 @@ struct DirectMessagesView: View { var body: some View { VStack(spacing: 0) { CustomPicker(tabs: [ - ("DMs", DMType.friend), - ("Requests", DMType.rando), + (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), + (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) Divider() diff --git a/damus/Views/FollowingView.swift b/damus/Views/FollowingView.swift @@ -161,8 +161,8 @@ struct FollowingView: View { .safeAreaInset(edge: .top, spacing: 0) { VStack(spacing: 0) { CustomPicker(tabs: [ - ("People", FollowingViewTabSelection.people), - ("Hashtags",FollowingViewTabSelection.hashtags) + (NSLocalizedString("People", comment: "Label for filter for seeing only people follows."), FollowingViewTabSelection.people), + (NSLocalizedString("Hashtags", comment: "Label for filter for seeing only hashtag follows."), FollowingViewTabSelection.hashtags) ], selection: $tab_selection) Divider() .frame(height: 1) diff --git a/damus/Views/Notifications/NotificationsView.swift b/damus/Views/Notifications/NotificationsView.swift @@ -118,9 +118,9 @@ struct NotificationsView: View { .safeAreaInset(edge: .top, spacing: 0) { VStack(spacing: 0) { CustomPicker(tabs: [ - ("All", NotificationFilterState.all), - ("Zaps", NotificationFilterState.zaps), - ("Mentions", NotificationFilterState.replies), + (NSLocalizedString("All", comment: "Label for filter for all notifications."), NotificationFilterState.all), + (NSLocalizedString("Zaps", comment: "Label for filter for zap notifications."), NotificationFilterState.zaps), + (NSLocalizedString("Mentions", comment: "Label for filter for seeing mention notifications (replies, etc)."), NotificationFilterState.replies), ], selection: $filter_state) Divider() .frame(height: 1) diff --git a/damus/Views/Profile/ProfileView.swift b/damus/Views/Profile/ProfileView.swift @@ -435,8 +435,8 @@ struct ProfileView: View { VStack(spacing: 0) { CustomPicker(tabs: [ - ("Notes", FilterState.posts), - ("Notes & Replies", FilterState.posts_and_replies) + (NSLocalizedString("Notes", comment: "Label for filter for seeing only notes (instead of notes and replies)."), FilterState.posts), + (NSLocalizedString("Notes & Replies", comment: "Label for filter for seeing notes and replies (instead of only notes)."), FilterState.posts_and_replies) ], selection: $filter_state) Divider() .frame(height: 1)