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:
parent
6a68558d4e
commit
c54ea58532
1 changed files with 1 additions and 3 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue