From 511a7468712ecd6bf31c6bbc4f0c456250055636 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Sun, 11 Oct 2020 20:50:41 +0800 Subject: [PATCH] Str-context-split: "To" and "From" ## Note from Russian translator "To/From" in the 'automatic dark mode setting' cannot be re-used for the one in the 'Tip Modal'. ## Change Wanted to split this into "general" and "time", but I'm guessing it won't satisfy all languages, so we'll just use the usage as the context since there's just 2 instances. --- static/app-strings.json | 6 ++++-- ui/component/walletSendTip/view.jsx | 4 ++-- ui/page/settings/view.jsx | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 7df7c46d2..07a592530 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -472,8 +472,10 @@ "LBRY names cannot contain spaces or reserved symbols": "LBRY names cannot contain spaces or reserved symbols", "Creating channel...": "Creating channel...", "Remember Password": "Remember Password", - "From": "From", - "To": "To", + "To --[the tip recipient]--": "To", + "To --[final time]--": "To", + "From --[the tip sender]--": "From", + "From --[initial time]--": "From", "Not enough Credits": "Not enough Credits", "You have %credit_amount% in unclaimed rewards.": "You have %credit_amount% in unclaimed rewards.", "In response to a complaint we received under the US Digital Millennium Copyright Act, we have blocked access to this channel from our applications.": "In response to a complaint we received under the US Digital Millennium Copyright Act, we have blocked access to this channel from our applications.", diff --git a/ui/component/walletSendTip/view.jsx b/ui/component/walletSendTip/view.jsx index b6a3806aa..6a176d555 100644 --- a/ui/component/walletSendTip/view.jsx +++ b/ui/component/walletSendTip/view.jsx @@ -191,9 +191,9 @@ function WalletSendTip(props: Props) { <>
-
{__('To')}
+
{__('To --[the tip recipient]--')}
{channelName || title}
-
{__('From')}
+
{__('From --[the tip sender]--')}
{selectedChannel}
{__(isSupport ? 'Supporting' : 'Tipping')}
diff --git a/ui/page/settings/view.jsx b/ui/page/settings/view.jsx index e36c588fc..149ac2b24 100644 --- a/ui/page/settings/view.jsx +++ b/ui/page/settings/view.jsx @@ -330,7 +330,7 @@ class SettingsPage extends React.PureComponent { name="automatic_dark_mode_range" onChange={value => this.onChangeTime(value, { fromTo: 'from', time: 'hour' })} value={darkModeTimes.from.hour} - label={__('From')} + label={__('From --[initial time]--')} > {startHours.map(time => (