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.
This commit is contained in:
infiinte-persistence 2020-10-11 20:50:41 +08:00 committed by Sean Yesmunt
parent 80b4600f60
commit 511a746871
3 changed files with 8 additions and 6 deletions

View file

@ -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.",

View file

@ -191,9 +191,9 @@ function WalletSendTip(props: Props) {
<>
<div className="section section--padded card--inline confirm__wrapper">
<div className="section">
<div className="confirm__label">{__('To')}</div>
<div className="confirm__label">{__('To --[the tip recipient]--')}</div>
<div className="confirm__value">{channelName || title}</div>
<div className="confirm__label">{__('From')}</div>
<div className="confirm__label">{__('From --[the tip sender]--')}</div>
<div className="confirm__value">{selectedChannel}</div>
<div className="confirm__label">{__(isSupport ? 'Supporting' : 'Tipping')}</div>
<div className="confirm__value">

View file

@ -330,7 +330,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
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 => (
<option key={time} value={time}>
@ -341,7 +341,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
<FormField
type="select"
name="automatic_dark_mode_range"
label={__('To')}
label={__('To --[final time]--')}
onChange={value => this.onChangeTime(value, { fromTo: 'to', time: 'hour' })}
value={darkModeTimes.to.hour}
>