diff --git a/src/l10n.json b/src/l10n.json index df379b364..24edec605 100644 --- a/src/l10n.json +++ b/src/l10n.json @@ -2,9 +2,12 @@ "general.accountSettings": "Account settings", "general.about": "About", "general.aboutScratch": "About Scratch", + "general.birthMonth": "Birth Month", + "general.birthYear": "Birth Year", "general.donate": "Donate", "general.collaborators": "Collaborators", "general.community": "Community", + "general.confirmEmail": "Confirm Email", "general.contactUs": "Contact Us", "general.copyright": "Scratch is a project of the Lifelong Kindergarten Group at the MIT Media Lab", "general.country": "Country", @@ -17,6 +20,7 @@ "general.female": "Female", "general.forParents": "For Parents", "general.forEducators": "For Educators", + "general.gender": "Gender", "general.guidelines": "Community Guidelines", "general.help": "Help", "general.jobs": "Jobs", @@ -41,6 +45,7 @@ "general.myClass": "My Class", "general.myClasses": "My Classes", "general.myStuff": "My Stuff", + "general.notRequired": "Not Required", "general.other": "Other", "general.offlineEditor": "Offline Editor", "general.password": "Password", @@ -67,7 +72,10 @@ "general.tipsPongGame": "Create a Pong Game", "general.termsOfUse": "Terms of Use", "general.username": "Username", + "general.validationEmail": "Please enter a valid email address", + "general.validationEmailMatch": "The emails do not match", "general.viewAll": "View All", + "general.website": "Website", "general.whatsHappening": "What's Happening?", "general.wiki": "Scratch Wiki", diff --git a/src/views/teacherregistration/l10n.json b/src/views/teacherregistration/l10n.json index 1d12cfcc9..1212b8499 100644 --- a/src/views/teacherregistration/l10n.json +++ b/src/views/teacherregistration/l10n.json @@ -20,12 +20,42 @@ "teacherRegistration.phoneStepDescription": "Your phone number will not be displayed publicly, and will be kept confidential and secure", "teacherRegistration.phoneConsent": "Yes, the Scratch Team may call me to verify my Teacher Account if needed", "teacherRegistration.validationPhoneConsent": "You must consent to verification of your Teacher Account", - "teacherRegistration.organizationChoiceElementarySchool": "Elementary School", - "teacherRegistration.organizationChoiceMiddleSchool": "Middle School", - "teacherRegistration.organizationChoiceHighSchool": "High School", - "teacherRegistration.organizationChoiceUniversity": "University / College", - "teacherRegistration.organizationChoiceMuseum": "Museum", - "teacherRegistration.organizationChoiceLibrary": "Library", - "teacherRegistration.organizationChoiceCamp": "Camp", - "teacherRegistration.organizationChoiceOther": "Other" + "teacherRegistration.orgStepTitle": "Organization", + "teacherRegistration.orgStepDescription": "Your information will not be displayed publicly, and will be kept confidential and secure", + "teacherRegistration.organization": "Organization", + "teacherRegistration.orgTitle": "Your Role", + "teacherRegistration.orgType": "Type of Organization", + "teacherRegistration.checkAll": "Check all that apply", + "teacherRegistration.orgChoiceElementarySchool": "Elementary School", + "teacherRegistration.orgChoiceMiddleSchool": "Middle School", + "teacherRegistration.orgChoiceHighSchool": "High School", + "teacherRegistration.orgChoiceUniversity": "College/University", + "teacherRegistration.orgChoiceAfterschool": "Afterscool Program", + "teacherRegistration.orgChoiceMuseum": "Museum", + "teacherRegistration.orgChoiceLibrary": "Library", + "teacherRegistration.orgChoiceCamp": "Camp", + "teacherRegistration.orgChoiceOther": "Other", + "teacherRegistration.selectCountry": "select country", + "teacherRegistration.validationAddress": "This doesn't look like a real address", + "teacherRegistration.addressLine1": "Address Line 1", + "teacherRegistration.addressLine2": "Address Line 2", + "teacherRegistration.zipCode": "ZIP", + "teacherRegistration.stateProvince": "State", + "teacherRegistration.city": "City", + "teacherRegistration.addressStepTitle": "Address", + "teacherRegistration.addressStepDescription": "Your information will not be displayed publicly, and will be kept confidential and secure.", + "teacherRegistration.useScratchStepTitle": "How you plan to use Scratch", + "teacherRegistration.useScratchStepDescription": "Tell us a little about how you plan to use Scratch. Why do we ask for this information", + "teacherRegistration.howUseScratch": "How do you plan to use Scratch at your organization?", + "teacherRegistration.emailStepTitle": "Email Address", + "teacherRegistration.emailStepDescription": "We will send you a confirmation email that will allow you to access your Scratch Teacher Account.", + "teacherRegistration.validationEmailMatch": "The emails do not match", + "teacherRegistration.lastStepTitle": "Thank you for requesting a Scratch Teacher Account", + "teacherRegistration.lastStepDescription": "We are currently processing your application. ", + "teacherRegistration.confirmYourEmail": "Confirm Your Email", + "teacherRegistration.confirmYourEmailDescription": "If you haven't already, please click the link in the confirmation email sent to:", + "teacherRegistration.waitForApproval": "Wait for Approval", + "teacherRegistration.waitForApprovalDescription": "Your information is being reviewed. Please be patient, the approval process can take up to 24 hours. You will receive an email with your login information once your account has been created.", + "teacherRegistration.checkOutResources": "Get Started with Resources", + "teacherRegistration.checkOutResourcesDescription": "Explore materials for educators and facilitators written by the Scratch Team, including tips, tutorials, and guides." } diff --git a/src/views/teacherregistration/steps.jsx b/src/views/teacherregistration/steps.jsx index 1b4d809b9..f6803174a 100644 --- a/src/views/teacherregistration/steps.jsx +++ b/src/views/teacherregistration/steps.jsx @@ -116,9 +116,14 @@ module.exports = {

}>
- - + - - + + - - + + ); } })), - AddressStep: React.createClass({ + AddressStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { return {defaultCountry: DEFAULT_COUNTRY}; }, @@ -304,125 +319,151 @@ module.exports = { return this.props.onNextStep(formData); } else { return invalidate({ - 'all': 'This doesn\'t look like a real address' + 'all': }); } }.bind(this)); }, render: function () { + var formatMessage = this.props.intl.formatMessage; var stateOptions = countryData.subdivisionOptions[this.state.countryChoice]; - var stateDefault = 'Please select...'; - stateOptions = [{label: stateDefault}].concat(stateOptions); + stateOptions = [{}].concat(stateOptions); + var countryOptions = countryData.countryOptions.concat({ + label: formatMessage({id: 'teacherRegistration.selectCountry'}), + disabled: true, + selected: true + }).sort(function (a, b) { + if (a.disabled) return -1; + if (b.disabled) return 1; + if (a.value === this.props.defaultCountry) return -1; + if (b.value === this.props.defaultCountry) return 1; + return 0; + }.bind(this)); return ( - - Your responses to these questions will be kept private. - Why do we ask for this information ? -

}> + + +

}>
- - - + + + {stateOptions.length > 2 ? - : [] } - +
); } - }), - UseScratchStep: React.createClass({ + })), + UseScratchStep: intl.injectIntl(React.createClass({ render: function () { + var formatMessage = this.props.intl.formatMessage; return ( - - Tell us a little how you plan to use Scratch. - Why do we ask for this information ? -

- }> + + +

+ }>
-