From 80b4600f609cc99cb3b402632601ab3b1c2a104d Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Fri, 9 Oct 2020 15:13:28 +0800 Subject: [PATCH] Str-context-split: "Follow" ## Issue 4192 --- static/app-strings.json | 2 ++ ui/component/sideNavigation/view.jsx | 2 +- ui/component/subscribeButton/view.jsx | 4 +++- ui/component/tagsSearch/view.jsx | 2 +- ui/page/discover/view.jsx | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 85ea452ad..7df7c46d2 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -21,6 +21,8 @@ "Library": "Library", "Purchased": "Purchased", "Following": "Following", + "Following --[sidebar button]--": "Following", + "Following --[button label indicating a channel has been followed]--": "Following", "The tags you follow will change what's trending for you.": "The tags you follow will change what's trending for you.", "Tags": "Tags", "Send a tip": "Send a tip", diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index c33291bc3..d3364b98e 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -21,7 +21,7 @@ const HOME = { }; const RECENT_FROM_FOLLOWING = { - label: 'Following', + label: 'Following --[sidebar button]--', navigate: `/$/${PAGES.CHANNELS_FOLLOWING}`, icon: ICONS.SUBSCRIBE, }; diff --git a/ui/component/subscribeButton/view.jsx b/ui/component/subscribeButton/view.jsx index cd4f7c4ec..664e5da00 100644 --- a/ui/component/subscribeButton/view.jsx +++ b/ui/component/subscribeButton/view.jsx @@ -41,7 +41,9 @@ export default function SubscribeButton(props: Props) { const claimName = '@' + channelName; const subscriptionHandler = isSubscribed ? doChannelUnsubscribe : doChannelSubscribe; - const subscriptionLabel = isSubscribed ? __('Following') : __('Follow'); + const subscriptionLabel = isSubscribed + ? __('Following --[button label indicating a channel has been followed]--') + : __('Follow'); const unfollowOverride = isSubscribed && isHovering && __('Unfollow'); const label = isMobile && shrinkOnMobile ? '' : unfollowOverride || subscriptionLabel; diff --git a/ui/component/tagsSearch/view.jsx b/ui/component/tagsSearch/view.jsx index efbba0ce6..4a18c8559 100644 --- a/ui/component/tagsSearch/view.jsx +++ b/ui/component/tagsSearch/view.jsx @@ -148,7 +148,7 @@ export default function TagsSearch(props: Props) { %selectTagsLabel% (%number% left) ) : ( - label || __('Following') + label || __('Following --[button label indicating a channel has been followed]--') )}