From f3a76da47cbb4cbba0bfcc1f9b90bc132a3c6ee5 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 16 Mar 2014 20:50:49 -0700 Subject: [PATCH] Added i18n for multiplayer launch modal. --- app/locale/en.coffee | 22 +++++++++++++++- app/templates/home.jade | 4 +-- app/templates/multiplayer_launch_modal.jade | 28 ++++++++++++--------- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 497282870..a03ad5e7c 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -15,7 +15,6 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr modal: close: "Close" okay: "Okay" - so_ready: "I Am So Ready for This" not_found: page_not_found: "Page not found" @@ -67,6 +66,12 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr no_ie: "CodeCombat does not run in Internet Explorer 9 or older. Sorry!" no_mobile: "CodeCombat wasn't designed for mobile devices and may not work!" play: "Play" + old_browser: "Uh oh, your browser is too old to run CodeCombat. Sorry!" + old_browser_suffix: "You can try anyway, but it probably won't work." + campaign: "Campaign" + for_beginners: "For Beginners" + multiplayer: "Multiplayer" + for_developers: "For Developers" play: choose_your_level: "Choose Your Level" @@ -83,6 +88,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr campaign_player_created_description: "... in which you battle against the creativity of your fellow Artisan Wizards." level_difficulty: "Difficulty: " play_as: "Play As " + spectate: "Spectate" contact: contact_us: "Contact CodeCombat" @@ -534,3 +540,17 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr simple_ai: "Simple AI" warmup: "Warmup" vs: "VS" + + multiplayer_launch: + introducing_dungeon_arena: "Introducing Dungeon Arena" + new_way: "March 17, 2014: The new way to compete with code." + to_battle: "To Battle, Developers!" + modern_day_sorcerer: "You know how to code? That's badass. You're a modern-day sorcerer! Isn't about time that you used your magic coding powers to command your minions in epic combat? And we're not talking robots here." + arenas_are_here: "CodeCombat head-to-head multiplayer arenas are here." + ladder_explanation: "Choose your heroes, enchant your human or ogre armies, and climb your way over defeated fellow Wizards to reach the top of the ladders–then challenge your friends in our glorious, asynchronous multiplayer coding arenas. If you're feeling creative, you can even" + fork_our_arenas: "fork our arenas" + create_worlds: "and create your own worlds." + javascript_rusty: "JavaScript a bit rusty? Don't worry; there's a" + tutorial: "tutorial" + new_to_programming: ". New to programming? Hit our beginner campaign to skill up." + so_ready: "I Am So Ready for This" diff --git a/app/templates/home.jade b/app/templates/home.jade index bdc626fb4..7181e7485 100644 --- a/app/templates/home.jade +++ b/app/templates/home.jade @@ -28,7 +28,7 @@ block content else img(src="/images/pages/home/campaign_notext.jpg").img-rounded h3(data-i18n="home.campaign") Campaign - h4(data-i18n="home.for-beginners") For Beginners + h4(data-i18n="home.for_beginners") For Beginners .play-text(data-i18n="home.play") Play a#multiplayer(href="/play/ladder/dungeon-arena") @@ -38,7 +38,7 @@ block content else img(src="/images/pages/home/multiplayer_notext.jpg").img-rounded h3(data-i18n="home.multiplayer") Multiplayer - h4(data-i18n="home.for-developers") For Developers + h4(data-i18n="home.for_developers") For Developers .play-text(data-i18n="home.play") Play .clearfix diff --git a/app/templates/multiplayer_launch_modal.jade b/app/templates/multiplayer_launch_modal.jade index 775b680b0..15890a585 100644 --- a/app/templates/multiplayer_launch_modal.jade +++ b/app/templates/multiplayer_launch_modal.jade @@ -1,27 +1,31 @@ extends /templates/modal/modal_base block modal-header-content - h1 Introducing Dungeon Arena - em March 17, 2014: The new way to compete with code. + h1(data-i18n="multiplayer_launch.introducing_dungeon_arena") Introducing Dungeon Arena + em(data-i18n="multiplayer_launch.new_way") March 17, 2014: The new way to compete with code. block modal-body-content - h3 To Battle, Developers! + h3(data-i18n="multiplayer_launch.to_battle") To Battle, Developers! - p You know how to code? That's badass. You're a modern-day sorcerer! Isn't about time that you used your magic coding powers to command your minions in epic combat? And we're not talking robots here. + p(data-i18n="multiplayer_launch.modern_day_sorcerer") You know how to code? That's badass. You're a modern-day sorcerer! Isn't about time that you used your magic coding powers to command your minions in epic combat? And we're not talking robots here. p - strong CodeCombat head-to-head multiplayer arenas are here. - | Choose your heroes, enchant your human or ogre armies, and climb your way over defeated fellow Wizards to reach the top of the ladders–then challenge your friends in our glorious, asynchronous multiplayer coding arenas. If you're feeling creative, you can even - a(href="/editor/level/dungeon-arena") fork our arenas - | and create your own worlds. + strong(data-i18n="multiplayer_launch.arenas_are_here") CodeCombat head-to-head multiplayer arenas are here. + | + span(data-i18n="multiplayer_launch.ladder_explanation") Choose your heroes, enchant your human or ogre armies, and climb your way over defeated fellow Wizards to reach the top of the ladders–then challenge your friends in our glorious, asynchronous multiplayer coding arenas. If you're feeling creative, you can even + | + a(href="/editor/level/dungeon-arena", data-i18n="multiplayer_launch.fork_our_arenas") fork our arenas + | + span(data-i18n="multiplayer_launch.create_worlds") and create your own worlds. p - | JavaScript a bit rusty? Don't worry; there's a - a(href="/play/level/dungeon-arena-tutorial") tutorial - | . New to programming? Hit our beginner campaign to skill up. + span(data-i18n="multiplayer_launch.javascript_rusty") JavaScript a bit rusty? Don't worry; there's a + | + a(href="/play/level/dungeon-arena-tutorial", data-i18n="multiplayer_launch.tutorial") tutorial + span(data-i18n="multiplayer_launch.new_to_programming") . New to programming? Hit our beginner campaign to skill up. block modal-footer-content - button.btn.btn-large.btn-success(type="button", data-dismiss="modal", aria-hidden="true", data-i18n="modal.so_ready") I Am So Ready for This + button.btn.btn-large.btn-success(type="button", data-dismiss="modal", aria-hidden="true", data-i18n="multiplayer_launch.so_ready") I Am So Ready for This