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
},
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: {

View file

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

View file

@ -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}."
}

View file

@ -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>

View file

@ -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}`}>

View file

@ -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

View file

@ -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>