Str-context-split: "Support"

Chinese, Spanish and other translators reported the difficulty in using "Support" as both a noun and verb in their language.
This commit is contained in:
infiinte-persistence 2020-10-09 14:09:13 +08:00 committed by Sean Yesmunt
parent 567316cfbe
commit 6dd40df93b
4 changed files with 6 additions and 4 deletions

View file

@ -247,6 +247,9 @@
"Channel": "Channel",
"Tip": "Tip",
"Support": "Support",
"Support --[button to support a claim]--": "Support",
"Support --[noun; transaction type]--": "Support",
"Support --[used in footer; general help/support]--": "Support",
"Update": "Update",
"Abandon": "Abandon",
"Unlock tip": "Unlock tip",

View file

@ -16,12 +16,11 @@ export default function ClaimSupportButton(props: Props) {
return (
<Button
button="alt"
button={fileAction ? undefined : 'alt'}
className={classnames({ 'button--file-action': fileAction })}
icon={ICONS.LBC}
iconSize={fileAction ? 22 : undefined}
label={__('Support')}
label={__('Support --[button to support a claim]--')}
requiresAuth={IS_WEB}
title={__('Support this claim')}
onClick={() => doOpenModal(MODALS.SEND_TIP, { uri, isSupport: true })}

View file

@ -126,7 +126,7 @@ class TxoListItem extends React.PureComponent<Props, State> {
<td className="table__item--actionable">
<span>
{(isTip && __('Tip')) ||
(type === 'support' && !isTip && __('Support')) ||
(type === 'support' && !isTip && __('Support --[noun; transaction type]--')) ||
(valueType && ((valueType === 'stream' && __('Upload')) || __(toCapitalCase(valueType)))) ||
(type && __(toCapitalCase(type)))}
</span>{' '}

View file

@ -37,7 +37,7 @@ const sections = [
link: 'https://lbry.com/faq',
},
{
label: 'Support',
label: 'Support --[used in footer; general help/support]--',
link: 'https://lbry.com/faq/support',
},
{