diff --git a/en.json b/en.json index 9a9a4053b..95e5005fd 100644 --- a/en.json +++ b/en.json @@ -17,6 +17,7 @@ "general.jobs": "Jobs", "general.joinScratch": "Join Scratch", "general.legal": "Legal", + "general.learnMore": "Learn More", "general.messages": "Messages", "general.myStuff": "My Stuff", "general.offlineEditor": "Offline Editor", @@ -49,5 +50,16 @@ "parents.FaqAgeRangeA": "While Scratch is primarily designed for 8 to 16 year olds, it is also used by people of all ages, including younger children with their parents.", "parents.FaqAgeRangeQ": "What is the age range for Scratch?", "parents.FaqResourcesQ": "What resources are available for learning Scratch?", - "parents.introDescription": "Scratch is a programming language and an online community where children can program and share interactive media such as stories, games, and animation with people from all over the world. As children create with Scratch, they learn to think creatively, work collaboratively, and reason systematically. Scratch is designed and maintained by the Lifelong Kindergarten group at the MIT Media Lab." + "parents.introDescription": "Scratch is a programming language and an online community where children can program and share interactive media such as stories, games, and animation with people from all over the world. As children create with Scratch, they learn to think creatively, work collaboratively, and reason systematically. Scratch is designed and maintained by the Lifelong Kindergarten group at the MIT Media Lab.", + "splash.featuredProjects": "Featured Projects", + "splash.featuredStudios": "Featured Studios", + "splash.projectsCuratedBy": "Projects Curated by", + "splash.scratchDesignStudioTitle": "Scratch Design Studio", + "splash.visitTheStudio": "Visit the studio", + "splash.recentlySharedProjects": "Recently Shared Projects", + "splash.projectsByScratchersFollowing": "Projects by Scratchers I'm Following", + "splash.projectsLovedByScratchersFollowing": "Projects Loved by Scratchers I'm Following", + "splash.projectsInStudiosFollowing": "Projects in Studios I'm Following", + "splash.communityRemixing": "What the Community is Remixing", + "splash.communityLoving": "What the Community is Loving" } \ No newline at end of file diff --git a/src/views/splash/splash.jsx b/src/views/splash/splash.jsx index a52e280e5..f83b6bae7 100644 --- a/src/views/splash/splash.jsx +++ b/src/views/splash/splash.jsx @@ -1,3 +1,4 @@ +var injectIntl = require('react-intl').injectIntl; var React = require('react'); var render = require('../../lib/render.jsx'); @@ -14,7 +15,7 @@ var News = require('../../components/news/news.jsx'); require('./splash.scss'); -var Splash = React.createClass({ +var Splash = injectIntl(React.createClass({ type: 'Splash', mixins: [ Api, @@ -77,11 +78,20 @@ var Splash = React.createClass({ }.bind(this)); }, renderHomepageRows: function () { + var formatMessage = this.props.intl.formatMessage; var rows = [ - + , - + ]; @@ -95,7 +105,7 @@ var Splash = React.createClass({ title={ 'Projects Curated by ' + this.state.featuredGlobal.curator_top_projects[0].curator_name} - moreTitle="Learn More" + moreTitle={formatMessage({id: 'general.learnMore', defaultMessage: 'Learn More'})} moreHref="/studios/386359/"> @@ -109,9 +119,11 @@ var Splash = React.createClass({ @@ -120,7 +132,12 @@ var Splash = React.createClass({ if (this.state.session.user) { rows.push( - + ); @@ -128,14 +145,24 @@ var Splash = React.createClass({ if (this.state.featuredCustom.custom_projects_by_following) { rows.push( - + ); } if (this.state.featuredCustom.custom_projects_loved_by_following) { rows.push( - + ); @@ -143,17 +170,32 @@ var Splash = React.createClass({ if (this.state.featuredCustom.custom_projects_in_studios_following) { rows.push( - + ); } rows.push( - + , - + ); @@ -213,6 +255,6 @@ var Splash = React.createClass({ ); } -}); +})); render(, document.getElementById('view'));