fix i18n in support modal

This commit is contained in:
Jeremy Kauffman 2020-01-03 14:56:04 -05:00 committed by Sean Yesmunt
parent cbdb9eaa49
commit 9a6f2a1975
3 changed files with 14 additions and 16 deletions

View file

@ -50,9 +50,6 @@
"Titular Title": "Titular Title", "Titular Title": "Titular Title",
"Description": "Description", "Description": "Description",
"Description of your content": "Description of your content", "Description of your content": "Description of your content",
"Thumbnail": "Thumbnail",
"Upload your thumbnail (.png/.jpg/.jpeg/.gif) to": "Upload your thumbnail (.png/.jpg/.jpeg/.gif) to",
"spee.ch": "spee.ch",
"Price": "Price", "Price": "Price",
"How much will this content cost?": "How much will this content cost?", "How much will this content cost?": "How much will this content cost?",
"Free": "Free", "Free": "Free",
@ -426,7 +423,6 @@
"yourstruly@example.com": "yourstruly@example.com", "yourstruly@example.com": "yourstruly@example.com",
"Thumbnail source": "Thumbnail source", "Thumbnail source": "Thumbnail source",
"Thumbnail (400x400)": "Thumbnail (400x400)", "Thumbnail (400x400)": "Thumbnail (400x400)",
"https://example.com/image.png": "https://example.com/image.png",
"Cover source": "Cover source", "Cover source": "Cover source",
"Cover (1000x300)": "Cover (1000x300)", "Cover (1000x300)": "Cover (1000x300)",
"Editing": "Editing", "Editing": "Editing",
@ -855,7 +851,6 @@
"Selected Tags": "Selected Tags", "Selected Tags": "Selected Tags",
"Add a tag...": "Add a tag...", "Add a tag...": "Add a tag...",
"Simple Editor": "Simple Editor", "Simple Editor": "Simple Editor",
"Recommended size is 16:9": "Recommended size is 16:9",
"Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.": "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.", "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.": "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.",
"Loading 3D model.": "Loading 3D model.", "Loading 3D model.": "Loading 3D model.",
"Click here": "Click here", "Click here": "Click here",
@ -915,4 +910,4 @@
"Did something go wrong? Have a look in your log file, or send it to %support_link%.": "Did something go wrong? Have a look in your log file, or send it to %support_link%.", "Did something go wrong? Have a look in your log file, or send it to %support_link%.": "Did something go wrong? Have a look in your log file, or send it to %support_link%.",
"%amount% LBC": "%amount% LBC", "%amount% LBC": "%amount% LBC",
"%amount% fee": "%amount% fee" "%amount% fee": "%amount% fee"
} }

View file

@ -109,7 +109,7 @@ function SelectAsset(props: Props) {
type={'text'} type={'text'}
name={'thumbnail'} name={'thumbnail'}
label={__(assetName + ' ' + recommended)} label={__(assetName + ' ' + recommended)}
placeholder={__('https://example.com/image.png')} placeholder={'https://example.com/image.png'}
disabled={false} disabled={false}
value={currentValue} value={currentValue}
onChange={e => { onChange={e => {

View file

@ -3,6 +3,7 @@ import React from 'react';
import { Modal } from 'modal/modal'; import { Modal } from 'modal/modal';
import SendTip from 'component/walletSendTip'; import SendTip from 'component/walletSendTip';
import UriIndicator from 'component/uriIndicator'; import UriIndicator from 'component/uriIndicator';
import I18nMessage from 'component/i18nMessage';
type Props = { type Props = {
closeModal: () => void, closeModal: () => void,
@ -21,15 +22,17 @@ class ModalSendTip extends React.PureComponent<Props> {
isOpen isOpen
type="custom" type="custom"
title={ title={
<React.Fragment> claimIsMine || isSupport ? (
{claimIsMine || isSupport ? ( __('Add support to this claim')
__('Add support to this claim') ) : (
) : ( <I18nMessage
<span> tokens={{
{__('Send a tip to')} <UriIndicator uri={uri} /> url: <UriIndicator uri={uri} />,
</span> }}
)} >
</React.Fragment> Send a tip to %url%
</I18nMessage>
)
} }
> >
<SendTip <SendTip