Changed code for "Blocked channels" settings
Because in some languages, like Japanese, the text start with the number first (as it mentioned in https://github.com/lbryio/lbry-desktop/pull/4215#issuecomment-633264851) I rewrote the code to be more easy and clear for translators to translate the text.
This commit is contained in:
parent
512131e527
commit
c23d2a91f4
1 changed files with 5 additions and 7 deletions
|
@ -488,13 +488,11 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
actions={
|
||||
<p>
|
||||
<React.Fragment>
|
||||
{__('%count% %channels%. ', {
|
||||
count:
|
||||
userBlockedChannelsCount === 0
|
||||
? __("You don't have")
|
||||
: __('You have') + ' ' + (userBlockedChannelsCount || 0) + ' ',
|
||||
channels: userBlockedChannelsCount === 1 ? __('blocked channel') : __('blocked channels'),
|
||||
})}
|
||||
{
|
||||
userBlockedChannelsCount === 0 ? __("You don't have blocked channels.")
|
||||
: userBlockedChannelsCount === 1 ? __('You have one blocked channel.') +' '
|
||||
: __('You have %channels% blocked channels.', {channels: userBlockedChannelsCount})+' '
|
||||
}
|
||||
{
|
||||
<Button
|
||||
button="link"
|
||||
|
|
Loading…
Reference in a new issue