Change text displayed for blocked channels

With the current string there is a problem with the translation in other languages. For example in other languages current english text would be: "You have blocked channels 10" instead of "You have 10 channels blocked." Also, what happen when there si no blocked channel? So I think the simpler form is better in thi situation.
This commit is contained in:
TigerxWood 2020-04-12 00:26:01 +03:00 committed by Sean Yesmunt
parent 6a68558d4e
commit c54ea58532

View file

@ -473,9 +473,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
title={__('Blocked Channels')}
actions={
<p>
{__('You have')} {userBlockedChannelsCount} {__('blocked')}{' '}
{userBlockedChannelsCount === 1 && __('channel')}
{userBlockedChannelsCount !== 1 && __('channels')}.{' '}
{__('Blocked Channels')}: {userBlockedChannelsCount} {' '}
<Button button="link" label={__('Manage')} navigate={`/$/${PAGES.BLOCKED}`} />.
</p>
}