From c23d2a91f41399d9bb33722775172e77e8c8e5c5 Mon Sep 17 00:00:00 2001 From: TigerxWood Date: Tue, 26 May 2020 00:31:33 +0300 Subject: [PATCH] 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. --- ui/page/settings/view.jsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ui/page/settings/view.jsx b/ui/page/settings/view.jsx index bf53d883d..308d6d2fc 100644 --- a/ui/page/settings/view.jsx +++ b/ui/page/settings/view.jsx @@ -488,13 +488,11 @@ class SettingsPage extends React.PureComponent { actions={

- {__('%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})+' ' + } {