Update i18n ()

* Update i18n
* Change pt-BR description
* Remove dead code from HomeView
This commit is contained in:
Imperadeiro98 2016-09-08 22:48:28 +01:00 committed by GitHub
parent af3e069828
commit baa916e37a
28 changed files with 39 additions and 94 deletions

View file

@ -1,19 +1,4 @@
module.exports = nativeDescription: "English", englishDescription: "English", translation:
home:
slogan: "Learn to Code by Playing a Game"
no_ie: "CodeCombat does not run in Internet Explorer 8 or older. Sorry!" # Warning that only shows up in IE8 and older
no_mobile: "CodeCombat wasn't designed for mobile devices and may not work!" # Warning that shows up on mobile devices
play: "Play" # The big play button that opens up the campaign view.
play_campaign_version: "Play Campaign Version" # Shows up under big play button if you only play /courses
old_browser: "Uh oh, your browser is too old to run CodeCombat. Sorry!" # Warning that shows up on really old Firefox/Chrome/Safari
old_browser_suffix: "You can try anyway, but it probably won't work."
ipad_browser: "Bad news: CodeCombat doesn't run on iPad in the browser. Good news: our native iPad app is awaiting Apple approval."
campaign: "Campaign"
for_beginners: "For Beginners"
multiplayer: "Multiplayer" # Not currently shown on home page
for_developers: "For Developers" # Not currently shown on home page.
or_ipad: "Or download for iPad"
new_home:
slogan: "The most engaging game for learning programming."
classroom_edition: "Classroom Edition:"
@ -65,7 +50,6 @@
setup_a_class: "Set Up a Class"
have_an_account: "Have an account?"
logged_in_as: "You are currently logged in as"
view_my_classes: "View my classes"
computer_science: "Computer science courses for all ages"
show_me_lesson_time: "Show me lesson time estimates for:"
curriculum: "Total curriculum hours:"
@ -76,43 +60,27 @@
boast: "Boasts riddles that are complex enough to fascinate gamers and coders alike."
winning: "A winning combination of RPG gameplay and programming homework that pulls off making kid-friendly education legitimately enjoyable."
run_class:"Everything you need to run a computer science class in your school today, no CS background required."
teachers: "Teachers!"
teachers_and_educators: "Teachers & Educators"
class_in_box: "Learn how our classroom-in-a-box platform fits into your curriculum."
get_started: "Get Started"
students: "Students:"
join_class: "Join Class"
role: "Your role:"
student_count: "Number of students:"
start_playing_for_free: "Start Playing for Free!"
students_and_players: "Students & Players"
goto_classes: "Go to My Classes"
view_profile: "View My Profile"
view_progress: "View Progress"
go_to_courses: "Go to My Courses"
want_coco: "Want CodeCombat at your school?"
form_select_role: "Select primary role"
form_select_range: "Select class size"
nav:
play: "Levels" # The top nav bar entry where players choose which levels to play
community: "Community"
courses: "Courses"
editor: "Editor"
blog: "Blog"
forum: "Forum"
account: "Account"
my_account: "My Account"
profile: "Profile"
stats: "Stats"
code: "Code"
home: "Home"
contribute: "Contribute"
legal: "Legal"
about: "About"
contact: "Contact"
twitter_follow: "Follow"
students: "Students"
teachers: "Teachers"
careers: "Careers"
facebook: "Facebook"
@ -123,7 +91,6 @@
toggle_nav: "Toggle navigation"
jobs: "Jobs"
schools: "Schools"
educator_wiki: "Educator Wiki"
get_involved: "Get Involved"
open_source: "Open source (GitHub)"
support: "Support"
@ -133,7 +100,6 @@
resource_hub: "Resource Hub"
modal:
cancel: "Cancel"
close: "Close"
okay: "Okay"
@ -164,7 +130,6 @@
skills_granted: "Skills Granted" # Property documentation details
heroes: "Heroes" # Tooltip on hero shop button from /play
achievements: "Achievements" # Tooltip on achievement list button from /play
account: "Account" # Tooltip on account button from /play
settings: "Settings" # Tooltip on settings button from /play
poll: "Poll" # Tooltip on poll button from /play
next: "Next" # Go from choose hero to choose inventory before playing a level
@ -181,8 +146,6 @@
adjust_volume: "Adjust volume"
campaign_multiplayer: "Multiplayer Arenas"
campaign_multiplayer_description: "... in which you code head-to-head against other players."
campaign_old_multiplayer: "(Deprecated) Old Multiplayer Arenas"
campaign_old_multiplayer_description: "Relics of a more civilized age. No simulations are run for these older, hero-less multiplayer arenas."
code:
if: "if" # Keywords--these translations show up on hover, so please translate them all, even if it's kind of long. (In the code editor, they will still be in English.)
@ -260,10 +223,8 @@
create_student_header: "Create Student Account"
create_teacher_header: "Create Teacher Account"
create_individual_header: "Create Individual Account"
create_header: "Create Account"
email_announcements: "Receive announcements about new CodeCombat levels and features!"
creating: "Creating Account..."
create_account: "Create Account"
sign_up: "Sign Up"
log_in: "log in with password"
required: "You need to log in before you can go that way."
@ -350,7 +311,6 @@
sending: "Sending..."
send: "Send"
sent: "Sent"
type: "Type"
cancel: "Cancel"
save: "Save"
publish: "Publish"
@ -719,7 +679,6 @@
lua_blurb: "Game scripting language."
java_blurb: "(Subscriber Only) Android and enterprise."
status: "Status"
hero_type: "Type"
weapons: "Weapons"
weapons_warrior: "Swords - Short Range, No Magic"
weapons_ranger: "Crossbows, Guns - Long Range, No Magic"
@ -878,7 +837,6 @@
character_art: "Character Art"
download_all: "Download All"
previous: "Previous"
next: "Next"
location_title: "We're located in downtown SF:"
teachers:
@ -894,7 +852,6 @@
teachers_quote:
name: "Demo Form"
title: "Request a Demo"
subtitle: "Get your students started in less than an hour. You'll be able to <strong>create a class, add students, and monitor their progress</strong> as they learn computer science."
email_exists: "User exists with this email."
phone_number: "Phone number"
@ -943,7 +900,6 @@
create_account_subtitle: "Get access to teacher-only tools for using CodeCombat in the classroom. <strong>Set up a class</strong>, add your students, and <strong>monitor their progress</strong>!"
convert_account_title: "Update to Teacher Account"
not: "Not"
setup_a_class: "Set Up a Class"
versions:
save_version_title: "Save New Version"
@ -985,7 +941,6 @@
reset_progress_tab: "Reset All Progress"
reset_your_progress: "Clear all your progress and start over"
god_mode: "God Mode"
password_tab: "Password"
emails_tab: "Emails"
admin: "Admin"
manage_subscription: "Click here to manage your subscription."
@ -1070,7 +1025,6 @@
clan_name: "Clan Name"
name: "Name"
chieftain: "Chieftain"
type: "Type"
edit_clan_name: "Edit Clan Name"
edit_clan_description: "Edit Clan Description"
edit_name: "edit name"
@ -1215,7 +1169,6 @@
teacher: "Teacher"
complete: "Complete"
none: "None"
save: "Save"
play_campaign_title: "Play the Campaign"
play_campaign_description: "Youre ready to take the next step! Explore hundreds of challenging levels, learn advanced programming skills, and compete in multiplayer arenas!"
create_account_title: "Create an Account"
@ -1322,8 +1275,7 @@
students_enrolled: "students enrolled"
students_assigned: "students assigned"
length: "Length:"
title: "Courses" # Flat style redesign
subtitle: "Review course overviews and levels"
subtitle: "Review course overviews and levels" # Flat style redesign
changelog: "View latest changes to course levels."
select_language: "Select language"
select_level: "Select level"
@ -1333,8 +1285,7 @@
view_guide_online: "Level Overviews and Solutions"
grants_lifetime_access: "Grants access to all Courses."
enrollment_credits_available: "Licenses Available:"
description: "Description" # ClassroomSettingsModal
language_select: "Select a language"
language_select: "Select a language" # ClassroomSettingsModal
language_cannot_change: "Language cannot be changed once students join a class."
learn_p: "Learn Python"
learn_j: "Learn JavaScript"
@ -1631,7 +1582,6 @@
level_some_options: "Some Options?"
level_tab_thangs: "Thangs"
level_tab_scripts: "Scripts"
level_tab_settings: "Settings"
level_tab_components: "Components"
level_tab_systems: "Systems"
level_tab_docs: "Documentation"
@ -1647,7 +1597,6 @@
duplicate: "Duplicate"
stop_duplicate: "Stop Duplicate"
rotate: "Rotate"
level_settings_title: "Settings"
level_component_tab_title: "Current Components"
level_component_btn_new: "Create New Component"
level_systems_tab_title: "Current Systems"
@ -1657,7 +1606,6 @@
level_components_type: "Type"
level_component_edit_title: "Edit Component"
level_component_config_schema: "Config Schema"
level_component_settings: "Settings"
level_system_edit_title: "Edit System"
create_system_title: "Create New System"
new_component_title: "Create New Component"
@ -2049,7 +1997,6 @@
rights_desc: "All rights are reserved for Levels themselves. This includes"
rights_scripts: "Scripts"
rights_unit: "Unit configuration"
rights_description: "Description"
rights_writings: "Writings"
rights_media: "Media (sounds, music) and any other creative content made specifically for that Level and not made generally available when creating Levels."
rights_clarification: "To clarify, anything that is made available in the Level Editor for the purpose of making levels is under CC, whereas the content created with the Level Editor or uploaded in the course of creation of Levels is not."

View file

@ -1,4 +1,4 @@
module.exports = nativeDescription: "Português do Brasil", englishDescription: "Portuguese (Brazil)", translation:
module.exports = nativeDescription: "Português (Brasil)", englishDescription: "Portuguese (Brazil)", translation:
home:
slogan: "Aprenda a programar enquanto se diverte jogando."
no_ie: "O CodeCombat não roda em versões mais antigas que o Internet Explorer 10. Desculpe!" # Warning that only shows up in IE8 and older

View file

@ -400,7 +400,7 @@ block content
span.sr-only(data-i18n="about.previous")
a#carousel-right.right.carousel-control(href="#screenshot-carousel", role="button")
span.glyphicon.glyphicons-chevron-right.glyphicon-chevron-right(aria-hidden="true")
span.sr-only(data-i18n="about.next")
span.sr-only(data-i18n="play.next")
#location
.row

View file

@ -68,7 +68,7 @@ else
.panel.panel-default
.panel-heading
.panel-title(data-i18n="account_settings.password_tab")
.panel-title(data-i18n="general.password")
.panel-body
.form
.form-group

View file

@ -23,7 +23,7 @@ mixin accountLinks
.col-lg-12
.navbar-header
button.navbar-toggle.collapsed(data-toggle='collapse', data-target='#navbar-collapse' aria-expanded='false')
span.sr-only(data-i18n="home.toggle_nav")
span.sr-only(data-i18n="nav.toggle_nav")
span.icon-bar
span.icon-bar
span.icon-bar
@ -36,7 +36,7 @@ mixin accountLinks
li
a(href="/about", data-i18n="nav.about")
li
a(href="/courses", data-i18n="nav.students")
a(href="/courses", data-i18n="courses.students")
li
a(href="/teachers/classes", data-i18n="nav.teachers")
li
@ -107,7 +107,7 @@ mixin accountLinks
li
a(href="/teachers/resources", data-i18n="nav.resource_hub")
li
a(href="/teachers/demo", data-i18n="teachers_quote.title")
a(href="/teachers/demo", data-i18n="new_home.request_demo")
.col-sm-3
ul.list-unstyled
@ -120,7 +120,7 @@ mixin accountLinks
li
a(href=view.forumLink(), data-i18n="nav.forum")
li
a(href="/play/ladder", data-i18n="home.multiplayer")
a(href="/play/ladder", data-i18n="game_menu.multiplayer_tab")
li
a(href="https://github.com/codecombat/codecombat", data-i18n="nav.open_source")
.col-sm-3

View file

@ -9,7 +9,7 @@ block header
a(href="/")
span.glyphicon.glyphicon-home
a(href='/teachers', data-i18n="nav.teachers")
a(href='/courses', data-i18n="nav.students")
a(href='/courses', data-i18n="courses.students")
a(href=view.forumLink(), data-i18n="nav.forum")
a(href='/community', data-i18n="nav.community")
@ -69,7 +69,7 @@ block footer
a(href='/legal', tabindex=-1, data-i18n="nav.legal")
a(href='/privacy', tabindex=-1, data-i18n="legal.privacy_title")
a(href='/contribute', tabindex=-1, data-i18n="nav.contribute")
a(href='/play/ladder', tabindex=-1, data-i18n="home.multiplayer")
a(href='/play/ladder', tabindex=-1, data-i18n="game_menu.multiplayer_tab")
if me.isAdmin()
a(href='/admin') Admin

View file

@ -59,7 +59,7 @@ block content
th(data-i18n="clans.clan_name") Clan Name
th(data-i18n="play.heroes") Heroes
th(data-i18n="clans.chieftain") Chieftain
th(data-i18n="clans.type") Type
th(data-i18n="editor.level_components_type") Type
th
tbody
if view.myClansArray.length

View file

@ -102,7 +102,7 @@ form#basic-info-form.modal-body.basic-info
// In reverse order for tabbing purposes
.history-nav-buttons
button#create-account-btn.next-button.btn.btn-lg.btn-navy(type='submit')
span(data-i18n="signup.create_account")
span(data-i18n="login.sign_up")
button.back-button.btn.btn-lg.btn-navy-alt(type='button')
span(data-i18n="common.back")

View file

@ -18,7 +18,7 @@ mixin modal-header-content
when 'individual'
span(data-i18n="signup.create_individual_header")
default
span(data-i18n="signup.create_header")
span(data-i18n="login.sign_up")
//-
This is where the subviews (screens) are hooked up.

View file

@ -8,4 +8,4 @@
// In reverse order for tabbing purposes
.history-nav-buttons
button.next-button.btn.btn-lg.btn-navy(type='button')
span(data-i18n="about.next")
span(data-i18n="play.next")

View file

@ -63,7 +63,7 @@ form.modal-body.segment-check
.history-nav-buttons
//- disabled=!view.signupState.get('segmentCheckValid')
button.next-button.btn.btn-lg.btn-navy(type='submit')
span(data-i18n="about.next")
span(data-i18n="play.next")
button.back-to-account-type.btn.btn-lg.btn-navy-alt(type='button')
span(data-i18n="common.back")

View file

@ -51,7 +51,7 @@ form#basic-info-form.modal-body
// In reverse order for tabbing purposes
.history-nav-buttons
button.next-button.btn.btn-lg.btn-navy(type='submit')
span(data-i18n="signup.create_account")
span(data-i18n="login.sign_up")
button.back-button.btn.btn-lg.btn-navy-alt(type='button')
span(data-i18n="common.back")

View file

@ -14,7 +14,7 @@ block modal-body-content
.form-group
label
span(data-i18n="courses.description")
span(data-i18n="general.description")
i.spl.text-muted(data-i18n="signup.optional")
textarea.form-control(name="description" rows=2)= view.classroom.get('description')

View file

@ -5,7 +5,7 @@ block content
.container.m-t-3
p
a(href="/courses", data-i18n="courses.back_courses")
p
strong
if view.courseInstance.get('name')
@ -14,33 +14,33 @@ block content
span= view.classroom.get('name')
else
span(data-i18n='courses.unnamed_class')
if !view.owner.isNew() && view.getOwnerName() && view.courseInstance.get('name') != 'Single Player'
span.spl -
span.spl(data-i18n='courses.teacher')
span.spr :
span
strong= view.getOwnerName()
h1
| #{i18n(view.course.attributes, 'name')}
if view.courseComplete
span.spl -
span.spl(data-i18n='courses.complete')
span !
p
if view.courseInstance.get('description')
each line in view.courseInstance.get('description').split('\n')
div= line
.available-courses-title(data-i18n='courses.available_levels')
table.table.table-striped.table-condensed
thead
tr
th
th(data-i18n="clans.status")
th(data-i18n="common.type")
th(data-i18n="editor.level_components_type")
th(data-i18n="resources.level")
th(data-i18n="courses.concepts")
tbody
@ -56,7 +56,7 @@ block content
tr
td
if previousLevelCompleted || !passedLastCompletedLevel || levelStatus
- var i18nTag = level.isType('course-ladder') ? 'play.compete' : 'home.play';
- var i18nTag = level.isType('course-ladder') ? 'play.compete' : 'common.play';
button.btn.btn-forest.btn-play-level(data-level-slug=level.get('slug'), data-i18n=i18nTag, data-level-id=level.get('original'))
if level.get('shareable')
- var levelOriginal = level.get('original');

View file

@ -15,7 +15,7 @@ block content
a.btn.btn-primary.btn-lg(href="/teachers/update-account") Upgrade to teacher account
.container
h1(data-i18n="courses.title")
h1(data-i18n="nav.courses")
h2(data-i18n="courses.subtitle")
//- p
//- a(href="https://discourse.codecombat.com/t/course-level-changelog/7352" data-i18n="courses.changelog")

View file

@ -5,7 +5,7 @@ nav.navbar.navbar-default(role='navigation')
li
a(href="#component-config-schema" data-toggle="tab" data-i18n="editor.level_component_config_schema")#component-config-schema-tab Config Schema
li
a(href="#component-settings" data-toggle="tab" data-i18n="editor.level_component_settings")#component-settings-tab Settings
a(href="#component-settings" data-toggle="tab" data-i18n="play.settings")#component-settings-tab Settings
li
a(href="#component-patches" data-toggle="tab" data-i18n="resources.patches")#component-patches-tab Patches

View file

@ -22,7 +22,7 @@ block header
li
a(href="#editor-level-scripts-tab-view", data-toggle="tab", data-i18n="editor.level_tab_scripts") Scripts
li
a(href="#editor-level-settings-tab-view", data-toggle="tab", data-i18n="editor.level_tab_settings") Settings
a(href="#editor-level-settings-tab-view", data-toggle="tab", data-i18n="play.settings") Settings
li
a(href="#editor-level-components-tab-view", data-toggle="tab", data-i18n="editor.level_tab_components")#components-tab Components
li

View file

@ -6,7 +6,7 @@ nav.navbar.navbar-default(role='navigation')
li
a(href="#system-config-schema" data-toggle="tab" data-i18n="editor.level_component_config_schema")#system-config-schema-tab Config Schema
li
a(href="#system-settings" data-toggle="tab" data-i18n="editor.level_component_settings")#system-settings-tab Settings
a(href="#system-settings" data-toggle="tab" data-i18n="play.settings")#system-settings-tab Settings
li
a(href="#system-patches" data-toggle="tab" data-i18n="resources.patches")#system-patches-tab Patches

View file

@ -335,4 +335,4 @@ block content
span.sr-only(data-i18n="about.previous")
a#carousel-right.right.carousel-control(href="#screenshot-carousel", role="button")
span.glyphicon.glyphicons-chevron-right.glyphicon-chevron-right(aria-hidden="true")
span.sr-only(data-i18n="about.next")
span.sr-only(data-i18n="play.next")

View file

@ -142,7 +142,7 @@ block content
ul
li(data-i18n="legal.rights_scripts") Scripts
li(data-i18n="legal.rights_unit") Unit configuration
li(data-i18n="legal.rights_description") Description
li(data-i18n="general.description") Description
li(data-i18n="legal.rights_writings") Writings
li(data-i18n="legal.rights_media")
| Media (sounds, music) and any other creative

View file

@ -160,7 +160,7 @@ if view.showAds()
if (me.get('anonymous') === false || me.get('iosIdentifierForVendor') || isIPadApp) && !me.isOnFreeOnlyServer()
button.btn.gems(data-toggle='coco-modal', data-target='play/modal/BuyGemsModal', data-i18n="[title]play.buy_gems")
if !me.get('anonymous', true)
button.btn.account(data-toggle='coco-modal', data-target='play/modal/PlayAccountModal', data-i18n="[title]play.account")
button.btn.account(data-toggle='coco-modal', data-target='play/modal/PlayAccountModal', data-i18n="[title]nav.account")
//if me.isAdmin()
// button.btn.settings(data-toggle='coco-modal', data-target='play/modal/PlaySettingsModal', data-i18n="[title]play.settings")
if me.get('anonymous', true)

View file

@ -16,6 +16,6 @@ h1.text-center.hint-title
h2.text-center.hint-pagination #{view.state.get('hintIndex')+1} / #{view.hintsState.get('total')}
.col-md-4
if view.state.get('hintIndex') < view.hintsState.get('total') - 1
button.next-btn.btn.btn-illustrated.pull-right(data-i18n="about.next")
button.next-btn.btn.btn-illustrated.pull-right(data-i18n="play.next")
.clearfix

View file

@ -1,7 +1,7 @@
extends /templates/core/modal-base
block modal-header-content
h3(data-i18n="play.account") Account
h3(data-i18n="nav.account") Account
block modal-body-content
#account-settings-view

View file

@ -39,7 +39,7 @@
.stat-value.hero-status-value(data-i18n=hero.restricted ? 'inventory.restricted_title' : (hero.purchasable ? 'play.purchasable' : (hero.locked ? 'play.locked' : 'play.available')))
.hero-stat-row
.stat-label(data-i18n='choose_hero.hero_type')
.stat-label(data-i18n='editor.level_components_type')
.stat-value(data-i18n='general.' +hero.class)
.hero-stat-row

View file

@ -38,4 +38,4 @@ block modal-footer-content
if state.get('passwordChanged') || state.get('emailSent')
span(data-i18n="modal.close")
else
span(data-i18n="modal.cancel")
span(data-i18n="common.cancel")

View file

@ -14,7 +14,7 @@ block content
form#request-form(class=showDone ? 'hide' : '')
.row
.col-md-offset-2.col-md-8
h3.text-center(data-i18n="teachers_quote.title")
h3.text-center(data-i18n="new_home.request_demo")
h4.text-center(data-i18n="[html]teachers_quote.subtitle")
if !me.isAnonymous()
@ -215,7 +215,7 @@ block content
input(type="hidden" name="nces_phone")
#buttons-row.row.m-y-2.text-center
input#submit-request-btn.btn.btn-lg.btn-primary(type="submit" data-i18n="[value]teachers_quote.title")
input#submit-request-btn.btn.btn-lg.btn-primary(type="submit" data-i18n="[value]new_home.request_demo")
#form-submit-success.text-center(class=showDone ? '' : 'hide')
h3(data-i18n="teachers_quote.thanks_header")

View file

@ -48,8 +48,6 @@ module.exports = class HomeView extends RootView
if isHourOfCodeWeek and (@isNewPlayer() or (me.isStudent() and me.isAnonymous()))
# Go/return straight to playing single-player HoC course on Play click
@playURL = '/hoc?go=true'
@alternatePlayURL = '/play'
@alternatePlayText = 'home.play_campaign_version'
else if me.isStudent()
# Save players who might be in a classroom from getting into the campaign
@playURL = '/courses'

View file

@ -246,7 +246,7 @@ module.exports = class BasicInfoView extends CocoView
@$('input').attr('disabled', true)
displayFormStandingBy: ->
@$('#create-account-btn').text($.i18n.t('signup.create_account')).attr('disabled', false)
@$('#create-account-btn').text($.i18n.t('login.sign_up')).attr('disabled', false)
@$('input').attr('disabled', false)
onClickSsoSignupButton: (e) ->