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:
TigerxWood 2020-05-26 00:31:33 +03:00 committed by Sean Yesmunt
parent 512131e527
commit c23d2a91f4

View file

@ -488,13 +488,11 @@ class SettingsPage extends React.PureComponent<Props, State> {
actions={ actions={
<p> <p>
<React.Fragment> <React.Fragment>
{__('%count% %channels%. ', { {
count: userBlockedChannelsCount === 0 ? __("You don't have blocked channels.")
userBlockedChannelsCount === 0 : userBlockedChannelsCount === 1 ? __('You have one blocked channel.') +' '
? __("You don't have") : __('You have %channels% blocked channels.', {channels: userBlockedChannelsCount})+' '
: __('You have') + ' ' + (userBlockedChannelsCount || 0) + ' ', }
channels: userBlockedChannelsCount === 1 ? __('blocked channel') : __('blocked channels'),
})}
{ {
<Button <Button
button="link" button="link"