From ff035ed807b6df716e934d67d15f0d2a7b9f8194 Mon Sep 17 00:00:00 2001 From: TigerxWood Date: Tue, 19 May 2020 00:17:26 +0300 Subject: [PATCH] Changed how 'Blocked channels' are displayed on settings and a small typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problems solved (second attempt): A. Small typo for
(extra space in the word **t itle**) B. More details about problems with languages: 1. The word blocked has two forms in other languages (one for plural and one for singular) and therefore must be put together with channel and channels words. Currently it can be translated in only one form. 2. In the case there are no blocked channels there is no need to show the 0 value and is more elegant the message 'You do not have blocked channels' 3. The link to manage the channels should not be visible in the case that there is no channel blocked, because there is no channel that need to be managed. And about your statement: "Your change would make it harder for other languages to change this sentence." It's quite the opossite, it's very clear and easy. They just have to translate (with examples in Romanian): '%count% %channels%. ', (leave it as it is) 'You don't have' = 'Nu aveți' 'You have' = 'Aveți' 'blocked channel' = 'canal blocat' 'blocked channels' = 'canale blocat**e**' (see the change for plural forms for the word blocked, not only for channels word?) I hope this time I explained better the need for the changes. Thanks Messages displayed: Case with 0 blocked channels: You don't have blocked channels. (No Manage button displayed) Case with 1 blocked channel: You have 1 blocked channel. **Manage** (manage link) Case with 2 or more blocked channels: You have 2 blocked channels. **Manage** (manage link) --- ui/page/settings/view.jsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ui/page/settings/view.jsx b/ui/page/settings/view.jsx index 7f32be184..be55bea27 100644 --- a/ui/page/settings/view.jsx +++ b/ui/page/settings/view.jsx @@ -263,7 +263,7 @@ class SettingsPage extends React.PureComponent { {!IS_WEB && noDaemonSettings ? (
-
{__('Failed to load settings.')}
+
{__('Failed to load settings.')}
) : (
@@ -480,13 +480,15 @@ class SettingsPage extends React.PureComponent { - {__('You have %count% blocked %channels%.', { - count: userBlockedChannelsCount, - channels: userBlockedChannelsCount === 1 ? __('channel') : __('channels'), - })}{' '} -