mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Update all preview... l10n strings to project...
This commit is contained in:
parent
f4887008a5
commit
4d8256e985
7 changed files with 38 additions and 38 deletions
|
@ -5,25 +5,25 @@ const EXTENSION_INFO = {
|
|||
hasStatus: true
|
||||
},
|
||||
music: {
|
||||
l10nId: 'preview.musicExtensionChip',
|
||||
l10nId: 'project.musicExtensionChip',
|
||||
icon: 'extension-music.svg'
|
||||
},
|
||||
pen: {
|
||||
l10nId: 'preview.penExtensionChip',
|
||||
l10nId: 'project.penExtensionChip',
|
||||
icon: 'extension-pen.svg'
|
||||
},
|
||||
speak: {
|
||||
name: 'Amazon Polly'
|
||||
},
|
||||
speech: {
|
||||
l10nId: 'preview.speechExtensionChip'
|
||||
l10nId: 'project.speechExtensionChip'
|
||||
},
|
||||
translate: {
|
||||
l10nId: 'preview.translateExtensionChip',
|
||||
l10nId: 'project.translateExtensionChip',
|
||||
icon: 'extension-translate.svg'
|
||||
},
|
||||
videoSensing: {
|
||||
l10nId: 'preview.videoMotionChip',
|
||||
l10nId: 'project.videoMotionChip',
|
||||
icon: 'extension-videomotion.svg'
|
||||
},
|
||||
wedo2: {
|
||||
|
|
|
@ -19,7 +19,7 @@ const ExtensionChip = props => (
|
|||
}
|
||||
{props.hasStatus && (
|
||||
<div className="extension-status">
|
||||
<FormattedMessage id="preview.needsConnection" />
|
||||
<FormattedMessage id="project.needsConnection" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -2,23 +2,23 @@
|
|||
"addToStudio.title": "Add to Studio",
|
||||
"addToStudio.finishing": "Finishing up...",
|
||||
"addToStudio.inviteUser": "Invite user to add to studio",
|
||||
"preview.titleMaxLength": "Title is too long",
|
||||
"preview.musicExtensionChip": "Music",
|
||||
"preview.penExtensionChip": "Pen",
|
||||
"preview.speechExtensionChip": "Google Speech",
|
||||
"preview.translateExtensionChip": "Google Translate",
|
||||
"preview.videoMotionChip": "Video Motion",
|
||||
"preview.needsConnection": "Needs Connection",
|
||||
"preview.comments.header": "Comments",
|
||||
"preview.comments.turnOff": "Turn off commenting",
|
||||
"preview.comments.turnedOff": "Sorry, comment posting has been turned off for this project.",
|
||||
"preview.share.notShared": "This project is not shared — so only you can see it. Click share to let everyone see it!",
|
||||
"preview.share.shareButton": "Share",
|
||||
"preview.seeInsideButton": "See inside",
|
||||
"preview.remixButton": "Remix",
|
||||
"preview.remixes": "Remixes",
|
||||
"preview.inviteToRemix": "Invite user to remix",
|
||||
"preview.instructionsLabel": "Instructions",
|
||||
"preview.notesAndCreditsLabel": "Notes and Credits",
|
||||
"preview.credit": "Thanks to {userLink} for the original project {projectLink}."
|
||||
"project.titleMaxLength": "Title is too long",
|
||||
"project.musicExtensionChip": "Music",
|
||||
"project.penExtensionChip": "Pen",
|
||||
"project.speechExtensionChip": "Google Speech",
|
||||
"project.translateExtensionChip": "Google Translate",
|
||||
"project.videoMotionChip": "Video Motion",
|
||||
"project.needsConnection": "Needs Connection",
|
||||
"project.comments.header": "Comments",
|
||||
"project.comments.turnOff": "Turn off commenting",
|
||||
"project.comments.turnedOff": "Sorry, comment posting has been turned off for this project.",
|
||||
"project.share.notShared": "This project is not shared — so only you can see it. Click share to let everyone see it!",
|
||||
"project.share.shareButton": "Share",
|
||||
"project.seeInsideButton": "See inside",
|
||||
"project.remixButton": "Remix",
|
||||
"project.remixes": "Remixes",
|
||||
"project.inviteToRemix": "Invite user to remix",
|
||||
"project.instructionsLabel": "Instructions",
|
||||
"project.notesAndCreditsLabel": "Notes and Credits",
|
||||
"project.credit": "Thanks to {userLink} for the original project {projectLink}."
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ const PreviewPresentation = ({
|
|||
name="title"
|
||||
validationErrors={{
|
||||
maxLength: intl.formatMessage({
|
||||
id: 'preview.titleMaxLength'
|
||||
id: 'project.titleMaxLength'
|
||||
})
|
||||
}}
|
||||
validations={{
|
||||
|
@ -140,14 +140,14 @@ const PreviewPresentation = ({
|
|||
{/* TODO: Hide Remix button for now until implemented */}
|
||||
{(!userOwnsProject && false) &&
|
||||
<Button className="button remix-button">
|
||||
<FormattedMessage id="preview.remixButton" />
|
||||
<FormattedMessage id="project.remixButton" />
|
||||
</Button>
|
||||
}
|
||||
<Button
|
||||
className="button see-inside-button"
|
||||
onClick={onSeeInside}
|
||||
>
|
||||
<FormattedMessage id="preview.seeInsideButton" />
|
||||
<FormattedMessage id="project.seeInsideButton" />
|
||||
</Button>
|
||||
</div>
|
||||
</MediaQuery>
|
||||
|
@ -213,7 +213,7 @@ const PreviewPresentation = ({
|
|||
</MediaQuery>
|
||||
<FlexRow className="description-block">
|
||||
<div className="project-textlabel">
|
||||
<FormattedMessage id="preview.instructionsLabel" />
|
||||
<FormattedMessage id="project.instructionsLabel" />
|
||||
</div>
|
||||
{editable ?
|
||||
<InplaceInput
|
||||
|
@ -244,7 +244,7 @@ const PreviewPresentation = ({
|
|||
</FlexRow>
|
||||
<FlexRow className="description-block">
|
||||
<div className="project-textlabel">
|
||||
<FormattedMessage id="preview.notesAndCreditsLabel" />
|
||||
<FormattedMessage id="project.notesAndCreditsLabel" />
|
||||
</div>
|
||||
{editable ?
|
||||
<InplaceInput
|
||||
|
@ -325,7 +325,7 @@ const PreviewPresentation = ({
|
|||
<FlexRow className="preview-row">
|
||||
<div className="comments-container">
|
||||
<FlexRow className="comments-header">
|
||||
<h4><FormattedMessage id="preview.comments.header" /></h4>
|
||||
<h4><FormattedMessage id="project.comments.header" /></h4>
|
||||
{userOwnsProject ? (
|
||||
<div>
|
||||
<label>
|
||||
|
@ -335,7 +335,7 @@ const PreviewPresentation = ({
|
|||
type="checkbox"
|
||||
onChange={onToggleComments}
|
||||
/>
|
||||
<FormattedMessage id="preview.comments.turnOff" />
|
||||
<FormattedMessage id="project.comments.turnOff" />
|
||||
</label>
|
||||
</div>
|
||||
) : null}
|
||||
|
@ -354,7 +354,7 @@ const PreviewPresentation = ({
|
|||
)
|
||||
) : (
|
||||
<div className="comments-turned-off">
|
||||
<FormattedMessage id="preview.comments.turnedOff" />
|
||||
<FormattedMessage id="project.comments.turnedOff" />
|
||||
</div>
|
||||
)}
|
||||
</FlexRow>
|
||||
|
|
|
@ -15,7 +15,7 @@ const RemixCredit = props => {
|
|||
/>
|
||||
<div className="credit-text">
|
||||
<FormattedMessage
|
||||
id="preview.credit"
|
||||
id="project.credit"
|
||||
values={{
|
||||
userLink: (
|
||||
<a href={`/users/${projectInfo.author.username}`}>
|
||||
|
|
|
@ -11,11 +11,11 @@ const RemixList = props => {
|
|||
return (
|
||||
<FlexRow className="remix-list">
|
||||
<div className="list-title">
|
||||
<FormattedMessage id="preview.remixes" />
|
||||
<FormattedMessage id="project.remixes" />
|
||||
</div>
|
||||
{remixes.length === 0 ? (
|
||||
// TODO: style remix invitation
|
||||
<FormattedMessage id="preview.inviteToRemix" />
|
||||
<FormattedMessage id="project.inviteToRemix" />
|
||||
) : (
|
||||
<ThumbnailColumn
|
||||
cards
|
||||
|
|
|
@ -10,13 +10,13 @@ const ShareBanner = ({onShare}) => (
|
|||
<div className="share-banner-outer">
|
||||
<FlexRow className="inner share-banner">
|
||||
<span className="share-text">
|
||||
<FormattedMessage id="preview.share.notShared" />
|
||||
<FormattedMessage id="project.share.notShared" />
|
||||
</span>
|
||||
<Button
|
||||
className="button share-button"
|
||||
onClick={onShare}
|
||||
>
|
||||
<FormattedMessage id="preview.share.shareButton" />
|
||||
<FormattedMessage id="project.share.shareButton" />
|
||||
</Button>
|
||||
</FlexRow>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue