Update all preview... l10n strings to project...

This commit is contained in:
Paul Kaplan 2018-10-24 09:35:30 -04:00
parent f4887008a5
commit 4d8256e985
7 changed files with 38 additions and 38 deletions

View file

@ -5,25 +5,25 @@ const EXTENSION_INFO = {
hasStatus: true hasStatus: true
}, },
music: { music: {
l10nId: 'preview.musicExtensionChip', l10nId: 'project.musicExtensionChip',
icon: 'extension-music.svg' icon: 'extension-music.svg'
}, },
pen: { pen: {
l10nId: 'preview.penExtensionChip', l10nId: 'project.penExtensionChip',
icon: 'extension-pen.svg' icon: 'extension-pen.svg'
}, },
speak: { speak: {
name: 'Amazon Polly' name: 'Amazon Polly'
}, },
speech: { speech: {
l10nId: 'preview.speechExtensionChip' l10nId: 'project.speechExtensionChip'
}, },
translate: { translate: {
l10nId: 'preview.translateExtensionChip', l10nId: 'project.translateExtensionChip',
icon: 'extension-translate.svg' icon: 'extension-translate.svg'
}, },
videoSensing: { videoSensing: {
l10nId: 'preview.videoMotionChip', l10nId: 'project.videoMotionChip',
icon: 'extension-videomotion.svg' icon: 'extension-videomotion.svg'
}, },
wedo2: { wedo2: {

View file

@ -19,7 +19,7 @@ const ExtensionChip = props => (
} }
{props.hasStatus && ( {props.hasStatus && (
<div className="extension-status"> <div className="extension-status">
<FormattedMessage id="preview.needsConnection" /> <FormattedMessage id="project.needsConnection" />
</div> </div>
)} )}
</div> </div>

View file

@ -2,23 +2,23 @@
"addToStudio.title": "Add to Studio", "addToStudio.title": "Add to Studio",
"addToStudio.finishing": "Finishing up...", "addToStudio.finishing": "Finishing up...",
"addToStudio.inviteUser": "Invite user to add to studio", "addToStudio.inviteUser": "Invite user to add to studio",
"preview.titleMaxLength": "Title is too long", "project.titleMaxLength": "Title is too long",
"preview.musicExtensionChip": "Music", "project.musicExtensionChip": "Music",
"preview.penExtensionChip": "Pen", "project.penExtensionChip": "Pen",
"preview.speechExtensionChip": "Google Speech", "project.speechExtensionChip": "Google Speech",
"preview.translateExtensionChip": "Google Translate", "project.translateExtensionChip": "Google Translate",
"preview.videoMotionChip": "Video Motion", "project.videoMotionChip": "Video Motion",
"preview.needsConnection": "Needs Connection", "project.needsConnection": "Needs Connection",
"preview.comments.header": "Comments", "project.comments.header": "Comments",
"preview.comments.turnOff": "Turn off commenting", "project.comments.turnOff": "Turn off commenting",
"preview.comments.turnedOff": "Sorry, comment posting has been turned off for this project.", "project.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!", "project.share.notShared": "This project is not shared — so only you can see it. Click share to let everyone see it!",
"preview.share.shareButton": "Share", "project.share.shareButton": "Share",
"preview.seeInsideButton": "See inside", "project.seeInsideButton": "See inside",
"preview.remixButton": "Remix", "project.remixButton": "Remix",
"preview.remixes": "Remixes", "project.remixes": "Remixes",
"preview.inviteToRemix": "Invite user to remix", "project.inviteToRemix": "Invite user to remix",
"preview.instructionsLabel": "Instructions", "project.instructionsLabel": "Instructions",
"preview.notesAndCreditsLabel": "Notes and Credits", "project.notesAndCreditsLabel": "Notes and Credits",
"preview.credit": "Thanks to {userLink} for the original project {projectLink}." "project.credit": "Thanks to {userLink} for the original project {projectLink}."
} }

View file

@ -114,7 +114,7 @@ const PreviewPresentation = ({
name="title" name="title"
validationErrors={{ validationErrors={{
maxLength: intl.formatMessage({ maxLength: intl.formatMessage({
id: 'preview.titleMaxLength' id: 'project.titleMaxLength'
}) })
}} }}
validations={{ validations={{
@ -140,14 +140,14 @@ const PreviewPresentation = ({
{/* TODO: Hide Remix button for now until implemented */} {/* TODO: Hide Remix button for now until implemented */}
{(!userOwnsProject && false) && {(!userOwnsProject && false) &&
<Button className="button remix-button"> <Button className="button remix-button">
<FormattedMessage id="preview.remixButton" /> <FormattedMessage id="project.remixButton" />
</Button> </Button>
} }
<Button <Button
className="button see-inside-button" className="button see-inside-button"
onClick={onSeeInside} onClick={onSeeInside}
> >
<FormattedMessage id="preview.seeInsideButton" /> <FormattedMessage id="project.seeInsideButton" />
</Button> </Button>
</div> </div>
</MediaQuery> </MediaQuery>
@ -213,7 +213,7 @@ const PreviewPresentation = ({
</MediaQuery> </MediaQuery>
<FlexRow className="description-block"> <FlexRow className="description-block">
<div className="project-textlabel"> <div className="project-textlabel">
<FormattedMessage id="preview.instructionsLabel" /> <FormattedMessage id="project.instructionsLabel" />
</div> </div>
{editable ? {editable ?
<InplaceInput <InplaceInput
@ -244,7 +244,7 @@ const PreviewPresentation = ({
</FlexRow> </FlexRow>
<FlexRow className="description-block"> <FlexRow className="description-block">
<div className="project-textlabel"> <div className="project-textlabel">
<FormattedMessage id="preview.notesAndCreditsLabel" /> <FormattedMessage id="project.notesAndCreditsLabel" />
</div> </div>
{editable ? {editable ?
<InplaceInput <InplaceInput
@ -325,7 +325,7 @@ const PreviewPresentation = ({
<FlexRow className="preview-row"> <FlexRow className="preview-row">
<div className="comments-container"> <div className="comments-container">
<FlexRow className="comments-header"> <FlexRow className="comments-header">
<h4><FormattedMessage id="preview.comments.header" /></h4> <h4><FormattedMessage id="project.comments.header" /></h4>
{userOwnsProject ? ( {userOwnsProject ? (
<div> <div>
<label> <label>
@ -335,7 +335,7 @@ const PreviewPresentation = ({
type="checkbox" type="checkbox"
onChange={onToggleComments} onChange={onToggleComments}
/> />
<FormattedMessage id="preview.comments.turnOff" /> <FormattedMessage id="project.comments.turnOff" />
</label> </label>
</div> </div>
) : null} ) : null}
@ -354,7 +354,7 @@ const PreviewPresentation = ({
) )
) : ( ) : (
<div className="comments-turned-off"> <div className="comments-turned-off">
<FormattedMessage id="preview.comments.turnedOff" /> <FormattedMessage id="project.comments.turnedOff" />
</div> </div>
)} )}
</FlexRow> </FlexRow>

View file

@ -15,7 +15,7 @@ const RemixCredit = props => {
/> />
<div className="credit-text"> <div className="credit-text">
<FormattedMessage <FormattedMessage
id="preview.credit" id="project.credit"
values={{ values={{
userLink: ( userLink: (
<a href={`/users/${projectInfo.author.username}`}> <a href={`/users/${projectInfo.author.username}`}>

View file

@ -11,11 +11,11 @@ const RemixList = props => {
return ( return (
<FlexRow className="remix-list"> <FlexRow className="remix-list">
<div className="list-title"> <div className="list-title">
<FormattedMessage id="preview.remixes" /> <FormattedMessage id="project.remixes" />
</div> </div>
{remixes.length === 0 ? ( {remixes.length === 0 ? (
// TODO: style remix invitation // TODO: style remix invitation
<FormattedMessage id="preview.inviteToRemix" /> <FormattedMessage id="project.inviteToRemix" />
) : ( ) : (
<ThumbnailColumn <ThumbnailColumn
cards cards

View file

@ -10,13 +10,13 @@ const ShareBanner = ({onShare}) => (
<div className="share-banner-outer"> <div className="share-banner-outer">
<FlexRow className="inner share-banner"> <FlexRow className="inner share-banner">
<span className="share-text"> <span className="share-text">
<FormattedMessage id="preview.share.notShared" /> <FormattedMessage id="project.share.notShared" />
</span> </span>
<Button <Button
className="button share-button" className="button share-button"
onClick={onShare} onClick={onShare}
> >
<FormattedMessage id="preview.share.shareButton" /> <FormattedMessage id="project.share.shareButton" />
</Button> </Button>
</FlexRow> </FlexRow>
</div> </div>