From 7a59976a5db37a41e3f33c9e63a4bc7048771613 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Sat, 26 Feb 2022 20:35:04 +0800 Subject: [PATCH] i18n: context-split "Duration" Request from Chinese translator. --- static/app-strings.json | 3 ++- ui/component/claimListHeader/view.jsx | 2 +- ui/component/formFieldDuration/view.jsx | 2 +- ui/modal/modalBlockChannel/view.jsx | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index d5d88983c..ff5f50c5b 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -736,7 +736,8 @@ "Video": "Video", "Video/Audio": "Video/Audio", "Document": "Document", - "Duration": "Duration", + "Duration --[length of audio or video]--": "Duration", + "Duration --[period e.g. ban duration]--": "Duration", "Long": "Long", "Short": "Short", "How Fresh": "How Fresh", diff --git a/ui/component/claimListHeader/view.jsx b/ui/component/claimListHeader/view.jsx index 3f1c9afd6..978423210 100644 --- a/ui/component/claimListHeader/view.jsx +++ b/ui/component/claimListHeader/view.jsx @@ -412,7 +412,7 @@ function ClaimListHeader(props: Props) { className={classnames('claim-search__dropdown', { 'claim-search__dropdown--selected': durationParam, })} - label={__('Duration')} + label={__('Duration --[length of audio or video]--')} type="select" name="duration" disabled={ diff --git a/ui/component/formFieldDuration/view.jsx b/ui/component/formFieldDuration/view.jsx index 5f06e4984..d3c88daa1 100644 --- a/ui/component/formFieldDuration/view.jsx +++ b/ui/component/formFieldDuration/view.jsx @@ -72,7 +72,7 @@ export default function FormFieldDuration(props: Props) { disabled={disabled} label={ <> - {label || __('Duration')} + {label || __('Duration --[period e.g. ban duration]--')} } diff --git a/ui/modal/modalBlockChannel/view.jsx b/ui/modal/modalBlockChannel/view.jsx index a9c7fb010..90817cf2a 100644 --- a/ui/modal/modalBlockChannel/view.jsx +++ b/ui/modal/modalBlockChannel/view.jsx @@ -236,7 +236,7 @@ export default function ModalBlockChannel(props: Props) { )}
- +
{getBlockTypeElem(BLOCK.PERMANENT, 'Permanent')}