Thumbnail: Display the same label (recommended ratio) for both URL and UPLOAD.
- Fix i18n concat problem for some languages. - Display the same label (specifically, the recommended aspect ratio) for both URL and UPLOAD. I think the string "File to upload" can be omitted, but I left it as-is. - Remove old/unused strings.
This commit is contained in:
parent
7419fefa2d
commit
33f880758a
2 changed files with 15 additions and 7 deletions
|
@ -767,8 +767,6 @@
|
||||||
"You need more Credits to purchase this.": "You need more Credits to purchase this.",
|
"You need more Credits to purchase this.": "You need more Credits to purchase this.",
|
||||||
"Open Rewards": "Open Rewards",
|
"Open Rewards": "Open Rewards",
|
||||||
"Read our %referral_faq_link% to learn more about rewards.": "Read our %referral_faq_link% to learn more about rewards.",
|
"Read our %referral_faq_link% to learn more about rewards.": "Read our %referral_faq_link% to learn more about rewards.",
|
||||||
"Recommended ratio is 1:1": "Recommended ratio is 1:1",
|
|
||||||
"Recommended ratio is 6.25:1": "Recommended ratio is 6.25:1",
|
|
||||||
"Tags Selected": "Tags Selected",
|
"Tags Selected": "Tags Selected",
|
||||||
"After submitting, you will not see the changes immediately. Please check back in a few minutes.": "After submitting, you will not see the changes immediately. Please check back in a few minutes.",
|
"After submitting, you will not see the changes immediately. Please check back in a few minutes.": "After submitting, you will not see the changes immediately. Please check back in a few minutes.",
|
||||||
"You already have a claim with this name.": "You already have a claim with this name.",
|
"You already have a claim with this name.": "You already have a claim with this name.",
|
||||||
|
@ -1187,8 +1185,6 @@
|
||||||
"Cover source": "Cover source",
|
"Cover source": "Cover source",
|
||||||
"Your changes will be live in a few minutes": "Your changes will be live in a few minutes",
|
"Your changes will be live in a few minutes": "Your changes will be live in a few minutes",
|
||||||
"Submitting": "Submitting",
|
"Submitting": "Submitting",
|
||||||
"Thumbnail Recommended ratio is 1:1": "Thumbnail Recommended ratio is 1:1",
|
|
||||||
"Cover Recommended ratio is 6.25:1": "Cover Recommended ratio is 6.25:1",
|
|
||||||
"Old Password": "Old Password",
|
"Old Password": "Old Password",
|
||||||
"New Password": "New Password",
|
"New Password": "New Password",
|
||||||
"Set Password": "Set Password",
|
"Set Password": "Set Password",
|
||||||
|
@ -1225,7 +1221,8 @@
|
||||||
"Delete Channel": "Delete Channel",
|
"Delete Channel": "Delete Channel",
|
||||||
"Edit Thumbnail Image": "Edit Thumbnail Image",
|
"Edit Thumbnail Image": "Edit Thumbnail Image",
|
||||||
"Choose image": "Choose image",
|
"Choose image": "Choose image",
|
||||||
"File to upload": "File to upload",
|
"%image_type% %recommended_ratio%": "%image_type% %recommended_ratio%",
|
||||||
|
"%label% • File to upload": "%label% • File to upload",
|
||||||
"Select video file to upload": "Select video file to upload",
|
"Select video file to upload": "Select video file to upload",
|
||||||
"Uploading...": "Uploading...",
|
"Uploading...": "Uploading...",
|
||||||
"Use a URL": "Use a URL",
|
"Use a URL": "Use a URL",
|
||||||
|
|
|
@ -70,6 +70,17 @@ function SelectAsset(props: Props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note for translators: e.g. "Thumbnail (1:1)"
|
||||||
|
const label = __('%image_type% %recommended_ratio%', { image_type: assetName, recommended_ratio: recommended });
|
||||||
|
|
||||||
|
let fileSelectorLabel;
|
||||||
|
if (uploadStatus === SPEECH_UPLOADING) {
|
||||||
|
fileSelectorLabel = __('Uploading...');
|
||||||
|
} else {
|
||||||
|
// Include the same label/recommendation for both 'URL' and 'UPLOAD'.
|
||||||
|
fileSelectorLabel = __('%label% • File to upload', { label: label });
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
title={title || __('Choose image')}
|
title={title || __('Choose image')}
|
||||||
|
@ -81,7 +92,7 @@ function SelectAsset(props: Props) {
|
||||||
autoFocus
|
autoFocus
|
||||||
type={'text'}
|
type={'text'}
|
||||||
name={'thumbnail'}
|
name={'thumbnail'}
|
||||||
label={`${assetName} ${recommended}`}
|
label={label}
|
||||||
placeholder={'https://example.com/image.png'}
|
placeholder={'https://example.com/image.png'}
|
||||||
value={url}
|
value={url}
|
||||||
onChange={e => {
|
onChange={e => {
|
||||||
|
@ -93,7 +104,7 @@ function SelectAsset(props: Props) {
|
||||||
<FileSelector
|
<FileSelector
|
||||||
autoFocus
|
autoFocus
|
||||||
disabled={uploadStatus === SPEECH_UPLOADING}
|
disabled={uploadStatus === SPEECH_UPLOADING}
|
||||||
label={uploadStatus === SPEECH_UPLOADING ? __('Uploading...') : __('File to upload')}
|
label={fileSelectorLabel}
|
||||||
name="assetSelector"
|
name="assetSelector"
|
||||||
currentPath={pathSelected}
|
currentPath={pathSelected}
|
||||||
onFileChosen={file => {
|
onFileChosen={file => {
|
||||||
|
|
Loading…
Reference in a new issue