From 41a0ef73ba9a6bc9901bfb3a2134845c965b8883 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Tue, 16 Aug 2016 08:55:32 -0400 Subject: [PATCH] Add missing strings for translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Explore page header 2. “by” in the project thumbnail --- src/components/thumbnail/thumbnail.jsx | 8 ++++++-- src/l10n.json | 4 +++- src/views/explore/explore.jsx | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/thumbnail/thumbnail.jsx b/src/components/thumbnail/thumbnail.jsx index b2bb234c5..f85dc18c4 100644 --- a/src/components/thumbnail/thumbnail.jsx +++ b/src/components/thumbnail/thumbnail.jsx @@ -1,5 +1,6 @@ -var React = require('react'); var classNames = require('classnames'); +var FormattedMessage = require('react-intl').FormattedMessage; +var React = require('react'); require('./thumbnail.scss'); @@ -32,7 +33,10 @@ var Thumbnail = React.createClass({ if (this.props.creator) { extra.push(
- by {this.props.creator} + {' '} + + {this.props.creator} +
); } diff --git a/src/l10n.json b/src/l10n.json index 42bd8edb7..5d3ba20e2 100644 --- a/src/l10n.json +++ b/src/l10n.json @@ -154,5 +154,7 @@ "registration.waitForApprovalDescription": "You can log into your Scratch Account now, but the features specific to Teachers are not yet available. Your information is being reviewed. Please be patient, the approval process can take up to 24 hours. You will receive an email indicating your account has been upgraded once your account has been approved.", "registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:", "registration.welcomeStepPrompt": "To get started, click on the button below.", - "registration.welcomeStepTitle": "Hurray! Welcome to Scratch!" + "registration.welcomeStepTitle": "Hurray! Welcome to Scratch!", + + "thumbnail.by": "by" } diff --git a/src/views/explore/explore.jsx b/src/views/explore/explore.jsx index 761d6292e..2149be580 100644 --- a/src/views/explore/explore.jsx +++ b/src/views/explore/explore.jsx @@ -111,10 +111,12 @@ var Explore = injectIntl(React.createClass({ ); }, render: function () { + var formatMessage = this.props.intl.formatMessage; + return (
- + {this.getBubble('all')} {this.getBubble('animations')}