File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
44import bindAll from 'lodash.bindall' ;
55import React from 'react' ;
66import { defineMessages , intlShape , injectIntl } from 'react-intl' ;
7+ import sharedMessages from '../../lib/shared-messages' ;
78
89import BufferedInputHOC from '../forms/buffered-input-hoc.jsx' ;
910import Input from '../forms/input.jsx' ;
@@ -16,11 +17,6 @@ const messages = defineMessages({
1617 id : 'gui.gui.projectTitlePlaceholder' ,
1718 description : 'Placeholder for project title when blank' ,
1819 defaultMessage : 'Project title here'
19- } ,
20- defaultProjectTitle : {
21- id : 'gui.gui.defaultProjectTitle' ,
22- description : 'Default title for project' ,
23- defaultMessage : 'Scratch Project'
2420 }
2521} ) ;
2622
@@ -48,7 +44,7 @@ class ProjectTitleInput extends React.Component {
4844 type = "text"
4945 value = { this . props . projectTitle ?
5046 this . props . projectTitle :
51- this . props . intl . formatMessage ( messages . defaultProjectTitle )
47+ this . props . intl . formatMessage ( sharedMessages . defaultProjectTitle )
5248 }
5349 onSubmit = { this . handleUpdateProjectTitle }
5450 />
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import ProjectFetcherHOC from '../lib/project-fetcher-hoc.jsx';
3030import ProjectSaverHOC from '../lib/project-saver-hoc.jsx' ;
3131import vmListenerHOC from '../lib/vm-listener-hoc.jsx' ;
3232import vmManagerHOC from '../lib/vm-manager-hoc.jsx' ;
33- import { defaultProjectTitleMessages } from '../reducers/project-title ' ;
33+ import sharedMessages from '../lib/shared-messages ' ;
3434
3535import GUIComponent from '../components/gui/gui.jsx' ;
3636
@@ -49,7 +49,7 @@ class GUI extends React.Component {
4949 setReduxTitle ( newTitle ) {
5050 if ( newTitle === null || typeof newTitle === 'undefined' ) {
5151 this . props . onUpdateReduxProjectTitle (
52- this . props . intl . formatMessage ( defaultProjectTitleMessages . defaultProjectTitle )
52+ this . props . intl . formatMessage ( sharedMessages . defaultProjectTitle )
5353 ) ;
5454 } else {
5555 this . props . onUpdateReduxProjectTitle ( newTitle ) ;
Original file line number Diff line number Diff line change @@ -20,5 +20,10 @@ export default defineMessages({
2020 defaultMessage : 'pop' ,
2121 description : 'Name of the pop sound, the default sound added to a sprite' ,
2222 id : 'gui.sharedMessages.pop'
23+ } ,
24+ defaultProjectTitle : {
25+ id : 'gui.gui.defaultProjectTitle' ,
26+ description : 'Default title for project' ,
27+ defaultMessage : 'Scratch Project'
2328 }
2429} ) ;
You can’t perform that action at this time.
0 commit comments