Merge branch 'master' into production

This commit is contained in:
Nick Winter 2016-05-24 12:00:40 -07:00
commit a932a619d5
49 changed files with 1132 additions and 824 deletions

View file

@ -12,4 +12,7 @@ module.exports = class LevelCollection extends CocoCollection
fetchForClassroomAndCourse: (classroomID, courseID, options={}) -> fetchForClassroomAndCourse: (classroomID, courseID, options={}) ->
options.url = "/db/classroom/#{classroomID}/courses/#{courseID}/levels" options.url = "/db/classroom/#{classroomID}/courses/#{courseID}/levels"
@fetch(options) @fetch(options)
fetchForCampaign: (campaignSlug, options={}) ->
options.url = "/db/campaign/#{campaignSlug}/levels"
@fetch(options)

View file

@ -43,6 +43,12 @@ module.exports = class CocoRouter extends Backbone.Router
'admin/pending-patches': go('admin/PendingPatchesView') 'admin/pending-patches': go('admin/PendingPatchesView')
'admin/codelogs': go('admin/CodeLogsView') 'admin/codelogs': go('admin/CodeLogsView')
'artisans': go('artisans/ArtisansView')
'artisans/level-tasks': go('artisans/LevelTasksView')
'artisans/solution-problems': go('artisans/SolutionProblemsView')
'artisans/thang-tasks': go('artisans/ThangTasksView')
'beta': go('HomeView') 'beta': go('HomeView')
'careers': => window.location.href = 'https://jobs.lever.co/codecombat' 'careers': => window.location.href = 'https://jobs.lever.co/codecombat'

View file

@ -238,10 +238,8 @@ codeLanguages =
javascript: 'ace/mode/javascript' javascript: 'ace/mode/javascript'
coffeescript: 'ace/mode/coffee' coffeescript: 'ace/mode/coffee'
python: 'ace/mode/python' python: 'ace/mode/python'
clojure: 'ace/mode/clojure'
lua: 'ace/mode/lua' lua: 'ace/mode/lua'
java: 'ace/mode/java' java: 'ace/mode/java'
io: 'ace/mode/text'
class CodeLanguagesObjectTreema extends TreemaNode.nodeMap.object class CodeLanguagesObjectTreema extends TreemaNode.nodeMap.object
childPropertiesAvailable: -> childPropertiesAvailable: ->

View file

@ -267,9 +267,7 @@ module.exports.aceEditModes = aceEditModes =
'coffeescript': 'ace/mode/coffee' 'coffeescript': 'ace/mode/coffee'
'python': 'ace/mode/python' 'python': 'ace/mode/python'
'java': 'ace/mode/java' 'java': 'ace/mode/java'
'clojure': 'ace/mode/clojure'
'lua': 'ace/mode/lua' 'lua': 'ace/mode/lua'
'io': 'ace/mode/text'
'java': 'ace/mode/java' 'java': 'ace/mode/java'
module.exports.initializeACE = (el, codeLanguage) -> module.exports.initializeACE = (el, codeLanguage) ->
@ -294,13 +292,9 @@ module.exports.initializeACE = (el, codeLanguage) ->
session.setNewLineMode 'unix' session.setNewLineMode 'unix'
return editor return editor
module.exports.capitalLanguages = capitalLanguages = module.exports.capitalLanguages = capitalLanguages =
'javascript': 'JavaScript' 'javascript': 'JavaScript'
'coffeescript': 'CoffeeScript' 'coffeescript': 'CoffeeScript'
'python': 'Python' 'python': 'Python'
'java': 'Java' 'java': 'Java'
'clojure': 'Clojure'
'lua': 'Lua' 'lua': 'Lua'
'io': 'Io'

View file

@ -126,8 +126,7 @@ module.exports = class LevelLoader extends CocoClass
@sessionResource = @supermodel.loadModel(session, 'level_session', {cache: false}) @sessionResource = @supermodel.loadModel(session, 'level_session', {cache: false})
@session = @sessionResource.model @session = @sessionResource.model
if @opponentSessionID if @opponentSessionID
opponentURL = "/db/level.session/#{@opponentSessionID}" opponentURL = "/db/level.session/#{@opponentSessionID}?interpret=true"
opponentURL += "?interpret=true" if @spectateMode or utils.getQueryVariable 'esper'
opponentSession = new LevelSession().setURL opponentURL opponentSession = new LevelSession().setURL opponentURL
opponentSession.project = session.project if @headless opponentSession.project = session.project if @headless
@opponentSessionResource = @supermodel.loadModel(opponentSession, 'opponent_session', {cache: false}) @opponentSessionResource = @supermodel.loadModel(opponentSession, 'opponent_session', {cache: false})
@ -158,6 +157,8 @@ module.exports = class LevelLoader extends CocoClass
code[if session.get('team') is 'humans' then 'hero-placeholder' else 'hero-placeholder-1'].plan = uncompressed code[if session.get('team') is 'humans' then 'hero-placeholder' else 'hero-placeholder-1'].plan = uncompressed
session.set 'code', code session.set 'code', code
session.unset 'interpret' session.unset 'interpret'
if session.get('codeLanguage') in ['io', 'clojure']
session.set 'codeLanguage', 'python'
if session is @session if session is @session
@addSessionBrowserInfo session @addSessionBrowserInfo session
# hero-ladder games require the correct session team in level:loaded # hero-ladder games require the correct session team in level:loaded

View file

@ -7,14 +7,6 @@ module.exports.createAetherOptions = (options) ->
throw new Error 'Specify a function name to create an Aether instance' unless options.functionName throw new Error 'Specify a function name to create an Aether instance' unless options.functionName
throw new Error 'Specify a code language to create an Aether instance' unless options.codeLanguage throw new Error 'Specify a code language to create an Aether instance' unless options.codeLanguage
useInterpreter = options.useInterpreter
defaultToEsper = true #switch options.codeLanguage
# when 'python' then me.level() < 15 # Esper currently works well until using range()
# when 'javascript' then me.level() < 22 # Esper currently works well until using hero.myFn = function() pattern
# when 'lua' then me.level() < 10 # Functions don't work in Esper yet, can't play forest function levels
# when 'coffeescript' then false # CoffeeScript has a toNative error if it ever finishes plan(), and also @fn = -> pattern doesn't work
# when 'clojure' then false # No Clojure support
useInterpreter ?= !!utils.getQueryVariable 'esper', defaultToEsper
aetherOptions = aetherOptions =
functionName: options.functionName functionName: options.functionName
protectAPI: not options.skipProtectAPI protectAPI: not options.skipProtectAPI
@ -37,7 +29,7 @@ module.exports.createAetherOptions = (options) ->
#functionParameters: # TODOOOOO #functionParameters: # TODOOOOO
executionLimit: 3 * 1000 * 1000 executionLimit: 3 * 1000 * 1000
language: options.codeLanguage language: options.codeLanguage
useInterpreter: useInterpreter useInterpreter: true
parameters = functionParameters[options.functionName] parameters = functionParameters[options.functionName]
unless parameters unless parameters
console.warn "Unknown method #{options.functionName}: please add function parameters to lib/aether_utils.coffee." console.warn "Unknown method #{options.functionName}: please add function parameters to lib/aether_utils.coffee."

View file

@ -443,7 +443,7 @@ module.exports = class Simulator extends CocoClass
aether.transpile '' aether.transpile ''
createAether: (methodName, method, useProtectAPI, codeLanguage) -> createAether: (methodName, method, useProtectAPI, codeLanguage) ->
aetherOptions = createAetherOptions functionName: methodName, codeLanguage: codeLanguage, skipProtectAPI: not useProtectAPI, useInterpreter: true aetherOptions = createAetherOptions functionName: methodName, codeLanguage: codeLanguage, skipProtectAPI: not useProtectAPI
return new Aether aetherOptions return new Aether aetherOptions
class SimulationTask class SimulationTask

View file

@ -645,9 +645,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
python_blurb: "Simple yet powerful, great for beginners and experts." python_blurb: "Simple yet powerful, great for beginners and experts."
javascript_blurb: "The language of the web. (Not the same as Java.)" javascript_blurb: "The language of the web. (Not the same as Java.)"
coffeescript_blurb: "Nicer JavaScript syntax." coffeescript_blurb: "Nicer JavaScript syntax."
clojure_blurb: "A modern Lisp."
lua_blurb: "Game scripting language." lua_blurb: "Game scripting language."
io_blurb: "Simple but obscure."
java_blurb: "(Subscriber Only) Android and enterprise." java_blurb: "(Subscriber Only) Android and enterprise."
status: "Status" status: "Status"
hero_type: "Type" hero_type: "Type"

View file

@ -102,7 +102,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
blog: "Блог" blog: "Блог"
forum: "Форум" forum: "Форум"
account: "Налог" account: "Налог"
# my_account: "My Account" my_account: "Мој налог"
profile: "Профил" profile: "Профил"
stats: "Статистика" stats: "Статистика"
code: "Код" code: "Код"
@ -112,7 +112,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
about: "О нама" about: "О нама"
contact: "Контакт" contact: "Контакт"
twitter_follow: "Прати" twitter_follow: "Прати"
# students: "Students" students: "Ученици"
teachers: "Учитељи" teachers: "Учитељи"
careers: "Каријере" careers: "Каријере"
facebook: "Фејсбук" facebook: "Фејсбук"
@ -262,7 +262,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
login_switch: "Већ имаш налог?" login_switch: "Већ имаш налог?"
school_name: "Име школе и града" school_name: "Име школе и града"
optional: "опционо" optional: "опционо"
# school_name_placeholder: "Example High School, Springfield, IL" school_name_placeholder: "Средња школа, Место, Држава"
or_sign_up_with: "или се пријави преко" or_sign_up_with: "или се пријави преко"
connected_gplus_header: "Успешно си се повезао са Гугл+!" connected_gplus_header: "Успешно си се повезао са Гугл+!"
connected_gplus_p: "Заврши пријаву да би могао да се улогујеш са својим Гугл+ налогом." connected_gplus_p: "Заврши пријаву да би могао да се улогујеш са својим Гугл+ налогом."
@ -271,7 +271,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
connected_facebook_p: "Заврши пријаву да би могао да се улогујеш са својим Фејсбук налогом." connected_facebook_p: "Заврши пријаву да би могао да се улогујеш са својим Фејсбук налогом."
facebook_exists: "Већ имаш налог који је повезан са Фејсбуком!" facebook_exists: "Већ имаш налог који је повезан са Фејсбуком!"
hey_students: "Ученици, упишите код за разред од вашег учитеља." hey_students: "Ученици, упишите код за разред од вашег учитеља."
# birthday: "Birthday" birthday: "Датум рођења"
recover: recover:
recover_account_title: "Поврати налог" recover_account_title: "Поврати налог"
@ -298,7 +298,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
publish: "Објави" publish: "Објави"
create: "Направи" create: "Направи"
# fork: "Fork" # fork: "Fork"
play: "Нивои" # When used as an action verb, like "Play next level" play: "Играј" # When used as an action verb, like "Play next level"
retry: "Покушај поново" retry: "Покушај поново"
actions: "Радње" actions: "Радње"
info: "Инфо" info: "Инфо"
@ -425,13 +425,13 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
victory_new_item: "Новa ствар" victory_new_item: "Новa ствар"
# victory_viking_code_school: "Holy smokes, that was a hard level you just beat! If you aren't already a software developer, you should be. You just got fast-tracked for acceptance with Viking Code School, where you can take your skills to the next level and become a professional web developer in 14 weeks." # victory_viking_code_school: "Holy smokes, that was a hard level you just beat! If you aren't already a software developer, you should be. You just got fast-tracked for acceptance with Viking Code School, where you can take your skills to the next level and become a professional web developer in 14 weeks."
victory_become_a_viking: "Постани Викинг" victory_become_a_viking: "Постани Викинг"
# victory_no_progress_for_teachers: "Progress is not saved for teachers. But, you can add a student account to your classroom for yourself." victory_no_progress_for_teachers: "Напредак се не чува за учитеље, али можеш додати ученички профил за себе у свој разред."
guide_title: "Водич" guide_title: "Водич"
tome_cast_button_run: "Покрени" tome_cast_button_run: "Покрени"
tome_cast_button_running: "Покреће се" tome_cast_button_running: "Покреће се"
tome_cast_button_ran: "Покренуто" tome_cast_button_ran: "Покренуто"
tome_submit_button: "Потврди" tome_submit_button: "Потврди"
# tome_reload_method: "Reload original code for this method" # Title text for individual method reload button. tome_reload_method: "Поново учитај оригинални код за овај метод" # Title text for individual method reload button.
tome_select_method: "Изабери метод" tome_select_method: "Изабери метод"
tome_see_all_methods: "Види све методе које можеш да измениш" # Title text for method list selector (shown when there are multiple programmable methods). tome_see_all_methods: "Види све методе које можеш да измениш" # Title text for method list selector (shown when there are multiple programmable methods).
tome_select_a_thang: "Изабери неког за " tome_select_a_thang: "Изабери неког за "
@ -449,8 +449,8 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
time_goto: "Иди на:" time_goto: "Иди на:"
non_user_code_problem_title: "Није могуће учитати ниво" non_user_code_problem_title: "Није могуће учитати ниво"
infinite_loop_title: "Бесконачна петља откривена" infinite_loop_title: "Бесконачна петља откривена"
# infinite_loop_description: "The initial code to build the world never finished running. It's probably either really slow or has an infinite loop. Or there might be a bug. You can either try running this code again or reset the code to the default state. If that doesn't fix it, please let us know." infinite_loop_description: "Иницијални код за грађење света се није никад завршио. Вероватно је јако спор или има бесконачну петљу. Или можда постоји грешка. Можеш да покушаш да покренеш овај код поново или да ресетујеш код на уобичајено стање. Дај нам до знања ако га то не поправи."
# check_dev_console: "You can also open the developer console to see what might be going wrong." check_dev_console: "Можеш такође да отвориш конзолу за девелопере да видиш шта не ваља."
check_dev_console_link: "(инструкције)" check_dev_console_link: "(инструкције)"
infinite_loop_try_again: "Покушај поново" infinite_loop_try_again: "Покушај поново"
infinite_loop_reset_level: "Ресетуј ниво" infinite_loop_reset_level: "Ресетуј ниво"
@ -563,92 +563,92 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
equip: "Опреми" equip: "Опреми"
unequip: "Скини" unequip: "Скини"
# buy_gems: buy_gems:
# few_gems: "A few gems" few_gems: "Неколико драгуља"
# pile_gems: "Pile of gems" pile_gems: "Гомила драгуља"
# chest_gems: "Chest of gems" chest_gems: "Ковчег драгуља"
# purchasing: "Purchasing..." purchasing: "Куповина је у току..."
# declined: "Your card was declined" declined: "Ваша картица је одбијена"
# retrying: "Server error, retrying." retrying: "Грешка на серверу, поновни покушај."
# prompt_title: "Not Enough Gems" prompt_title: "Недовољно драгуља"
# prompt_body: "Do you want to get more?" prompt_body: "Да ли желиш да узмеш још?"
# prompt_button: "Enter Shop" prompt_button: "Уђи у продавницу"
# recovered: "Previous gems purchase recovered. Please refresh the page." recovered: "Претходна куповина драгуља је надокнађена. Освежите страницу."
# price: "x{{gems}} / mo" #price: "x{{gems}} месечно"
# subscribe: subscribe:
# comparison_blurb: "Sharpen your skills with a CodeCombat subscription!" comparison_blurb: "Унапреди своје вештине са CodeCombat претплатом!"
# feature1: "__levelsCount__+ basic levels across __worldsCount__ worlds" feature1: "__levelsCount__+ основних нивоа кроз __worldsCount__ светова"
# feature2: "__heroesCount__ powerful <strong>new heroes</strong> with unique skills!" feature2: "__heroesCount__ моћних <strong>нових хероја</strong> са јединственим вештинама!"
# feature3: "__bonusLevelsCount__+ bonus levels" feature3: "__bonusLevelsCount__+ бонус нивоа"
# feature4: "<strong>{{gems}} bonus gems</strong> every month!" feature4: "<strong>{{gems}} бонус драгуља</strong> сваког месеца!"
# feature5: "Video tutorials" feature5: "Видео туторијали"
# feature6: "Premium email support" feature6: "Премијум имејл подршка"
# feature7: "Private <strong>Clans</strong>" feature7: "Приватни <strong>Кланови</strong>"
# feature8: "<strong>No ads!</strong>" feature8: "<strong>Без реклама!</strong>"
# free: "Free" free: "Бесплатан"
# month: "month" month: "месец"
# must_be_logged: "You must be logged in first. Please create an account or log in from the menu above." must_be_logged: "Мораш прво бити пријављен. Направи налог или се пријави у менију изнад."
# subscribe_title: "Subscribe" subscribe_title: "Претплати се"
# unsubscribe: "Unsubscribe" unsubscribe: "Одјави претплату"
# confirm_unsubscribe: "Confirm Unsubscribe" confirm_unsubscribe: "Потврди одјаву претплате"
# never_mind: "Never Mind, I Still Love You" never_mind: "Није важно, и даље те волим"
# thank_you_months_prefix: "Thank you for supporting us these last" thank_you_months_prefix: "Хвала што нас подржаваш ових последњих"
# thank_you_months_suffix: "months." thank_you_months_suffix: "месеци."
# thank_you: "Thank you for supporting CodeCombat." thank_you: "Хвала што подржаваш CodeCombat."
# sorry_to_see_you_go: "Sorry to see you go! Please let us know what we could have done better." sorry_to_see_you_go: "Жао нам је што идеш! Дај нам до знања шта можемо боље да урадимо."
# unsubscribe_feedback_placeholder: "O, what have we done?" unsubscribe_feedback_placeholder: "O, шта смо урадили?"
# parent_button: "Ask your parent" parent_button: "Питај свог родитеља"
# parent_email_description: "We'll email them so they can buy you a CodeCombat subscription." parent_email_description: "Послаћемо им мејл како би могли да ти купе CodeCombat претплату."
# parent_email_input_invalid: "Email address invalid." parent_email_input_invalid: "Имејл адреса је неисправна."
# parent_email_input_label: "Parent email address" parent_email_input_label: "Имејл адреса родитеља"
# parent_email_input_placeholder: "Enter parent email" parent_email_input_placeholder: "Укуцај имејл родитеља"
# parent_email_send: "Send Email" parent_email_send: "Пошаљи мејл"
# parent_email_sent: "Email sent!" parent_email_sent: "Мејл послат!"
# parent_email_title: "What's your parent's email?" parent_email_title: "Који је имејл твог родитеља?"
# parents: "For Parents" parents: "За родитеље"
# parents_title: "Dear Parent: Your child is learning to code. Will you help them continue?" parents_title: "Драги родитељу: Ваше дете учи да кодира. Да ли ћете му помоћи да настави?"
# parents_blurb1: "Your child has played __nLevels__ levels and learned programming basics. Help cultivate their interest and buy them a subscription so they can keep playing." parents_blurb1: "Ваше дете је одиграло __nLevels__ нивоа и научило основе програмирања. Помозите му да негује своју заинтересованост и купите му претплату како би могло да настави да игра."
# parents_blurb1a: "Computer programming is an essential skill that your child will undoubtedly use as an adult. By 2020, basic software skills will be needed by 77% of jobs, and software engineers are in high demand across the world. Did you know that Computer Science is the highest-paid university degree?" parents_blurb1a: "Компјутерско програмирање је есенцијална вештина коју ће Ваше дете без сумње користити кад одрасте. До 2020, основне софтверске вештине ће бити потребне за 77% послова, и софтверски инжењери су веома тражени широм света. Да ли сте знали да су Компјутерске науке најплаћенија факултетска диплома?"
# parents_blurb2: "For ${{price}} USD/mo, your child will get new challenges every week and personal email support from professional programmers." parents_blurb2: "За ${{price}} америчких долара месечно, Ваше дете ће добити нове изазове сваке недеље и личну имејл подршку од професионалних програмера."
# parents_blurb3: "No Risk: 100% money back guarantee, easy 1-click unsubscribe." parents_blurb3: "Без ризика: 100% гаранција повраћаја новца, једноставна одјава претплате једним кликом."
# payment_methods: "Payment Methods" payment_methods: "Методе плаћања"
# payment_methods_title: "Accepted Payment Methods" payment_methods_title: "Прихваћене методе плаћања"
# payment_methods_blurb1: "We currently accept credit cards and Alipay. You can also PayPal {{three_month_price}} USD to nick@codecombat.com with your account email in the memo to purchase three months' subscription and gems, or ${{year_price}} for a year." payment_methods_blurb1: "Тренутно прихватамо кредитне картице и Alipay. Можете такође користити PayPal да платите {{three_month_price}} америчких долара на nick@codecombat.com са вашим имејлом од налога у допису да бисте купили претплату на три месеца и драгуље, или ${{year_price}} за годину дана."
# payment_methods_blurb2: "If you require an alternate form of payment, please contact" payment_methods_blurb2: "Ако Вам је потребан алтернативни начин плаћања, контактирајте нас"
# sale_button: "Sale!" sale_button: "Распродаја!"
# sale_button_title: "Save $21 when you purchase a 1 year subscription" sale_button_title: "Уштедите $21 када купите претплату за годину дана"
# stripe_description: "Monthly Subscription" stripe_description: "Месечна претплата"
# stripe_description_year_sale: "1 Year Subscription (${{discount}} discount)" stripe_description_year_sale: "Годишња претплата (${{discount}} попуста)"
# subscription_required_to_play: "You'll need a subscription to play this level." subscription_required_to_play: "Треба ти претплата да би играо овај ниво."
# unlock_help_videos: "Subscribe to unlock all video tutorials." unlock_help_videos: "Претплати се да откључаш све видео туторијале."
# personal_sub: "Personal Subscription" # Accounts Subscription View below personal_sub: "Лична претплата" # Accounts Subscription View below
# loading_info: "Loading subscription information..." loading_info: "Учитавање информација о претплати..."
# managed_by: "Managed by" managed_by: "Управља"
# will_be_cancelled: "Will be cancelled on" will_be_cancelled: "Биће поништено"
# currently_free: "You currently have a free subscription" currently_free: "Тренутно имате бесплатну претплату"
# currently_free_until: "You currently have a subscription until" currently_free_until: "Тренутно имате претплату до"
# was_free_until: "You had a free subscription until" was_free_until: "Имали сте бесплатну претплату до"
# managed_subs: "Managed Subscriptions" managed_subs: "Успешне претплате"
# subscribing: "Subscribing..." subscribing: "Претплата је у току..."
# current_recipients: "Current Recipients" current_recipients: "Тренутни примаоци"
# unsubscribing: "Unsubscribing" unsubscribing: "Одјава претплате"
# subscribe_prepaid: "Click Subscribe to use prepaid code" subscribe_prepaid: "Кликните на Претплата да искористите припејд код"
# using_prepaid: "Using prepaid code for monthly subscription" using_prepaid: "Коришћење припејд кода за месечну претплату"
choose_hero: choose_hero:
choose_hero: "Изабери свог хероја" choose_hero: "Изабери свог хероја"
programming_language: "Програмски језик" programming_language: "Програмски језик"
programming_language_description: "Који програмски језик желиш да користиш у игри?" programming_language_description: "Који програмски језик желиш да користиш у игри?"
# default: "Default" default: "Подразумевани"
experimental: "Експериментални" experimental: "Експериментални"
# python_blurb: "Simple yet powerful, great for beginners and experts." python_blurb: "Једноставан, а моћан, одличан за почетнике и експерте."
# javascript_blurb: "The language of the web. (Not the same as Java.)" javascript_blurb: "Језик интернета. (Није исто што и Java.)"
# coffeescript_blurb: "Nicer JavaScript syntax." coffeescript_blurb: "Лепша JavaScript синтакса."
# clojure_blurb: "A modern Lisp." clojure_blurb: "Модерни Lisp."
# lua_blurb: "Game scripting language." lua_blurb: "Скриптни језик за игре."
# io_blurb: "Simple but obscure." io_blurb: "Једноставан, али непознат."
# java_blurb: "(Subscriber Only) Android and enterprise." java_blurb: "(Само за претплатнике) Андроид и предузетништво."
status: "Статус" status: "Статус"
hero_type: "Врста" hero_type: "Врста"
weapons: "Оружја" weapons: "Оружја"
@ -656,7 +656,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
weapons_ranger: "Самострели, пушке - Велики домет, без магије" weapons_ranger: "Самострели, пушке - Велики домет, без магије"
weapons_wizard: "Штапићи, штапови - Велики домет, магија" weapons_wizard: "Штапићи, штапови - Велики домет, магија"
attack: "Напад" # Can also translate as "Attack" attack: "Напад" # Can also translate as "Attack"
# health: "Health" health: "Здравље"
speed: "Брзина" speed: "Брзина"
regeneration: "Регенерација" regeneration: "Регенерација"
range: "Домет" # As in "attack or visual range" range: "Домет" # As in "attack or visual range"
@ -664,11 +664,11 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
# backstab: "Backstab" # As in "this dagger does this much backstab damage" # backstab: "Backstab" # As in "this dagger does this much backstab damage"
skills: "Вештине" skills: "Вештине"
attack_1: "Наноси" attack_1: "Наноси"
# attack_2: "of listed" attack_2: "од наведене"
# attack_3: "weapon damage." attack_3: "штете оружја."
# health_1: "Gains" health_1: "Добија"
# health_2: "of listed" health_2: "од наведеног"
# health_3: "armor health." health_3: "здравља оклопа."
speed_1: "Помера се" speed_1: "Помера се"
speed_2: "метара у секунди." speed_2: "метара у секунди."
available_for_purchase: "Доступно за куповину" # Shows up when you have unlocked, but not purchased, a hero in the hero store available_for_purchase: "Доступно за куповину" # Shows up when you have unlocked, but not purchased, a hero in the hero store
@ -702,181 +702,181 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
# returns: "Returns" # returns: "Returns"
# granted_by: "Granted by" # granted_by: "Granted by"
# save_load: save_load:
# granularity_saved_games: "Saved" granularity_saved_games: "Сачувано"
# granularity_change_history: "History" granularity_change_history: "Историја"
# options: options:
# general_options: "General Options" # Check out the Options tab in the Game Menu while playing a level general_options: "Општа подешавања" # Check out the Options tab in the Game Menu while playing a level
# volume_label: "Volume" volume_label: "Јачина звука"
# music_label: "Music" music_label: "Музика"
# music_description: "Turn background music on/off." music_description: "Укључи/искључи позадинску музику."
# editor_config_title: "Editor Configuration" editor_config_title: "Едитор конфигурација"
# editor_config_keybindings_label: "Key Bindings" editor_config_keybindings_label: "Функције тастера"
# editor_config_keybindings_default: "Default (Ace)" editor_config_keybindings_default: "Подразумевано (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." editor_config_keybindings_description: "Додаје додатне пречице познате из заједничких едитора."
# editor_config_livecompletion_label: "Live Autocompletion" editor_config_livecompletion_label: "Аутоматско довршавање у реалном времену"
# editor_config_livecompletion_description: "Displays autocomplete suggestions while typing." editor_config_livecompletion_description: "Приказује сугестију за аутоматску допуну док куцаш."
# editor_config_invisibles_label: "Show Invisibles" editor_config_invisibles_label: "Прикажи невидљиве"
# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." editor_config_invisibles_description: "Приказује невидљиве као што су размаци или табови."
# editor_config_indentguides_label: "Show Indent Guides" editor_config_indentguides_label: "Прикажи водиче за индентацију"
# editor_config_indentguides_description: "Displays vertical lines to see indentation better." editor_config_indentguides_description: "Приказује вертикалне линије да би се индентације боље виделе."
# editor_config_behaviors_label: "Smart Behaviors" editor_config_behaviors_label: "Паметна понашања"
# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." editor_config_behaviors_description: "Аутоматски довршава угласте и витичасте заграде и наводнике."
# about: about:
# main_title: "If you want to learn to program, you need to write (a lot of) code." main_title: "Ако желиш да научиш да програмираш, мораш (доста) да кодираш."
# main_description: "At CodeCombat, our job is to make sure you're doing that with a smile on your face." main_description: "У CodeCombat-у, наш посао је да будемо сигурни да да то радиш с осмехом на лицу."
# mission_link: "Mission" mission_link: "Мисија"
# team_link: "Team" team_link: "Тим"
# story_link: "Story" story_link: "Прича"
# press_link: "Press" press_link: "Прес"
# mission_title: "Our mission: make programming accessible to every student on Earth." mission_title: "Наша мисија: да учинимо програмирање доступним сваком ученику на планети."
# mission_description_1: "<strong>Programming is magic</strong>. It's the ability to create things from pure imagination. We started CodeCombat to give learners the feeling of wizardly power at their fingertips by using <strong>typed code</strong>." mission_description_1: "<strong>Програмирање је магично</strong>. То је могућност да створиш ствари из чисте имагинације. Ми смо покренули CodeCombat да бисмо дали ученицима осећај чаробњачке моћи на дохват руке користећи<strong>куцани код</strong>."
# mission_description_2: "As it turns out, that enables them to learn faster too. WAY faster. It's like having a conversation instead of reading a manual. We want to bring that conversation to every school and to <strong>every student</strong>, because everyone should have the chance to learn the magic of programming." mission_description_2: "Како се испоставља, то им омогућава да такође уче брже. МНОГО брже. То је као конверзација уместо коришћења упутства. Желимо да донесему ту конверзацију у сваку школу и <strong>сваком ученику</strong>, јер би свако требало да добије шансу да научи магију програмирања."
# team_title: "Meet the CodeCombat team" team_title: "Упознај CodeCombat тим"
# team_values: "We value open and respectful dialog, where the best idea wins. Our decisions are grounded in customer research and our process is focused on delivering tangible results for them. Everyone is hands-on, from our CEO to our Github contributors, because we value growth and learning in our team." team_values: "Ми ценимо отворен дијалог пун поштовања, где најбоља идеја побеђује. Наше одлуке су засноване на истраживању потрошача и наш процес је фокусиран на достављање опипљивих резултата за њих. Свако је практичан, од нашег генералног директора до наших Github сарадника, јер ми ценимо раст и учење у нашем тиму."
# nick_title: "Cofounder, CEO" nick_title: "Кооснивач, генерални директор"
# nick_blurb: "Motivation Guru" nick_blurb: "Мотивациони гуру"
# matt_title: "Cofounder, CTO" matt_title: "Кооснивач, технички директор"
# cat_title: "Game Designer" cat_title: "Дизајнер игара"
# cat_blurb: "Airbender" cat_blurb: "Владар ветрова"
# scott_title: "Cofounder, Software Engineer" scott_title: "Кооснивач, софтверски инжењер"
# scott_blurb: "Reasonable One" scott_blurb: "Разуман део тима"
# maka_title: "Customer Advocate" maka_title: "Заступник корисника"
# maka_blurb: "Storyteller" maka_blurb: "Приповедач"
# rob_title: "Software Engineer" rob_title: "Софтверски инжењер"
# rob_blurb: "Codes things and stuff" rob_blurb: "Кодира свашта нешто"
# josh_c_title: "Game Designer" josh_c_title: "Дизајнер игара"
# josh_c_blurb: "Designs games" josh_c_blurb: "Дизајнира игре"
# robin_title: "UX Design & Research" robin_title: "Дизајн и истраживање корисничког искуства"
# robin_blurb: "Scaffolding" robin_blurb: "Подупире скеле"
# josh_title: "Game Designer" josh_title: "Дизајнер игара"
# josh_blurb: "Floor Is Lava" josh_blurb: "Под је лава"
# phoenix_title: "Software Engineer" phoenix_title: "Софтверски инжењер"
# nolan_title: "Territory Manager" nolan_title: "Руководилац подручја"
# elliot_title: "Partnership Manager" elliot_title: "Руководилац партнерства"
# retrostyle_title: "Illustration" retrostyle_title: "Илустрација"
# retrostyle_blurb: "RetroStyle Games" retrostyle_blurb: "RetroStyle Games"
# jose_title: "Music" jose_title: "Музика"
# jose_blurb: "Taking Off" jose_blurb: "Узлеће"
# community_title: "...and our open-source community" community_title: "...и наша заједница отвореног кода"
# community_subtitle: "Over 450 contributors have helped build CodeCombat, with more joining every week!" community_subtitle: "Преко 450 сарадника је помогло да се изгради CodeCombat, и још њих се придружује сваке недеље!"
# community_description_1: "CodeCombat is a community project, with hundreds of players volunteering to create levels, contribute to our code to add features, fix bugs, playtest, and even translate the game into 50 languages so far. Employees, contributors and the site gain by sharing ideas and pooling effort, as does the open source community in general. The site is built on numerous open source projects, and we are open sourced to give back to the community and provide code-curious players a familiar project to explore and experiment with. Anyone can join the CodeCombat community! Check out our" community_description_1: "CodeCombat је пројекат заједнице, са стотинама играча који волонтирају да праве нивое, доприносе нашем коду да додају функције, исправљају грешке, тестирају игру, и чак и преводе игру на (до сад) 50 језика. Запослени, сарадници и сајт добијају путем дељења идеја и удруживањем напора, као и заједница отвореног кода у глобалу. Сајт је изграђен на бројним пројектима отвореног кода, и ми смо отвореног кода како бисмо вратили заједници и пружили радозналим-за-код играчима познати пројекат за истраживање и експериментисање.Свако може да се прикључи CodeCombat заједници! Погледај нашу"
# community_description_link: "contribute page" community_description_link: "страницу за допринос"
# community_description_2: "for more info." community_description_2: "за више информација."
# number_contributors: "Over 450 contributors have lent their support and time to this project." number_contributors: "Преко 450 сарадника је дало своју подршку и време овом пројекту."
# story_title: "Our story so far" story_title: "Наша прича до сад"
# story_subtitle: "Since 2013, CodeCombat has grown from a mere set of sketches to a living, thriving game." story_subtitle: "Од 2013, CodeCombat је израстао из обичних скупова скица у праву успешну игру."
# story_statistic_1a: "5,000,000+" story_statistic_1a: "Више од 5 000 000"
# story_statistic_1b: "total players" story_statistic_1b: "играча укупно"
# story_statistic_1c: "have started their programming journey through CodeCombat" story_statistic_1c: "је започело њихово програмерско путовање кроз CodeCombat"
# story_statistic_2a: "Weve been translated into over 50 languages — our players hail from" story_statistic_2a: "Преведени смо на преко 50 језика — наши играчи долазе из"
# story_statistic_2b: "200+ countries" story_statistic_2b: "преко 200 земаља"
# story_statistic_3a: "Together, they have written" story_statistic_3a: "Заједно, они су написали"
# story_statistic_3b: "1 billion lines of code and counting" story_statistic_3b: "једну милијарду линија кода"
# story_statistic_3c: "across many different programming languages" story_statistic_3c: "преко више различитих програмских језика"
# story_long_way_1: "Though we've come a long way..." story_long_way_1: "Иако смо прешли велики пут..."
# story_sketch_caption: "Nick's very first sketch depicting a programming game in action." story_sketch_caption: "Nick-ове прве скице које приказују програмску игру на делу."
# story_long_way_2: "we still have much to do before we complete our quest, so..." story_long_way_2: "и даље имамо доста да урадимо пре него што завршимо нашу потрагу, тако да..."
# jobs_title: "Come work with us and help write CodeCombat history!" jobs_title: "Дођи да радиш са нама и помози нам да напишему CodeCombat историју!"
# jobs_subtitle: "Don't see a good fit but interested in keeping in touch? See our \"Create Your Own\" listing." jobs_subtitle: "Не уклапа ти се ништа, али си заинтересован за остајање у контакту? Погледај наш \"Направи свој\" списак."
# jobs_benefits: "Employee Benefits" jobs_benefits: "Бенефиције за запослене"
# jobs_benefit_4: "Unlimited vacation" jobs_benefit_4: "Неограничен одмор"
# jobs_benefit_5: "Professional development and continuing education support free books and games!" jobs_benefit_5: "Професионални развој и континуирана подршка образовања - бесплатне књиге и игре!"
# jobs_benefit_6: "Medical (gold), dental, vision" # jobs_benefit_6: "Медицинско (gold), зубно, очно"
# jobs_benefit_7: "Sit-stand desks for all" jobs_benefit_7: "Sit-stand радни столови за свакога"
# jobs_benefit_9: "10-year option exercise window" # jobs_benefit_9: "10-year option exercise window"
# jobs_benefit_10: "Maternity leave: 10 weeks paid, next 6 @ 55% salary" jobs_benefit_10: "Породиљско одсуство: 10 плаћених недеља, наредних 6 недеља 55% плате"
# jobs_benefit_11: "Paternity leave: 10 weeks paid" jobs_benefit_11: "Очинско одсуство: 10 плаћених недеља"
# learn_more: "Learn More" learn_more: "Сазнај више"
# jobs_custom_title: "Create Your Own" jobs_custom_title: "Направи свој"
# jobs_custom_description: "Are you passionate about CodeCombat but don't see a job listed that matches your qualifications? Write us and show how you think you can contribute to our team. We'd love to hear from you!" jobs_custom_description: "Да ли си заинтересован за CodeCombat али не видиш од наведених послова ниједан који одговара твојим квалификацијама? Пиши нам и покажи нам како мислиш да можеш да допринесеш нашем тиму. Волели бисмо да нам се јавиш!"
# jobs_custom_contact_1: "Send us a note at" jobs_custom_contact_1: "Пошаљи нам поруку на"
# jobs_custom_contact_2: "introducing yourself and we might get in touch in the future!" jobs_custom_contact_2: "и представи се, и можда ступимо у контакт у будућности!"
# contact_title: "Press & Contact" contact_title: "Прес и контакт"
# contact_subtitle: "Need more information? Get in touch with us at" contact_subtitle: "Треба ти још информација? Ступи у контакт с нама на"
# screenshots_title: "Game Screenshots" screenshots_title: "Снимци екрана игре"
# screenshots_hint: "(click to view full size)" screenshots_hint: "(кликни да видиш пуну величину)"
# downloads_title: "Download Assets & Information" downloads_title: "Преузми средства и информације"
# about_codecombat: "About CodeCombat" about_codecombat: "О CodeCombat-у"
# logo: "Logo" logo: "Лого"
# screenshots: "Screenshots" screenshots: "Снимци екрана"
# character_art: "Character Art" character_art: "Илустрације ликова"
# download_all: "Download All" download_all: "Преузми све"
# previous: "Previous" previous: "Претходно"
# next: "Next" next: "Следеће"
# location_title: "We're located in downtown SF:" location_title: "Налазимо се у центру Сан Франциска:"
# teachers: teachers:
# who_for_title: "Who is CodeCombat for?" who_for_title: "За кога је CodeCombat?"
# who_for_1: "We recommend CodeCombat for students aged 9 and up. No prior programming experience is needed. We've designed CodeCombat to appeal to both boys and girls." who_for_1: "Ми препоручујемо CodeCombat ученицима старости 9 година и више. Претходно искуство у програмирању није потребно. Дизајнирали смо CodeCombat да се допадне и дечацима и девојчицама."
# who_for_2: "Our Courses system allows teachers to set up classrooms, track progress and assign additional content to students through a dedicated interface." who_for_2: "Наш систем Курсеви омогућава учитељима да подесе разреде, прате напредак и доделе додатни материјал ученицима кроз наменски интерфејс."
# more_info_title: "Where can I find more information?" more_info_title: "Где могу да нађем више информација?"
# more_info_1: "Our" more_info_1: "Наш"
# more_info_2: "teachers forum" more_info_2: "форум за учитеље"
# more_info_3: "is a good place to connect with fellow educators who are using CodeCombat." more_info_3: "је добро место да се повежеш са колегама едукаторима који користе CodeCombat."
# teachers_quote: teachers_quote:
# name: "Demo Form" name: "Демо формулар"
# title: "Request a Demo" title: "Затражи демо верзију"
# 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." subtitle: "Нека твоји ученици почну за мање од једног сата. Моћи ћеш да <strong>направиш разред, додаш ученике и пратиш њихов напредак</strong> док уче компјутерске науке."
# email_exists: "User exists with this email." email_exists: "Корисник постоји са овим мејлом."
# phone_number: "Phone number" phone_number: "Број телефона"
# phone_number_help: "Where can we reach you during the workday?" phone_number_help: "Где можемо да те добијемо током радног дана?"
# primary_role_label: "Your Primary Role" primary_role_label: "Твоја примарна улога"
# role_default: "Select Role" role_default: "Изабери улогу"
# primary_role_default: "Select Primary Role" primary_role_default: "Изабери примарну улогу"
# purchaser_role_default: "Select Purchaser Role" purchaser_role_default: "Изабери куповну улогу"
# tech_coordinator: "Technology coordinator" tech_coordinator: "Технички координатор"
# advisor: "Advisor" advisor: "Саветннк"
# principal: "Principal" principal: "Директор"
# superintendent: "Superintendent" superintendent: "Управник"
# parent: "Parent" parent: "Родитељ"
# purchaser_role_label: "Your Purchaser Role" purchaser_role_label: "Твоја куповна улога"
# influence_advocate: "Influence/Advocate" influence_advocate: "Утицај/заступник"
# evaluate_recommend: "Evaluate/Recommend" evaluate_recommend: "Евалуација/препорука"
# approve_funds: "Approve Funds" approve_funds: "Одобрење средстава"
# no_purchaser_role: "No role in purchase decisions" no_purchaser_role: "Без улоге у куповним одлукама"
# organization_label: "Name of School/District" organization_label: "Име школе/округа"
# city: "City" city: "Град"
# state: "State" state: "Савезна држава"
# country: "Country" country: "Држава"
# num_students_help: "How many do you anticipate enrolling in CodeCombat?" num_students_help: "Колико ученика очекујеш да се упишу на CodeCombat?"
# num_students_default: "Select Range" num_students_default: "Изабери опсег"
# education_level_label: "Education Level of Students" education_level_label: "Образовни ниво ученика"
# education_level_help: "Choose as many as apply." education_level_help: "Изабери колико год важи."
# elementary_school: "Elementary School" elementary_school: "Основна школа"
# high_school: "High School" high_school: "Средња школа"
# please_explain: "(please explain)" please_explain: "(објасните)"
# middle_school: "Middle School" middle_school: "Основна школа (виши разреди)"
# college_plus: "College or higher" college_plus: "Факултет или више"
# anything_else: "Anything else we should know?" anything_else: "Још нешто што треба да знамо?"
# thanks_header: "Request Received!" thanks_header: "Захтев је примљен!"
# thanks_sub_header: "Thanks for expressing interest in CodeCombat for your school." thanks_sub_header: "Хвала на интересовању за CodeCombat за твоју школу."
# thanks_p: "We'll be in touch soon! If you need to get in contact, you can reach us at:" thanks_p: "Бићемо у контакту ускоро! Ако желиш да ступиш у контакт, можеш нас добити на:"
# back_to_classes: "Back to Classes" back_to_classes: "Назад на разреде"
# finish_signup: "Finish creating your teacher account:" finish_signup: "Заврши креирање свој учитељског налога:"
# finish_signup_p: "Create an account to set up a class, add your students, and monitor their progress as they learn computer science." finish_signup_p: "Направи налог да оснујеш разред, додаш своје ученике и пратиш њихов напредак док уче компјутерске науке."
# signup_with: "Sign up with:" signup_with: "Пријави се са:"
# connect_with: "Connect with:" connect_with: "Повежи се са:"
# conversion_warning: "WARNING: Your current account is a <em>Student Account</em>. Once you submit this form, your account will be updated to a Teacher Account." # conversion_warning: "WARNING: Your current account is a <em>Student Account</em>. Once you submit this form, your account will be updated to a Teacher Account."
# learn_more_modal: "Teacher accounts on CodeCombat have the ability to monitor student progress, assign enrollments and manage classrooms. Teacher accounts cannot be a part of a classroom - if you are currently enrolled in a class using this account, you will no longer be able to access it once you update to a Teacher Account." # learn_more_modal: "Teacher accounts on CodeCombat have the ability to monitor student progress, assign enrollments and manage classrooms. Teacher accounts cannot be a part of a classroom - if you are currently enrolled in a class using this account, you will no longer be able to access it once you update to a Teacher Account."
# create_account: "Create a Teacher Account" create_account: "Направи учитељски налог"
# 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>!" # 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" # convert_account_title: "Update to Teacher Account"
# not: "Not" # not: "Not"
# setup_a_class: "Set Up a Class" setup_a_class: "Подеси разред"
# versions: versions:
# save_version_title: "Save New Version" save_version_title: "Сачувај нову верзију"
# new_major_version: "New Major Version" new_major_version: "Нова главна верзија"
# submitting_patch: "Submitting Patch..." submitting_patch: "Подношење измене..."
# cla_prefix: "To save changes, first you must agree to our" cla_prefix: "Да би сачувао измене, прво мораш да се сложиш са нашимr"
# cla_url: "CLA" cla_url: "CLA"
# cla_suffix: "." cla_suffix: "."
# cla_agree: "I AGREE" cla_agree: "СЛАЖЕМ СЕ"
# owner_approve: "An owner will need to approve it before your changes will become visible." owner_approve: "Власник ће морати да одобри твоје измене пре него што постану видљиве."
contact: contact:
contact_us: "Контактирај CodeCombat" contact_us: "Контактирај CodeCombat"
@ -900,18 +900,18 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
autosave: "Измене се чувају аутоматски" autosave: "Измене се чувају аутоматски"
me_tab: "Ја" me_tab: "Ја"
picture_tab: "Фотографија" picture_tab: "Фотографија"
# delete_account_tab: "Delete Your Account" delete_account_tab: "Избриши свој налог"
# wrong_email: "Wrong Email" wrong_email: "Погрешан мејл"
# wrong_password: "Wrong Password" wrong_password: "Погрешна шифра"
# upload_picture: "Upload a picture" upload_picture: "Постави слику"
# delete_this_account: "Delete this account permanently" delete_this_account: "Избриши овај налог заувек"
# reset_progress_tab: "Reset All Progress" reset_progress_tab: "Ресетуј цео напредак"
# reset_your_progress: "Clear all your progress and start over" reset_your_progress: "Избриши цео свој напредак и почни поново"
# god_mode: "God Mode" # god_mode: "God Mode"
password_tab: "Шифра" password_tab: "Шифра"
emails_tab: "Мејлови" emails_tab: "Мејлови"
# admin: "Admin" # admin: "Admin"
# manage_subscription: "Click here to manage your subscription." manage_subscription: "Кликни овде да би управљао својом претплатом."
new_password: "Нова Шифра" new_password: "Нова Шифра"
new_password_verify: "Потврди" new_password_verify: "Потврди"
# type_in_email: "Type in your email to confirm account deletion." # type_in_email: "Type in your email to confirm account deletion."
@ -925,8 +925,8 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
# email_notifications_summary: "Controls for personalized, automatic email notifications related to your CodeCombat activity." # email_notifications_summary: "Controls for personalized, automatic email notifications related to your CodeCombat activity."
# email_any_notes: "Any Notifications" # email_any_notes: "Any Notifications"
# email_any_notes_description: "Disable to stop all activity notification emails." # email_any_notes_description: "Disable to stop all activity notification emails."
# email_news: "News" email_news: "Вести"
# email_recruit_notes: "Job Opportunities" email_recruit_notes: "Пословне могућности"
# email_recruit_notes_description: "If you play really well, we may contact you about getting you a (better) job." # email_recruit_notes_description: "If you play really well, we may contact you about getting you a (better) job."
contributor_emails: "Мејлови реда сарадника" contributor_emails: "Мејлови реда сарадника"
contribute_prefix: "Тражимо људе који би нам се придружили! Погледај " contribute_prefix: "Тражимо људе који би нам се придружили! Погледај "
@ -936,7 +936,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
error_saving: "Чување грешке..." error_saving: "Чување грешке..."
saved: "Измене су сачуване" saved: "Измене су сачуване"
password_mismatch: "Шифре се не слажу." password_mismatch: "Шифре се не слажу."
# password_repeat: "Please repeat your password." password_repeat: "Понови своју шифру."
# keyboard_shortcuts: # keyboard_shortcuts:
# keyboard_shortcuts: "Keyboard Shortcuts" # keyboard_shortcuts: "Keyboard Shortcuts"
@ -1661,19 +1661,19 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
payments: "Уплате" payments: "Уплате"
prepaid_codes: "Припејд кодови" prepaid_codes: "Припејд кодови"
purchased: "Купљено" purchased: "Купљено"
subscription: "Pretplata" subscription: "Претплата"
invoices: "Fakture" invoices: "Фактуре"
# service_apple: "Apple" service_apple: "Apple"
# service_web: "Web" service_web: "Web"
# paid_on: "Paid On" paid_on: "Плаћено"
# service: "Service" service: "Услуга"
price: "Цена" price: "Цена"
gems: "Драгуљи" gems: "Драгуљи"
# active: "Active" active: "Активно"
subscribed: "Претплаћени" subscribed: "Претплаћени"
unsubscribed: "Нисте претплаћени" unsubscribed: "Нисте претплаћени"
active_until: "Важи до" active_until: "Важи до"
# cost: "Cost" cost: "Цена"
next_payment: "Следећа уплата" next_payment: "Следећа уплата"
card: "Картица" card: "Картица"
status_unsubscribed_active: "Нисте претплаћени и неће Вам бити наплаћено, али Ваш налог је и даље активан за сада." status_unsubscribed_active: "Нисте претплаћени и неће Вам бити наплаћено, али Ваш налог је и даље активан за сада."
@ -1738,13 +1738,13 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
resources: resources:
level: "Ниво" level: "Ниво"
# patch: "Patch" patch: "Измена"
# patches: "Patches" patches: "Измене"
system: "Систем" system: "Систем"
systems: "Системи" systems: "Системи"
# component: "Component" component: "Компонента"
# components: "Components" components: "Компоненте"
# hero: "Hero" hero: "Херој"
campaigns: "Кампање" campaigns: "Кампање"
# concepts: # concepts:
@ -1869,19 +1869,19 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
# license: "license" # license: "license"
# oreilly: "ebook of your choice" # oreilly: "ebook of your choice"
# calendar: calendar:
# year: "Year" year: "Година"
# day: "Day" day: "Дан"
# month: "Month" month: "Месец"
# january: "January" january: "Јануар"
# february: "February" february: "Фебруар"
# march: "March" march: "Март"
# april: "April" april: "Април"
# may: "May" may: "Мај"
# june: "June" june: "Јун"
# july: "July" july: "Јул"
# august: "August" august: "Август"
# september: "September" september: "Септембар"
# october: "October" october: "Октобар"
# november: "November" november: "Новембар"
# december: "December" december: "Децембар"

View file

@ -136,14 +136,14 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
okay: "OK" okay: "OK"
not_found: not_found:
page_not_found: "không tìm thấy trang" page_not_found: "Không tìm thấy trang"
diplomat_suggestion: diplomat_suggestion:
title: "Hãy giúp chúng tôi phiên dịch CodeCombat!" # This shows up when a player switches to a non-English language using the language selector. title: "Hãy giúp chúng tôi phiên dịch CodeCombat!" # This shows up when a player switches to a non-English language using the language selector.
sub_heading: "Chúng tôi cần kỹ năng ngoại ngữ của bạn." sub_heading: "Chúng tôi cần kỹ năng ngoại ngữ của bạn."
pitch_body: "Chúng tôi xây dựng Codecombat bằng Tiếng Anh, tuy nhiên có rất nhiều bạn trẻ trên toàn thế giới đều muốn tham gia. Các bạn trẻ Việt Nam cũng muốn chơi với nội dung Tiếng Việt, nếu như bạn có thể đọc và viết thành thạo cả 2 ngôn ngữ xin hãy đăng kí làm dịch thuật cho chúng tôi." pitch_body: "Chúng tôi xây dựng Codecombat bằng Tiếng Anh, tuy nhiên có rất nhiều bạn trẻ trên toàn thế giới đều muốn tham gia. Các bạn trẻ Việt Nam cũng muốn chơi với nội dung Tiếng Việt, nếu như bạn có thể đọc và viết thành thạo cả 2 ngôn ngữ xin hãy đăng kí làm dịch thuật cho chúng tôi."
missing_translations: "Bạn sẽ tiếp tục thấy Tiếng Anh cho đến khi chúng tôi dịch tất cả nội dung qua Tiếng Việt." missing_translations: "Bạn sẽ tiếp tục thấy Tiếng Anh cho đến khi chúng tôi dịch tất cả nội dung qua Tiếng Việt."
learn_more: "Tìm hiểu thêm để tham gia làm Phiên Dịch Viên" learn_more: "Tìm hiểu thêm để tham gia trở thành Phiên Dịch Viên"
subscribe_as_diplomat: "Trở thành Phiên Dịch Viên" subscribe_as_diplomat: "Trở thành Phiên Dịch Viên"
play: play:
@ -152,22 +152,22 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
spectate: "Quan sát" # Ladder page spectate: "Quan sát" # Ladder page
players: "người chơi" # Hover over a level on /play players: "người chơi" # Hover over a level on /play
hours_played: "Thời gian chơi" # Hover over a level on /play hours_played: "Thời gian chơi" # Hover over a level on /play
items: "Trang b" # Tooltip on item shop button from /play items: "Trang B" # Tooltip on item shop button from /play
unlock: "Mua" # For purchasing items and heroes unlock: "Mua" # For purchasing items and heroes
confirm: "Xác nhận" confirm: "Xác nhận"
owned: "Đã có" # For items you own owned: "Đã có" # For items you own
locked: "Bị khóa" locked: "Bị khóa"
purchasable: "Có thể mua" # For a hero you unlocked but haven't purchased purchasable: "Có thể mua" # For a hero you unlocked but haven't purchased
available: "Khả dụng" available: "Khả dụng"
skills_granted: "Đã nhận được Kĩ Năng" # Property documentation details skills_granted: "Kỹ năng nhận được" # Property documentation details
heroes: "Các Tướng" # Tooltip on hero shop button from /play heroes: "Tướng" # Tooltip on hero shop button from /play
achievements: "Thành tích" # Tooltip on achievement list button from /play achievements: "Thành Tích" # Tooltip on achievement list button from /play
account: "Tài khoản" # Tooltip on account button from /play account: "Tài khoản" # Tooltip on account button from /play
settings: "Tùy Chỉnh" # Tooltip on settings button from /play settings: "Tùy Chỉnh" # Tooltip on settings button from /play
poll: "Bỏ phiếu" # Tooltip on poll button from /play poll: "Bỏ phiếu" # Tooltip on poll button from /play
next: "Tiếp" # Go from choose hero to choose inventory before playing a level next: "Tiếp" # Go from choose hero to choose inventory before playing a level
change_hero: "Đổi Tướng" # Go back from choose inventory to choose hero change_hero: "Đổi Tướng" # Go back from choose inventory to choose hero
buy_gems: "Mua ngọc" buy_gems: "Mua Ngọc"
subscription_required: "Cần đăng kí" subscription_required: "Cần đăng kí"
anonymous: "Người chơi ẩn danh" anonymous: "Người chơi ẩn danh"
level_difficulty: "Độ khó: " level_difficulty: "Độ khó: "
@ -251,7 +251,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
finishing: "Sắp hoàn tất" finishing: "Sắp hoàn tất"
sign_in_with_facebook: "Đăng nhập với Facebook" sign_in_with_facebook: "Đăng nhập với Facebook"
sign_in_with_gplus: "Đăng nhập với G+" sign_in_with_gplus: "Đăng nhập với G+"
signup_switch: "Bạn muốn tạo tài khoản mới?" signup_switch: "Bạn muốn tạo tài khoản mới?"
signup: signup:
email_announcements: "Nhận thông báo bằng email" email_announcements: "Nhận thông báo bằng email"
@ -289,9 +289,9 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
common: common:
back: "Trở lại" # When used as an action verb, like "Navigate backward" back: "Trở lại" # When used as an action verb, like "Navigate backward"
continue: "Tiếp tục" # When used as an action verb, like "Continue forward" continue: "Tiếp tục" # When used as an action verb, like "Continue forward"
loading: "Đang tải..." loading: "Đang Tải..."
saving: "Đang lưu..." saving: "Đang Lưu..."
sending: "Đang gửi..." sending: "Đang Gửi..."
send: "Gửi" send: "Gửi"
cancel: "Hủy" cancel: "Hủy"
save: "Lưu" save: "Lưu"
@ -345,7 +345,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
message: "Tin nhắn" message: "Tin nhắn"
code: "Code" code: "Code"
ladder: "Thang điểm" ladder: "Thang điểm"
when: "Khi nào" when: "Thời gian"
opponent: "Đối thủ" opponent: "Đối thủ"
rank: "Hạng" rank: "Hạng"
score: "Điểm" score: "Điểm"
@ -358,7 +358,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
player: "Người chơi" player: "Người chơi"
player_level: "Cấp độ" # Like player level 5, not like level: Dungeons of Kithgard player_level: "Cấp độ" # Like player level 5, not like level: Dungeons of Kithgard
warrior: "Chiến binh" warrior: "Chiến binh"
ranger: "Cung thủ" ranger: "Xạ thủ"
wizard: "Phù thủy" wizard: "Phù thủy"
first_name: "Tên" first_name: "Tên"
last_name: "Họ" last_name: "Họ"
@ -420,8 +420,8 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
victory_review_placeholder: "Màn chơi vừa rồi như thế nào?" victory_review_placeholder: "Màn chơi vừa rồi như thế nào?"
victory_hour_of_code_done: "Bạn xong chưa?" victory_hour_of_code_done: "Bạn xong chưa?"
victory_hour_of_code_done_yes: "Đúng vậy, tôi đã hoàn tất thời gian lập trình!" victory_hour_of_code_done_yes: "Đúng vậy, tôi đã hoàn tất thời gian lập trình!"
victory_experience_gained: "Đã tăng XP" victory_experience_gained: "XP nhận được"
victory_gems_gained: "Nhận được Ngọc" victory_gems_gained: "Ngọc nhận được"
victory_new_item: "Vật phẩm mới" victory_new_item: "Vật phẩm mới"
victory_viking_code_school: "Thật tuyệt vời, bạn vừa vượt qua một màn chơi khó khủng khiếp! Không lâu nữa bạn sẽ trở thành một lập trình viên thôi. Bạn vừa được nhận thẳng vào trường Viking Code School, nơi bạn có thể nâng tầm kĩ năng của mình và trở thành lập trình viên web chuyên nghiệp trong 14 tuần." victory_viking_code_school: "Thật tuyệt vời, bạn vừa vượt qua một màn chơi khó khủng khiếp! Không lâu nữa bạn sẽ trở thành một lập trình viên thôi. Bạn vừa được nhận thẳng vào trường Viking Code School, nơi bạn có thể nâng tầm kĩ năng của mình và trở thành lập trình viên web chuyên nghiệp trong 14 tuần."
victory_become_a_viking: "Trở thành Viking" victory_become_a_viking: "Trở thành Viking"
@ -442,7 +442,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
skip_tutorial: "Bỏ qua (esc)" skip_tutorial: "Bỏ qua (esc)"
keyboard_shortcuts: "Các phím tắt" keyboard_shortcuts: "Các phím tắt"
loading_ready: "Sẵn sàng!" loading_ready: "Sẵn sàng!"
loading_start: "Bắt đầu màn này" loading_start: "Bắt đầu màn chơi"
problem_alert_title: "Hãy sửa lại Code của bạn" problem_alert_title: "Hãy sửa lại Code của bạn"
time_current: "Bây giờ:" time_current: "Bây giờ:"
time_total: "Tối đa:" time_total: "Tối đa:"
@ -542,12 +542,12 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
view_other_solutions: "Xem xếp hạng" # {change} view_other_solutions: "Xem xếp hạng" # {change}
scores: "Điểm" scores: "Điểm"
top_players: "Người chơi dẫn đầu xếp theo" top_players: "Người chơi dẫn đầu xếp theo"
day: "Hôm nay" day: "Hôm Nay"
week: "Tuần này" week: "Tuần Này"
all: "Tất c" all: "Tất C"
time: "Thời gian" time: "Thời Gian"
damage_taken: "Sát thương nhận vào" damage_taken: "Sát thương nhận vào"
damage_dealt: "Sát thương gây ra" damage_dealt: "Mức Sát Thương"
difficulty: "Độ khó" difficulty: "Độ khó"
gold_collected: "Vàng đã thu thập" gold_collected: "Vàng đã thu thập"
@ -560,7 +560,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
equipped: "(đã trang bị)" equipped: "(đã trang bị)"
locked: "(khóa)" locked: "(khóa)"
restricted: "(bị giới hạn ở màn này)" restricted: "(bị giới hạn ở màn này)"
equip: "Mặc trang bị" equip: "Mặc"
unequip: "Cởi ra" unequip: "Cởi ra"
buy_gems: buy_gems:
@ -577,7 +577,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
price: "x{{gems}} / tháng" price: "x{{gems}} / tháng"
subscribe: subscribe:
comparison_blurb: "Tăng cường kĩ năng bằng việc đăng kí theo dõi CodeCombat!" comparison_blurb: "Tăng cường kĩ năng bằng cách mua gói dịch vụ nâng cao của CodeCombat!"
feature1: "__levelsCount__+ màn chơi cơ bản trên __worldsCount__ bản đồ thế giới" feature1: "__levelsCount__+ màn chơi cơ bản trên __worldsCount__ bản đồ thế giới"
feature2: "__heroesCount__ <strong>tướng mới</strong> mạnh mẽ với những kĩ năng đặc biệt!" feature2: "__heroesCount__ <strong>tướng mới</strong> mạnh mẽ với những kĩ năng đặc biệt!"
feature3: "__bonusLevelsCount__+ màn chơi thêm" feature3: "__bonusLevelsCount__+ màn chơi thêm"
@ -589,7 +589,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
free: "Miễn phí" free: "Miễn phí"
month: "tháng" month: "tháng"
must_be_logged: "Trước tiên bạn phải đăng nhập. Hãy tạo một tài khoản mới hoặc đăng nhập ở menu phía trên." must_be_logged: "Trước tiên bạn phải đăng nhập. Hãy tạo một tài khoản mới hoặc đăng nhập ở menu phía trên."
subscribe_title: "Đăng kí theo dõi" subscribe_title: "Mua gói nâng cao"
unsubscribe: "Ngừng theo dõi" unsubscribe: "Ngừng theo dõi"
confirm_unsubscribe: "Xác nhận ngừng theo dõi" confirm_unsubscribe: "Xác nhận ngừng theo dõi"
never_mind: "Đừng bận tâm, tôi vẫn yêu bạn" never_mind: "Đừng bận tâm, tôi vẫn yêu bạn"
@ -598,8 +598,8 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
thank_you: "Cảm ơn bạn đã ủng hộ CodeCombat." thank_you: "Cảm ơn bạn đã ủng hộ CodeCombat."
sorry_to_see_you_go: "Thật đáng tiếc khi phải chia tay bạn! Hãy góp ý để chúng tôi có thể cái thiện tốt hơn." sorry_to_see_you_go: "Thật đáng tiếc khi phải chia tay bạn! Hãy góp ý để chúng tôi có thể cái thiện tốt hơn."
unsubscribe_feedback_placeholder: "Ồ, chúng tôi đã làm gì sai ư?" unsubscribe_feedback_placeholder: "Ồ, chúng tôi đã làm gì sai ư?"
parent_button: "Hãy hỏi phụ huynh bạn" parent_button: "Hỏi phụ huynh bạn"
parent_email_description: "Chúng tôi sẽ email cho họ để họ có thể mua cho bạn một gói dịch vụ của CodeCombat." parent_email_description: "Chúng tôi sẽ email cho họ để họ có thể mua cho bạn một gói dịch vụ nâng cao của CodeCombat."
parent_email_input_invalid: "Địa chỉ email không hợp lệ." parent_email_input_invalid: "Địa chỉ email không hợp lệ."
parent_email_input_label: "Địa chỉ email của phụ huynh" parent_email_input_label: "Địa chỉ email của phụ huynh"
parent_email_input_placeholder: "Hãy nhập địa chi email của phụ huynh bạn" parent_email_input_placeholder: "Hãy nhập địa chi email của phụ huynh bạn"
@ -608,13 +608,13 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
parent_email_title: "Địa chỉ email của phụ huynh bạn là gì?" parent_email_title: "Địa chỉ email của phụ huynh bạn là gì?"
parents: "Dành cho Phụ huynh" parents: "Dành cho Phụ huynh"
parents_title: "Xin chào: Con của bạn muốn học lập trình. Bạn đồng ý chứ?" # {change} parents_title: "Xin chào: Con của bạn muốn học lập trình. Bạn đồng ý chứ?" # {change}
parents_blurb1: "Con của bạn đã hoàn thiện __nLevels__ cấp độ lập trình đầu tiên với CodeCombat. Hãy giúp con bạn theo đuổi giấc mơ lập trình bằng cách đăng kí thêm khóa học." parents_blurb1: "Con của bạn đã hoàn thiện __nLevels__ cấp độ lập trình cơ bản với CodeCombat. Hãy giúp con bạn theo đuổi giấc mơ lập trình bằng cách đăng kí thêm khóa học."
parents_blurb1a: "Lập trình là một kỹ năng cần thiết mà con bạn chắc chắn sẽ cần khi trưởng thành. Tới 2020, kỹ năng phần mếm cơ bản sẽ được dùng trong 77% các ngành nghề, và khắp nơi trên thế giới hiện nay đều đang có nhu cầu cao tìm kiếm những kĩ sư phần mềm. Bạn có biết Công Nghệ Thông Tin đang là bằng cấp đại học đem lại mức lương cao nhất?" parents_blurb1a: "Lập trình là một kỹ năng cần thiết mà con bạn chắc chắn sẽ cần khi trưởng thành. Tính đến 2020, kỹ năng phần mếm cơ bản sẽ được dùng trong 77% các ngành nghề, và khắp mọi nơi trên thế giới hiện nay đều đang có nhu cầu cao tìm kiếm kĩ sư phần mềm. Bạn có biết Công Nghệ Thông Tin đang là bằng cấp đại học đem lại mức lương cao nhất?"
parents_blurb2: "Chỉ với ${{price}} USD/tháng, con bạn sẽ nhận được những thử thách mới mỗi tháng và sẽ nhận được sự hỗ trợ đặc biệt từ các lập trình viên chuyên nghiệp." # {change} parents_blurb2: "Chỉ với ${{price}} USD/tháng, con bạn sẽ nhận được những thử thách mới mỗi tháng và sẽ nhận được sự hỗ trợ đặc biệt từ các lập trình viên chuyên nghiệp." # {change}
parents_blurb3: "Không hề có rủi ro: Nếu bạn không hài lòng bạn có thể nhận lại 100% số tiền mình bỏ ra chỉ với 1 cú nhấp chuốt." parents_blurb3: "Không hề có rủi ro: Nếu bạn không hài lòng bạn có thể nhận lại 100% số tiền mình bỏ ra chỉ với 1 cú click chuốt."
payment_methods: "Phương thức thanh toán" payment_methods: "Phương thức thanh toán"
payment_methods_title: "Những phương thức thanh toán được chấp nhận." payment_methods_title: "Những phương thức thanh toán được chấp nhận."
payment_methods_blurb1: "Hiện tại chúng tôi chấp nhận thẻ tín dụng và Alipay. Bạn cũng có thể sử dụng PayPal để chuyển {{three_month_price}} USD tới nick@codecombat.com và ghi rõ email tài khoản để mua dịch vụ trong 3 tháng, hoặc ${{year_price}} để mua dịch vụ trong 1 năm." payment_methods_blurb1: "Hiện tại chúng tôi chấp nhận thẻ tín dụng và Alipay. Bạn cũng có thể sử dụng PayPal để chuyển ${{three_month_price}} tới nick@codecombat.com và ghi rõ email tài khoản để mua dịch vụ trong 3 tháng, hoặc ${{year_price}} để mua dịch vụ trong 1 năm."
payment_methods_blurb2: "Nếu bạn cần một phương thức thanh toán khác, hãy liên hệ" payment_methods_blurb2: "Nếu bạn cần một phương thức thanh toán khác, hãy liên hệ"
sale_button: "Ưu đãi!" sale_button: "Ưu đãi!"
sale_button_title: "Tiết kiệm $21 khi mua gói dịch vụ 1 năm" sale_button_title: "Tiết kiệm $21 khi mua gói dịch vụ 1 năm"
@ -644,7 +644,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
experimental: "Thử" experimental: "Thử"
python_blurb: "Đơn giản nhưng mạnh mẽ, tốt cho cả những người mới bắt đầu và chuyên gia." python_blurb: "Đơn giản nhưng mạnh mẽ, tốt cho cả những người mới bắt đầu và chuyên gia."
javascript_blurb: "Ngôn ngữ của thế giới web. (Không giống với Java đâu nhé.)" javascript_blurb: "Ngôn ngữ của thế giới web. (Không giống với Java đâu nhé.)"
coffeescript_blurb: "JavaScript viết bằng cú pháp tốt hơn." coffeescript_blurb: "JavaScript vi cú pháp tốt hơn."
clojure_blurb: "Lisp thời đại mới." clojure_blurb: "Lisp thời đại mới."
lua_blurb: "Ngôn ngữ được ưa chuông để làm game." lua_blurb: "Ngôn ngữ được ưa chuông để làm game."
io_blurb: "Đơn giản nhưng ít người biết đến." io_blurb: "Đơn giản nhưng ít người biết đến."
@ -659,7 +659,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
health: "Sinh lực" health: "Sinh lực"
speed: "Tốc độ" speed: "Tốc độ"
regeneration: "Hồi sinh lực" regeneration: "Hồi sinh lực"
range: "Tầm đánh/Tầm nhìn" # As in "attack or visual range" range: "Tầm xa" # As in "attack or visual range"
blocks: "Đỡ" # As in "this shield blocks this much damage" blocks: "Đỡ" # As in "this shield blocks this much damage"
# backstab: "Backstab" # As in "this dagger does this much backstab damage" # backstab: "Backstab" # As in "this dagger does this much backstab damage"
skills: "Kĩ năng" skills: "Kĩ năng"
@ -707,14 +707,14 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
granularity_change_history: "Lịch sử" granularity_change_history: "Lịch sử"
options: options:
general_options: "Tùy chỉnh chung" # Check out the Options tab in the Game Menu while playing a level general_options: "Tùy Chỉnh Chung" # Check out the Options tab in the Game Menu while playing a level
volume_label: "Âm lượng" volume_label: "Âm Lượng"
music_label: "Âm nhạc" music_label: "Âm Nhạc"
music_description: "Bật/tắt nhạc nền." music_description: "Bật/tắt nhạc nền."
editor_config_title: "Cấu hình Editor" editor_config_title: "Cấu Hình Editor"
# editor_config_keybindings_label: "Key Bindings" editor_config_keybindings_label: "Các phím tắt"
editor_config_keybindings_default: "Mặc định (Ace)" editor_config_keybindings_default: "Mặc định (Ace)"
editor_config_keybindings_description: "Thêm shortcuts chung cho các công cụ editor." editor_config_keybindings_description: "Hệ thống phím tắt chung cho các công cụ editor."
editor_config_livecompletion_label: "Gợi ý tự động" editor_config_livecompletion_label: "Gợi ý tự động"
editor_config_livecompletion_description: "Hiển thị gợi ý tự động trong khi gõ phím." editor_config_livecompletion_description: "Hiển thị gợi ý tự động trong khi gõ phím."
editor_config_invisibles_label: "Hiện kí tự ẩn" editor_config_invisibles_label: "Hiện kí tự ẩn"
@ -899,14 +899,14 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
not_logged_in: "Đăng nhập hoặc tạo tài khoản để thay đổi cài đặt." not_logged_in: "Đăng nhập hoặc tạo tài khoản để thay đổi cài đặt."
autosave: "Tự động lưu thay đổi" autosave: "Tự động lưu thay đổi"
me_tab: "Tôi" me_tab: "Tôi"
picture_tab: "Ảnh đại diện" picture_tab: "Ảnh Đại Diện"
delete_account_tab: "Xóa tài khoản" delete_account_tab: "Xóa Tài Khoản"
wrong_email: "Email không đúng" wrong_email: "Email không đúng"
wrong_password: "Mật khẩu không đúng" wrong_password: "Mật khẩu không đúng"
upload_picture: "Tải ảnh lên" upload_picture: "Tải ảnh lên"
delete_this_account: "Xóa tài khoản này vĩnh viễn" delete_this_account: "Xóa tài khoản này vĩnh viễn"
# reset_progress_tab: "Reset All Progress" reset_progress_tab: "Xóa Mọi Tiến Trình"
# reset_your_progress: "Clear all your progress and start over" reset_your_progress: "Xóa mọi tiến trình của bạn và bắt đầu lại từ đầu"
# god_mode: "God Mode" # god_mode: "God Mode"
password_tab: "Mật khẩu" password_tab: "Mật khẩu"
emails_tab: "Email" emails_tab: "Email"
@ -914,9 +914,9 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
manage_subscription: "Nhấn vào đây để chỉnh sửa gói đăng ký." manage_subscription: "Nhấn vào đây để chỉnh sửa gói đăng ký."
new_password: "Mật khẩu mới" new_password: "Mật khẩu mới"
new_password_verify: "Xác nhận" new_password_verify: "Xác nhận"
# type_in_email: "Type in your email to confirm account deletion." type_in_email: "Nhập email của bạn để xác nhận xóa tài khoản."
# type_in_email_progress: "Type in your email to confirm deleting your progress." type_in_email_progress: "Nhập email của bạn để xác nhận xóa tiến trình."
# type_in_password: "Also, type in your password." type_in_password: "Nhập lại mật khẩu của bạn."
email_subscriptions: "Thuê bao Email" email_subscriptions: "Thuê bao Email"
# email_subscriptions_none: "No Email Subscriptions." # email_subscriptions_none: "No Email Subscriptions."
email_announcements: "Thông báo" email_announcements: "Thông báo"
@ -928,8 +928,8 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# email_news: "News" # email_news: "News"
email_recruit_notes: "Cơ hội việc làm" email_recruit_notes: "Cơ hội việc làm"
email_recruit_notes_description: "Nếu bạn chơi trò này rất giỏi, chúng tôi có thể sẽ liên lạc với bạn về cơ hội nghề nghiệp." email_recruit_notes_description: "Nếu bạn chơi trò này rất giỏi, chúng tôi có thể sẽ liên lạc với bạn về cơ hội nghề nghiệp."
# contributor_emails: "Contributor Class Emails" contributor_emails: "Email tham gia đóng góp"
contribute_prefix: "Chúng tôi đang tìm thêm người vào nhóm của chúng tôi! Hãy kiểm " contribute_prefix: "Chúng tôi đang tìm thêm người để cùng tham gia với chúng tôi! Hãy vào "
contribute_page: "trang đóng góp" contribute_page: "trang đóng góp"
contribute_suffix: " để tìm hiểu thêm." contribute_suffix: " để tìm hiểu thêm."
# email_toggle: "Toggle All" # email_toggle: "Toggle All"
@ -980,78 +980,78 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
clans: clans:
clan: "Clan" clan: "Clan"
# clans: "Clans" clans: "Các Clan"
new_name: "Tên mới cho bè đảng" new_name: "Tên Clan mới"
new_description: "Miêu tả cho bè đảng mới này" new_description: "Mô tả Clan mới"
make_private: "Tạo bè đảng kín" make_private: "Make clan private"
# subs_only: "subscribers only" subs_only: "chỉ dành cho các subscriber"
create_clan: "Tạo một clan mới" create_clan: "Tạo một clan mới"
# private_preview: "Preview" private_preview: "Xem trước"
# private_clans: "Private Clans" private_clans: "Các Clan kín"
# public_clans: "Public Clans" public_clans: "Các Clan mở"
# my_clans: "My Clans" my_clans: "Các Clan của tôi"
# clan_name: "Clan Name" clan_name: "Tên Clan"
name: "Tên" name: "Tên"
# chieftain: "Chieftain" chieftain: "Thủ lĩnh"
# type: "Type" type: "Loại"
# edit_clan_name: "Edit Clan Name" edit_clan_name: "Sửa tên Clan"
# edit_clan_description: "Edit Clan Description" edit_clan_description: "Sửa mô tả Clan"
# edit_name: "edit name" edit_name: "sửa tên"
# edit_description: "edit description" edit_description: "sửa mô tả"
# private: "(private)" private: "(kín)"
# summary: "Summary" summary: "Tóm tắt"
# average_level: "Average Level" average_level: "Cấp độ trng bình"
# average_achievements: "Average Achievements" # average_achievements: "Average Achievements"
# delete_clan: "Delete Clan" delete_clan: "Xóa Clan"
# leave_clan: "Leave Clan" leave_clan: "Rời Clan"
# join_clan: "Join Clan" join_clan: "Tham gia Clan"
# invite_1: "Invite:" invite_1: "Mời:"
# invite_2: "*Invite players to this Clan by sending them this link." invite_2: "*Mời người chơi khác tham dự Clan này bằng cách gửi họ đường link này."
members: "Những thành viên" members: "Thành viên"
# progress: "Progress" progress: "Tiến trình"
# not_started_1: "not started" not_started_1: "chưa băt đầu"
# started_1: "started" started_1: "đã bắt đầu"
# complete_1: "complete" complete_1: "hoàn thành"
# exp_levels: "Expand levels" # exp_levels: "Expand levels"
# rem_hero: "Remove Hero" # rem_hero: "Remove Hero"
# status: "Status" # status: "Status"
# complete_2: "Complete" complete_2: "Hoàn thành"
# started_2: "Started" started_2: "Đã bắt đầu"
# not_started_2: "Not Started" not_started_2: "Chưa bắt đầu"
# view_solution: "Click to view solution." view_solution: "Click để xem lời giải."
# view_attempt: "Click to view attempt." # view_attempt: "Click to view attempt."
# latest_achievement: "Latest Achievement" # latest_achievement: "Latest Achievement"
# playtime: "Playtime" playtime: "Thời gian chơi"
# last_played: "Last played" last_played: "Lần chơi cuối"
# leagues_explanation: "Play in a league against other clan members in these multiplayer arena instances." # leagues_explanation: "Play in a league against other clan members in these multiplayer arena instances."
# track_concepts1: "Track concepts" # track_concepts1: "Track concepts"
# track_concepts2a: "learned by each student" # track_concepts2a: "learned by each student"
# track_concepts2b: "learned by each member" # track_concepts2b: "learned by each member"
# track_concepts3a: "Track levels completed for each student" # track_concepts3a: "Track levels completed for each student"
# track_concepts3b: "Track levels completed for each member" # track_concepts3b: "Track levels completed for each member"
# track_concepts4a: "See your students'" track_concepts4a: "Xem các học viên của bạn'"
# track_concepts4b: "See your members'" track_concepts4b: "Xem các thành viên của bạn'"
# track_concepts5: "solutions" track_concepts5: "lời giải"
# track_concepts6a: "Sort students by name or progress" track_concepts6a: "Sắp xếp học viên theo tên hoặc tiến trình"
# track_concepts6b: "Sort members by name or progress" track_concepts6b: "Sắp xếp thành viên theo tên hoặc tiến trình"
# track_concepts7: "Requires invitation" # track_concepts7: "Requires invitation"
# track_concepts8: "to join" # track_concepts8: "to join"
# private_require_sub: "Private clans require a subscription to create or join." private_require_sub: "Các Clan kín cần mua subscription để tạo hoặc tham gia."
courses: courses:
course: "Khóa học" course: "Khóa học"
courses: "Những khóa học" courses: "Những khóa học"
create_new_class: "Tạo khóa học mới" create_new_class: "Tạo Lớp Học Mới"
not_enrolled: "Bạn không đăng kí vào khóa học này" not_enrolled: "Bạn không đăng kí vào khóa học này"
# visit_pref: "Please visit the" visit_pref: "Hãy ghé thăm trang"
# visit_suf: "page to enroll." visit_suf: "để tham gia."
# select_class: "Select one of your classes" select_class: "Chọn một trong các lớp học của bạn"
# unnamed: "*unnamed*" unnamed: "*unnamed*"
# select: "Select" # select: "Select"
# unnamed_class: "Unnamed Class" unnamed_class: "Lớp học chưa đặt tên"
# edit_settings: "edit class settings" edit_settings: "thay đổi tùy chỉnh lớp học"
# edit_settings1: "Edit Class Settings" edit_settings1: "Thay đổi tùy chỉnh lớp học"
progress: "Tiến trình của khóa học" progress: "Tiến trình của lớp học"
add_students: "Thêm học sinh" add_students: "Thêm học sinh"
stats: "Thống kê" stats: "Thống kê"
total_students: "Tổng số học sinh:" total_students: "Tổng số học sinh:"
@ -1073,9 +1073,9 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# invite_link_p_2: "Or have us email them directly:" # invite_link_p_2: "Or have us email them directly:"
# capacity_used: "Course slots used:" # capacity_used: "Course slots used:"
# enter_emails: "Enter student emails to invite, one per line" # enter_emails: "Enter student emails to invite, one per line"
# send_invites: "Send Invites" send_invites: "Gửi lời mời"
# creating_class: "Creating class..." creating_class: "Đang tạo lớp..."
# purchasing_course: "Purchasing course..." purchasing_course: "Đang mua khóa học..."
buy_course: "Mua khóa học" buy_course: "Mua khóa học"
buy_course1: "Mua khóa học này" buy_course1: "Mua khóa học này"
select_all_courses: "Lựa chọn 'Tất cả khóa học' để nhận giảm giá 50%!" select_all_courses: "Lựa chọn 'Tất cả khóa học' để nhận giảm giá 50%!"
@ -1083,7 +1083,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
number_programming_students: "Số Lượng Học Viên" number_programming_students: "Số Lượng Học Viên"
number_total_students: "Tổng Số Học Viên tại Trường/Quận" number_total_students: "Tổng Số Học Viên tại Trường/Quận"
enter_number_students: "Hãy nhập vào số lượng học sinh bạn cần cho lớp học này." enter_number_students: "Hãy nhập vào số lượng học sinh bạn cần cho lớp học này."
# name_class: "Name your class" name_class: "Đặt tên lớp của bạn"
# displayed_course_page: "This will be displayed on the course page for you and your students. It can be changed later." # displayed_course_page: "This will be displayed on the course page for you and your students. It can be changed later."
buy: "Mua" buy: "Mua"
# purchasing_for: "You are purchasing a license for" # purchasing_for: "You are purchasing a license for"
@ -1273,25 +1273,25 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# last_updated: "Last updated:" # last_updated: "Last updated:"
# grants_lifetime_access: "Grants access to all Courses." # grants_lifetime_access: "Grants access to all Courses."
# enrollment_credits_available: "Enrollment Credits Available:" # enrollment_credits_available: "Enrollment Credits Available:"
description: "Miêu tả" # ClassroomSettingsModal description: "Mô tả" # ClassroomSettingsModal
language_select: "Lựa chọn một ngôn ngữ" language_select: "Lựa chọn một ngôn ngữ"
language_cannot_change: "Không thể đổi ngôn ngữ sau khi học viên đã gia nhập lớp học." language_cannot_change: "Không thể đổi ngôn ngữ sau khi học viên đã gia nhập lớp học."
learn_p: "Học Python" learn_p: "Học Python"
learn_j: "Học JavaScript" learn_j: "Học JavaScript"
# avg_student_exp_label: "Average Student Programming Experience" avg_student_exp_label: "Kinh nghiệm lập trình trung bình của học viên"
# avg_student_exp_desc: "This will help us understand how to pace courses better." avg_student_exp_desc: "Điều này sẽ giúp chúng tôi điều chỉnh tốc độ các khóa học tốt hơn."
# avg_student_exp_select: "Select the best option" avg_student_exp_select: "Chọn lựa chọn đúng nhất"
# avg_student_exp_none: "No Experience - little to no experience" avg_student_exp_none: "Không Kinh Nghiệm - ít hoặc không có kinh nghiệm"
# avg_student_exp_beginner: "Beginner - some exposure or block-based" avg_student_exp_beginner: "Mới Bắt Đầu - đã tiếp cận hoặc đã được giới thiệu"
# avg_student_exp_intermediate: "Intermediate - some experience with typed code" avg_student_exp_intermediate: "Khá - có chút kinh nghiệm viết code"
# avg_student_exp_advanced: "Advanced - extensive experience with typed code" avg_student_exp_advanced: "Nâng Cao - có nhiều kình nghiệm viết code"
# avg_student_exp_varied: "Varied Levels of Experience" avg_student_exp_varied: "Nhiều Trình Độ"
# student_age_range_label: "Student Age Range" student_age_range_label: "Lứa tuổi học viên"
# student_age_range_younger: "Younger than 6" student_age_range_younger: "Nhỏ hơn 6 tuổi"
# student_age_range_older: "Older than 18" student_age_range_older: "Lớn hơn 18 tuổi"
# student_age_range_to: "to" student_age_range_to: "tới"
# create_class: "Create Class" create_class: "Tạo Lớp"
# class_name: "Class Name" class_name: "Tên lớp"
# teacher_account_restricted: "Your account is a teacher account, and so cannot access student content." # teacher_account_restricted: "Your account is a teacher account, and so cannot access student content."
teacher: teacher:
@ -1318,7 +1318,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# unarchive_class: "unarchive class" # unarchive_class: "unarchive class"
# no_students_yet: "This class has no students yet." # no_students_yet: "This class has no students yet."
add_students: "Thêm Học Viên" add_students: "Thêm Học Viên"
# create_new_class: "Create a New Class" create_new_class: "Tạo Lớp học mới"
# class_overview: "Class Overview" # View Class page # class_overview: "Class Overview" # View Class page
# avg_playtime: "Average level playtime" # avg_playtime: "Average level playtime"
# total_playtime: "Total play time" # total_playtime: "Total play time"
@ -1530,13 +1530,13 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
adventurer_forum_url: "diễn đàn" adventurer_forum_url: "diễn đàn"
adventurer_join_suf: "vì vậy nếu bạn muốn liên lạc thông qua những kênh trên, hãy đăng ký ở đó!" adventurer_join_suf: "vì vậy nếu bạn muốn liên lạc thông qua những kênh trên, hãy đăng ký ở đó!"
adventurer_subscribe_desc: "Nhận email khi có màn chơi mới cần kiểm thử." adventurer_subscribe_desc: "Nhận email khi có màn chơi mới cần kiểm thử."
# scribe_introduction_pref: "CodeCombat isn't just going to be a bunch of levels. It will also include a resource for knowledge, a wiki of programming concepts that levels can hook into. That way rather than each Artisan having to describe in detail what a comparison operator is, they can simply link their level to the Article describing them that is already written for the player's edification. Something along the lines of what the " scribe_introduction_pref: "CodeCombat không chỉ là một đống các màn chơi. Nó cũng sẽ là một nguồn tài nguyên tri thức, một cuốn thư viện về các khái niệm lập trình, chính những thứ mà được sử dụng để xây dựng các màn chơi. Như vậy các Thợ Thủ Công không phải bỏ công giải thích đi giải thích lại những khái niệm cơ bản như toán tử là gì, họ có thể một cách đơn giản dẫn link từ các màn chơi của họ sang các bài viết dành cho người chơi. Việc này tương tự như những thứ mà "
# scribe_introduction_url_mozilla: "Mozilla Developer Network" scribe_introduction_url_mozilla: "Cộng Đồng Lập Trình Mozilla"
# scribe_introduction_suf: " has built. If your idea of fun is articulating the concepts of programming in Markdown form, then this class might be for you." scribe_introduction_suf: " đã xây dựng. Nếu bạn có thể truyền tải được các tư tưởng lập trình dưới dạng Markdown, thì lớp nhân vật này có thể phù hợp với bạn."
# scribe_attribute_1: "Skill in words is pretty much all you need. Not only grammar and spelling, but able to convey complicated ideas to others." scribe_attribute_1: "Khả năng hành văn gần như là thứ duy nhất bạn cần. Không chỉ cần ngữ pháp và đánh vần thành thạo, mà bạn còn cần khả năng truyền tải những thông điệp phức tạp tới người khác."
contact_us_url: "Liên hệ với chúng tôi" contact_us_url: "Liên hệ với chúng tôi"
# scribe_join_description: "tell us a little about yourself, your experience with programming and what sort of things you'd like to write about. We'll go from there!" scribe_join_description: "kể cho chung tôi một chút về bạn, kinh nghiệm lập trình của bạn và bạn hứng thú viết về điều gì. Chúng ta sẽ cùng bắt đầu từ đó!"
# scribe_subscribe_desc: "Get emails about article writing announcements." scribe_subscribe_desc: "Nhận email về những thông tin viết bài."
diplomat_introduction_pref: "Nếu như bạn hỏi chúng tôi đã nhận được gì kể từ khi " diplomat_introduction_pref: "Nếu như bạn hỏi chúng tôi đã nhận được gì kể từ khi "
diplomat_launch_url: "bắt đầu vào tháng Mười" diplomat_launch_url: "bắt đầu vào tháng Mười"
diplomat_introduction_suf: "thì đó chính là niềm quan tâm rất lớn với CodeCombat đến từ nhiều quốc gia trên thế giới! Chúng tôi đang xây dựng một đội ngũ phiên dịch viên đầy nhiệt huyết để đưa CodeCombat đến với mọi nơi trên thế giới. Nếu bạn muốn cập nhật những nội dung mới nhất đồng thời muốn truyền tải chúng tới quốc gia của bạn, thì lớp nhân vật này có thể sẽ phù hợp với bạn." diplomat_introduction_suf: "thì đó chính là niềm quan tâm rất lớn với CodeCombat đến từ nhiều quốc gia trên thế giới! Chúng tôi đang xây dựng một đội ngũ phiên dịch viên đầy nhiệt huyết để đưa CodeCombat đến với mọi nơi trên thế giới. Nếu bạn muốn cập nhật những nội dung mới nhất đồng thời muốn truyền tải chúng tới quốc gia của bạn, thì lớp nhân vật này có thể sẽ phù hợp với bạn."
@ -1548,7 +1548,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
diplomat_github_url: "ở trên GitHub" diplomat_github_url: "ở trên GitHub"
diplomat_join_suf_github: ", chỉnh sửa online, và submit một pull request. Đồng thời, đánh dấu vào ô phía dưới để theo dõi những thông tin cập nhật về việc phát triển đa ngôn ngữ!" diplomat_join_suf_github: ", chỉnh sửa online, và submit một pull request. Đồng thời, đánh dấu vào ô phía dưới để theo dõi những thông tin cập nhật về việc phát triển đa ngôn ngữ!"
diplomat_subscribe_desc: "Nhận email về việc phát triển đa ngôn ngữ và màn chơi mới cần dịch thuật." diplomat_subscribe_desc: "Nhận email về việc phát triển đa ngôn ngữ và màn chơi mới cần dịch thuật."
# ambassador_introduction: "This is a community we're building, and you are the connections. We've got forums, emails, and social networks with lots of people to talk with and help get acquainted with the game and learn from. If you want to help people get involved and have fun, and get a good feel of the pulse of CodeCombat and where we're going, then this class might be for you." ambassador_introduction: "Đây là cộng đồng mà chúng tôi đang gây dựng, và bạn là những người kết nối. Chúng tôi có các diễn đàn, email, và các mạng xã hội với rất nhiêu người để nói chuyện và giúp đỡ làm quen và học từ game. Nếu bạn muốn giúp đỡ người khác tham gia chơi, và cùng tham gia CodeCombat trên con đường chúng tôi đang hướng đến, thì lớp nhân vật này có thể phù hợp với bạn."
ambassador_attribute_1: "Kỹ năng giao tiếp. Có thể nhận định được vấn đề của người chơi đang gặp phải và giúp họ giải quyết. Đồng thời, thông báo cho chúng tôi biết ý kiến của người chơi, những gì họ thích và không thích và những điều họ mong muốn!" ambassador_attribute_1: "Kỹ năng giao tiếp. Có thể nhận định được vấn đề của người chơi đang gặp phải và giúp họ giải quyết. Đồng thời, thông báo cho chúng tôi biết ý kiến của người chơi, những gì họ thích và không thích và những điều họ mong muốn!"
ambassador_join_desc: "kể cho chúng tôi một chút về bạn, bạn đã làm gì và bạn hứng thú làm gì. Chúng ta sẽ cùng bắt đầu từ đó!" ambassador_join_desc: "kể cho chúng tôi một chút về bạn, bạn đã làm gì và bạn hứng thú làm gì. Chúng ta sẽ cùng bắt đầu từ đó!"
ambassador_join_note_strong: "Chú thích" ambassador_join_note_strong: "Chú thích"
@ -1564,7 +1564,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
helpful_ambassadors: "Những Sứ Giả đầy hữu ích của chúng tôi:" helpful_ambassadors: "Những Sứ Giả đầy hữu ích của chúng tôi:"
ladder: ladder:
# please_login: "Please log in first before playing a ladder game." please_login: "Hãy đăng nhập để tham gia thi đấu."
my_matches: "Những trận đấu của tôi" my_matches: "Những trận đấu của tôi"
# simulate: "Simulate" # simulate: "Simulate"
# simulation_explanation: "By simulating games you can get your game ranked faster!" # simulation_explanation: "By simulating games you can get your game ranked faster!"
@ -1574,7 +1574,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# games_simulated_for: "Games simulated for you:" # games_simulated_for: "Games simulated for you:"
# games_in_queue: "Games currently in the queue:" # games_in_queue: "Games currently in the queue:"
# games_simulated: "Games simulated" # games_simulated: "Games simulated"
# games_played: "Games played" games_played: "Các game đã chơi"
ratio: "Tỷ lệ" ratio: "Tỷ lệ"
leaderboard: "Bạng xếp hạng" leaderboard: "Bạng xếp hạng"
# battle_as: "Battle as " # battle_as: "Battle as "
@ -1593,40 +1593,40 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# code_being_simulated: "Your new code is being simulated by other players for ranking. This will refresh as new matches come in." # code_being_simulated: "Your new code is being simulated by other players for ranking. This will refresh as new matches come in."
# no_ranked_matches_pre: "No ranked matches for the " # no_ranked_matches_pre: "No ranked matches for the "
# no_ranked_matches_post: " team! Play against some competitors and then come back here to get your game ranked." # no_ranked_matches_post: " team! Play against some competitors and then come back here to get your game ranked."
# choose_opponent: "Choose an Opponent" choose_opponent: "Chọn một đối thủ"
# select_your_language: "Select your language!" select_your_language: "Lựa chọn ngôn ngữ của bạn!"
# tutorial_play: "Play Tutorial" tutorial_play: "Chạy hướng dẫn"
# tutorial_recommended: "Recommended if you've never played before" # tutorial_recommended: "Recommended if you've never played before"
# tutorial_skip: "Skip Tutorial" # tutorial_skip: "Skip Tutorial"
# tutorial_not_sure: "Not sure what's going on?" # tutorial_not_sure: "Not sure what's going on?"
# tutorial_play_first: "Play the Tutorial first." # tutorial_play_first: "Play the Tutorial first."
# simple_ai: "Simple CPU" # simple_ai: "Simple CPU"
# warmup: "Warmup" warmup: "Khởi động"
# friends_playing: "Friends Playing" # friends_playing: "Friends Playing"
# log_in_for_friends: "Log in to play with your friends!" log_in_for_friends: "Đăng nhập để chơi với bàn bè!"
# social_connect_blurb: "Connect and play against your friends!" social_connect_blurb: "Kết nối và chơi với bạn bè!"
# invite_friends_to_battle: "Invite your friends to join you in battle!" invite_friends_to_battle: "Mời bạn bè tham gia thi đấu tranh tài!"
# fight: "Fight!" fight: "Chiến!"
# watch_victory: "Watch your victory" # watch_victory: "Watch your victory"
# defeat_the: "Defeat the" # defeat_the: "Defeat the"
# watch_battle: "Watch the battle" watch_battle: "Xem trận đấu"
# tournament_started: ", started" # tournament_started: ", started"
# tournament_ends: "Tournament ends" tournament_ends: "Giải đấu kết thúc"
# tournament_ended: "Tournament ended" tournament_ended: "Giải đấu đã kết thúc"
# tournament_rules: "Tournament Rules" tournament_rules: "Luật lệ giải đấu"
# tournament_blurb: "Write code, collect gold, build armies, crush foes, win prizes, and upgrade your career in our $40,000 Greed tournament! Check out the details" # tournament_blurb: "Write code, collect gold, build armies, crush foes, win prizes, and upgrade your career in our $40,000 Greed tournament! Check out the details"
# tournament_blurb_criss_cross: "Win bids, construct paths, outwit opponents, grab gems, and upgrade your career in our Criss-Cross tournament! Check out the details" # tournament_blurb_criss_cross: "Win bids, construct paths, outwit opponents, grab gems, and upgrade your career in our Criss-Cross tournament! Check out the details"
# tournament_blurb_zero_sum: "Unleash your coding creativity in both gold gathering and battle tactics in this alpine mirror match between red sorcerer and blue sorcerer. The tournament began on Friday, March 27 and will run until Monday, April 6 at 5PM PDT. Compete for fun and glory! Check out the details" # tournament_blurb_zero_sum: "Unleash your coding creativity in both gold gathering and battle tactics in this alpine mirror match between red sorcerer and blue sorcerer. The tournament began on Friday, March 27 and will run until Monday, April 6 at 5PM PDT. Compete for fun and glory! Check out the details"
# tournament_blurb_ace_of_coders: "Battle it out in the frozen glacier in this domination-style mirror match! The tournament began on Wednesday, September 16 and will run until Wednesday, October 14 at 5PM PDT. Check out the details" # tournament_blurb_ace_of_coders: "Battle it out in the frozen glacier in this domination-style mirror match! The tournament began on Wednesday, September 16 and will run until Wednesday, October 14 at 5PM PDT. Check out the details"
# tournament_blurb_blog: "on our blog" # tournament_blurb_blog: "on our blog"
rules: "Những điều lệ" rules: "Những điều lệ"
# winners: "Winners" winners: "Những người thắng cuộc"
# league: "League" # league: "League"
# red_ai: "Red CPU" # "Red AI Wins", at end of multiplayer match playback red_ai: "CPU Đỏ" # "Red AI Wins", at end of multiplayer match playback
# blue_ai: "Blue CPU" blue_ai: "CPU Xanh"
# wins: "Wins" # At end of multiplayer match playback wins: "Những chiến thắng" # At end of multiplayer match playback
# humans: "Red" # Ladder page display team name humans: "Đỏ" # Ladder page display team name
# ogres: "Blue" ogres: "Xanh"
user: user:
stats: "Chỉ số" stats: "Chỉ số"
@ -1660,7 +1660,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
payments: "Thanh Toán" payments: "Thanh Toán"
prepaid_codes: "Mã Trả Trước" prepaid_codes: "Mã Trả Trước"
purchased: "Đã Thanh Toán" purchased: "Đã Thanh Toán"
subscription: "Subscription" subscription: "Dịch vụ nâng cao"
invoices: "Hóa Đơn" invoices: "Hóa Đơn"
service_apple: "Apple" service_apple: "Apple"
service_web: "Web" service_web: "Web"
@ -1722,16 +1722,16 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
login_required: "Yêu cầu đăng nhập" login_required: "Yêu cầu đăng nhập"
login_required_desc: "Bạn cần đăng nhập để truy cập trang này." login_required_desc: "Bạn cần đăng nhập để truy cập trang này."
unauthorized: "Bạn cần đăng nhập. Bạn có vô hiệu hóa cookie không?" unauthorized: "Bạn cần đăng nhập. Bạn có vô hiệu hóa cookie không?"
# forbidden: "Forbidden" forbidden: "Cấm"
forbidden_desc: "Ôi không, không có gì ở đây cả! Hãy đảm bảo rằng bạn đăng nhập đúng tài khoản, hoặc truy cập trong số những đường link phía dưới để quay lại tiếp tục lập trình!" forbidden_desc: "Ôi không, không có gì ở đây cả! Hãy đảm bảo rằng bạn đăng nhập đúng tài khoản, hoặc truy cập trong số những đường link phía dưới để quay lại tiếp tục lập trình!"
not_found: "Không tìm thấy" not_found: "Không tìm thấy"
not_found_desc: "Hm, chả có gì ở đây cả. Truy cập một trong số những đường link phía dưới để quay lại tiếp tục lập trình!" not_found_desc: "Hm, chả có gì ở đây cả. Truy cập một trong số những đường link phía dưới để quay lại tiếp tục lập trình!"
# not_allowed: "Method not allowed." not_allowed: "Phương thức không được phép."
# timeout: "Server Timeout" timeout: "Máy chủ timeout"
conflict: "Xung đột tài nguyên." conflict: "Xung đột tài nguyên."
bad_input: "Lỗi đầu vào." bad_input: "Lỗi đầu vào."
server_error: "Lỗi server." server_error: "Lỗi server."
# unknown: "Unknown Error" unknown: "Lỗi không xác định"
error: "LỖI" error: "LỖI"
general_desc: "Có lỗi xảy ra, và có thể là lỗi do chúng tôi. Hãy cố đợi một lát và tải lại trang, hoặc truy cập một trong số những đường link phía dưới để quay lại tiếp tục lập trình!" general_desc: "Có lỗi xảy ra, và có thể là lỗi do chúng tôi. Hãy cố đợi một lát và tải lại trang, hoặc truy cập một trong số những đường link phía dưới để quay lại tiếp tục lập trình!"
@ -1753,7 +1753,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
arithmetic: "Toán tử" arithmetic: "Toán tử"
arrays: "Mảng" arrays: "Mảng"
basic_syntax: "Cú pháp cơ bản" basic_syntax: "Cú pháp cơ bản"
# boolean_logic: "Boolean Logic" boolean_logic: "Luận lý Boolean"
break_statements: "Câu lệnh Break" break_statements: "Câu lệnh Break"
classes: "Lớp" classes: "Lớp"
continue_statements: "Câu lệnh Continue" continue_statements: "Câu lệnh Continue"
@ -1766,7 +1766,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# object_literals: "Object Literals" # object_literals: "Object Literals"
parameters: "Tham số" parameters: "Tham số"
strings: "Chuỗi" strings: "Chuỗi"
variables: "Biến" variables: "Biến số"
vectors: "Các Vector" vectors: "Các Vector"
while_loops: "Vòng lặp While" while_loops: "Vòng lặp While"
recursion: "Đệ quy" recursion: "Đệ quy"

View file

@ -25,7 +25,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
im_a_student: "我是學生"#"I'm a Student" im_a_student: "我是學生"#"I'm a Student"
learn_more: "了解更多"#"Learn more" learn_more: "了解更多"#"Learn more"
classroom_in_a_box: "在一個盒子中的電腦科學教室。"#"A classroom in-a-box for teaching computer science." classroom_in_a_box: "在一個盒子中的電腦科學教室。"#"A classroom in-a-box for teaching computer science."
codecombat_is: "CodeCombat是一個<strong>學生</strong>透過進行遊戲來學習電腦科學的平台。" #"CodeCombat is a platform <strong>for students</strong> to learn computer science while playing through a real game." codecombat_is: "CodeCombat是一個<strong>學生</strong>透過進行遊戲來學習電腦科學的平台。" #"CodeCombat is a platform <strong>for students</strong> to learn computer science while playing through a real game."
our_courses: "我們的課程經過特別的遊戲測試來<strong>超越教室教學</strong>,甚至是超越一些先前沒有編程經驗的老師。" #"Our courses have been specifically playtested to <strong>excel in the classroom</strong>, even by teachers with little to no prior programming experience." our_courses: "我們的課程經過特別的遊戲測試來<strong>超越教室教學</strong>,甚至是超越一些先前沒有編程經驗的老師。" #"Our courses have been specifically playtested to <strong>excel in the classroom</strong>, even by teachers with little to no prior programming experience."
top_screenshots_hint: "學生們寫程式碼並且隨時觀看他們的更新。" #"Students write code and see their changes update in real-time" top_screenshots_hint: "學生們寫程式碼並且隨時觀看他們的更新。" #"Students write code and see their changes update in real-time"
designed_with: "在心中與老師們一起設計"#"Designed with teachers in mind" designed_with: "在心中與老師們一起設計"#"Designed with teachers in mind"
@ -37,31 +37,31 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
teaching_computer_science: "教電腦科學不需要一個昂貴的學位,因為我們提供了工具來支援各種背景的教學者。" #"Teaching computer science does not require a costly degree, because we provide tools to support educators of all backgrounds." teaching_computer_science: "教電腦科學不需要一個昂貴的學位,因為我們提供了工具來支援各種背景的教學者。" #"Teaching computer science does not require a costly degree, because we provide tools to support educators of all backgrounds."
accessible_to: "提供給" accessible_to: "提供給"
everyone: "每一個人" everyone: "每一個人"
democratizing: "使學習寫程式碼的過程民主化是我們的核心理念,每個人都應該有機會學習寫程式。" #"Democratizing the process of learning coding is at the core of our philosophy. Everyone should be able to learn to code." democratizing: "使學習寫程式碼的過程普及化是我們的核心理念,每個人都應該有機會學習寫程式。" #"Democratizing the process of learning coding is at the core of our philosophy. Everyone should be able to learn to code."
forgot_learning: "我認為他們甚至忘記了他們正在學東西。" #"I think they actually forgot that they were actually learning something." forgot_learning: "我認為他們甚至忘記了他們正在學東西。" #"I think they actually forgot that they were actually learning something."
wanted_to_do: "寫程式一直是我想要做的事情,而我從不認為我會在學校裡學到它們。" #" Coding is something I've always wanted to do, and I never thought I would be able to learn it in school." wanted_to_do: "寫程式一直是我想要做的事情,而我從不認為我會在學校裡學到它們。" #" Coding is something I've always wanted to do, and I never thought I would be able to learn it in school."
why_games: "為何從遊戲中學習是很重要的呢?" #"Why is learning through games important?" why_games: "為何從遊戲中學習是很重要的呢?" #"Why is learning through games important?"
games_reward: "遊戲鼓勵我們良性競爭。"#"Games reward the productive struggle." games_reward: "遊戲鼓勵我們良性競爭。"#"Games reward the productive struggle."
encourage: "遊戲是一個促進互動、發現及嘗試錯誤的媒介,一款好的遊戲可以試煉玩家並隨著時間精進技巧,這個過程與學生在學習中的經歷是同等重要的" #"Gaming is a medium that encourages interaction, discovery, and trial-and-error. A good game challenges the player to master skills over time, which is the same critical process students go through as they learn." encourage: "遊戲是一個促進互動、發現及嘗試錯誤的媒介,一款好的遊戲可以試煉玩家並隨著時間精進技巧,這個過程與學生在學校學習中所經歷到的一樣重要" #"Gaming is a medium that encourages interaction, discovery, and trial-and-error. A good game challenges the player to master skills over time, which is the same critical process students go through as they learn."
excel: "遊戲在獎勵方面勝出" #"Games excel at rewarding" excel: "遊戲在獎勵方面勝出" #"Games excel at rewarding"
struggle: "良性競爭"#"productive struggle" struggle: "良性競爭"#"productive struggle"
kind_of_struggle: "那種競爭使學習引人入勝,並且"#"the kind of struggle that results in learning thats engaging and" kind_of_struggle: "那種競爭使學習引人入勝,並且"#"the kind of struggle that results in learning thats engaging and"
motivating: "有動力"#"motivating" motivating: "有動力"#"motivating"
not_tedious: "不乏味"#"not tedious." not_tedious: "不乏味"#"not tedious."
gaming_is_good: "研究指出玩遊戲對小孩的大腦是有幫助的。(這是真的!)"#"Studies suggest gaming is good for childrens brains. (its true!)" gaming_is_good: "研究指出玩遊戲對小孩的大腦是有幫助的。(這是真的!)"#"Studies suggest gaming is good for childrens brains. (its true!)"
game_based: "在基於遊戲的學習系統中這是"#"When game-based learning systems are" game_based: "在基於遊戲的學習系統中這是"#"When game-based learning systems are"
compared: "相符的" compared: "相符的"
conventional: "相較於傳統評定方式的差異很明顯,「遊戲在保存知識和保持專注上是有幫助的」。" #"against conventional assessment methods, the difference is clear: games are better at helping students retain knowledge, concentrate and" conventional: "與傳統評定方式比較有很明顯的不同,「遊戲在保存知識和保持專注上是有幫助的」。" #"against conventional assessment methods, the difference is clear: games are better at helping students retain knowledge, concentrate and"
perform_at_higher_level: "現更高的成就水平"#"perform at a higher level of achievement" perform_at_higher_level: "現更高的成就水平"#"perform at a higher level of achievement"
feedback: "遊戲中也提供了及時回饋,讓學生去調整他們的解決途徑,並且更完整的了解學習內容,而不是被解答的正確或是不正確限制住。" #"Games also provide real-time feedback that allows students to adjust their solution path and understand concepts more holistically, instead of being limited to just “correct” or “incorrect” answers." feedback: "遊戲中也提供了及時回饋,讓學生去調整他們的解決途徑,並且更完整的了解學習內容,而不是被解答的正確或是不正確限制住。" #"Games also provide real-time feedback that allows students to adjust their solution path and understand concepts more holistically, instead of being limited to just “correct” or “incorrect” answers."
real_game: "這是一個真正的遊戲,利用真正寫入程式碼來遊玩。"#"A real game, played with real coding." real_game: "這是一個真正的遊戲,利用真正寫入程式碼來遊玩。"#"A real game, played with real coding."
great_game: "一個很棒的遊戲不只有徽章和成就--它更是玩家的旅程、設計優良的關卡,以及藉由幫助和信心完成挑戰的能力。" # "A great game is more than just badges and achievements - its about a players journey, well-designed puzzles, and the ability to tackle challenges with agency and confidence." great_game: "一個很棒的遊戲不只有徽章和成就--它更是玩家的旅程、設計優良的關卡,以及藉由信心和幫助完成挑戰的能力。" # "A great game is more than just badges and achievements - its about a players journey, well-designed puzzles, and the ability to tackle challenges with agency and confidence."
agency: "CodeCombat是一個能給予玩家協助以及信心的遊戲藉由我們強大的程式碼鍵入引擎可以幫助新手或是進階的學生寫出正確的、有效的程式碼。" #"CodeCombat is a game that gives players that agency and confidence with our robust typed code engine, which helps beginner and advanced students alike write proper, valid code." agency: "CodeCombat是一個能給予玩家協助以及信心的遊戲藉由我們強大的程式碼鍵入引擎可以幫助新手或是進階的學生寫出正確的、有效的程式碼。" #"CodeCombat is a game that gives players that agency and confidence with our robust typed code engine, which helps beginner and advanced students alike write proper, valid code."
request_demo_title: "讓您的學生從今天開始遊玩吧!"#"Get your students started today!" request_demo_title: "讓您的學生從今天開始遊玩吧!"#"Get your students started today!"
request_demo_subtitle: "要求一個demo示範版本並且讓您的學生在一個小時之內就能上手。"#"Request a demo and get your students started in less than an hour." request_demo_subtitle: "申請一個demo示範版本並且讓您的學生在一個小時之內就能上手。"#"Request a demo and get your students started in less than an hour."
get_started_title: "現在就設立您的班級。"#"Set up your class today" get_started_title: "現在就設立您的班級。"#"Set up your class today"
get_started_subtitle: "設立一個班級、加入您的學生,並在他們學習電腦科學的過程中掌握他們的進度。"#"Set up a class, add your students, and monitor their progress as they learn computer science." get_started_subtitle: "設立一個班級、加入您的學生,並在他們學習電腦科學的過程中掌握他們的進度。"#"Set up a class, add your students, and monitor their progress as they learn computer science."
request_demo: "要求一個demo示範版本"#"Request a Demo" request_demo: "申請一個demo示範版本"#"Request a Demo"
setup_a_class: "設立一個班級"#"Set Up a Class" setup_a_class: "設立一個班級"#"Set Up a Class"
have_an_account: "您是否擁有一個帳號?"#"Have an account?" have_an_account: "您是否擁有一個帳號?"#"Have an account?"
logged_in_as: "您現在登入的身分為"#"You are currently logged in as" logged_in_as: "您現在登入的身分為"#"You are currently logged in as"
@ -69,7 +69,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
computer_science: "全年齡向的電腦科學課程"#"Computer science courses for all ages" computer_science: "全年齡向的電腦科學課程"#"Computer science courses for all ages"
show_me_lesson_time: "顯示課程預估時間:"#"Show me lesson time estimates for:" show_me_lesson_time: "顯示課程預估時間:"#"Show me lesson time estimates for:"
curriculum: "課程總共時數:"#"Total curriculum hours:" curriculum: "課程總共時數:"#"Total curriculum hours:"
ffa: "對所有學生都是免費的"#"Free for all students" ffa: "學生免費"#"Free for all students"
lesson_time: "課程時間:"#"Lesson time:" lesson_time: "課程時間:"#"Lesson time:"
coming_soon: "敬請期待!"#"Coming soon!" coming_soon: "敬請期待!"#"Coming soon!"
courses_available_in: "包含JavaScript, Python,和Java的課程(敬請期待!)"#"Courses are available in JavaScript, Python, and Java (coming soon!)" courses_available_in: "包含JavaScript, Python,和Java的課程(敬請期待!)"#"Courses are available in JavaScript, Python, and Java (coming soon!)"
@ -107,7 +107,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
stats: "記錄" stats: "記錄"
code: "程式碼" code: "程式碼"
home: "首頁" home: "首頁"
contribute: "貢獻" contribute: "幫助我們"
legal: "版權聲明" legal: "版權聲明"
about: "關於" about: "關於"
contact: "聯繫我們" contact: "聯繫我們"
@ -124,9 +124,9 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
jobs: "工作" jobs: "工作"
schools: "學校" schools: "學校"
educator_wiki: "教育者 Wiki" educator_wiki: "教育者 Wiki"
get_involved: "參與其中" get_involved: "親身參與"
open_source: "開源 (GitHub)" open_source: "開源 (GitHub)"
support: "支援" support: "取得幫助"
faqs: "FAQs常見問題" faqs: "FAQs常見問題"
help_pref: "需要協助嗎? 寫封Email給我們" help_pref: "需要協助嗎? 寫封Email給我們"
help_suff: "然後我們會與您接觸!" help_suff: "然後我們會與您接觸!"
@ -139,7 +139,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
page_not_found: "找不到網頁" page_not_found: "找不到網頁"
diplomat_suggestion: diplomat_suggestion:
title: "我們翻譯CodeCombat" # This shows up when a player switches to a non-English language using the language selector. title: "我們翻譯CodeCombat" # This shows up when a player switches to a non-English language using the language selector.
sub_heading: "我們需要您的語言技能" sub_heading: "我們需要您的語言技能"
pitch_body: "我們開發了CodeCombat的英文版但是現在我們的玩家遍佈全球。很多人想玩中文版的卻不會說英文所以如果您中英文都會請考慮一下參加我們的翻譯工作幫忙把 CodeCombat 網站還有所有的關卡翻譯成中文(繁體)。" pitch_body: "我們開發了CodeCombat的英文版但是現在我們的玩家遍佈全球。很多人想玩中文版的卻不會說英文所以如果您中英文都會請考慮一下參加我們的翻譯工作幫忙把 CodeCombat 網站還有所有的關卡翻譯成中文(繁體)。"
missing_translations: "直至所有正體中文的翻譯完畢,當無法提供正體中文時還會以英文顯示。" missing_translations: "直至所有正體中文的翻譯完畢,當無法提供正體中文時還會以英文顯示。"
@ -168,7 +168,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
next: "下一步" # Go from choose hero to choose inventory before playing a level next: "下一步" # Go from choose hero to choose inventory before playing a level
change_hero: "更換英雄" # Go back from choose inventory to choose hero change_hero: "更換英雄" # Go back from choose inventory to choose hero
buy_gems: "購買寶石" buy_gems: "購買寶石"
subscription_required: "需要訂購" subscription_required: "訂閱限定"
anonymous: "匿名玩家" anonymous: "匿名玩家"
level_difficulty: "難度" level_difficulty: "難度"
play_classroom_version: "遊玩教室版本" # Choose a level in campaign version that you also can play in one of your courses play_classroom_version: "遊玩教室版本" # Choose a level in campaign version that you also can play in one of your courses
@ -179,7 +179,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
adjust_volume: "調整音量" adjust_volume: "調整音量"
campaign_multiplayer: "多人競技場" campaign_multiplayer: "多人競技場"
campaign_multiplayer_description: "…在這裡您可以和其他玩家進行對戰。" campaign_multiplayer_description: "…在這裡您可以和其他玩家進行對戰。"
campaign_old_multiplayer: "(過時的)舊多人競技場" campaign_old_multiplayer: "(過時的)舊多人競技場"
campaign_old_multiplayer_description: "多個文明時代的遺跡。已沒有模擬運行這些陳舊、英雄蕪絕的多人競技場。" campaign_old_multiplayer_description: "多個文明時代的遺跡。已沒有模擬運行這些陳舊、英雄蕪絕的多人競技場。"
code: code:
@ -387,7 +387,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
done: "完成" done: "完成"
next_level: "下一個關卡:" next_level: "下一個關卡:"
next_game: "下一個遊戲" next_game: "下一個遊戲"
show_menu: "顯示遊戲" show_menu: "顯示遊戲"
home: "首頁" # Not used any more, will be removed soon. home: "首頁" # Not used any more, will be removed soon.
level: "關卡" # Like "Level: Dungeons of Kithgard" level: "關卡" # Like "Level: Dungeons of Kithgard"
skip: "跳過" skip: "跳過"
@ -425,11 +425,11 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
victory_new_item: "新的物品" victory_new_item: "新的物品"
victory_viking_code_school: "太厲害了您剛完成了非常困難的關卡如果您想成為一個軟體開發人員您就應該去試一下Viking Code School。在這裡您可以把您的知識增長到另一個台階。只需要14個星期您就能成為一個專業的網頁開發人員。" victory_viking_code_school: "太厲害了您剛完成了非常困難的關卡如果您想成為一個軟體開發人員您就應該去試一下Viking Code School。在這裡您可以把您的知識增長到另一個台階。只需要14個星期您就能成為一個專業的網頁開發人員。"
victory_become_a_viking: "成為一個維京人。" victory_become_a_viking: "成為一個維京人。"
victory_no_progress_for_teachers: "老師不能保存進度,但是您可以將自己的帳號加入班級作為學生來保存進度。" #"Progress is not saved for teachers. But, you can add a student account to your classroom for yourself." victory_no_progress_for_teachers: "老師不能保存進度,但是您可以將自己的帳號加入班級作為學生來保存進度。" #"Progress is not saved for teachers. But, you can add a student account to your classroom for yourself."
guide_title: "指南" guide_title: "指南"
tome_cast_button_run: "" tome_cast_button_run: ""
tome_cast_button_running: "" tome_cast_button_running: ""
tome_cast_button_ran: "已運" tome_cast_button_ran: "已運"
tome_submit_button: "送出" tome_submit_button: "送出"
tome_reload_method: "重新載入該方法的原程式碼" # Title text for individual method reload button. tome_reload_method: "重新載入該方法的原程式碼" # Title text for individual method reload button.
tome_select_method: "選擇一個方法" tome_select_method: "選擇一個方法"
@ -522,7 +522,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
tip_mulan: "相信你可以做到,然後你就會做到。 - Mulan"#"Believe you can, then you will. - Mulan" tip_mulan: "相信你可以做到,然後你就會做到。 - Mulan"#"Believe you can, then you will. - Mulan"
game_menu: game_menu:
inventory_tab: "倉庫" inventory_tab: "道具欄"
save_load_tab: "保存/載入" save_load_tab: "保存/載入"
options_tab: "選項" options_tab: "選項"
guide_tab: "導引" guide_tab: "導引"
@ -546,16 +546,16 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
week: "這週" week: "這週"
all: "長期以來" all: "長期以來"
time: "時間" time: "時間"
damage_taken: "遭受的攻擊" damage_taken: "遭受的傷害"
damage_dealt: "造成的攻擊" damage_dealt: "造成的傷害"
difficulty: "困難度" difficulty: "困難度"
gold_collected: "收集的黃金" gold_collected: "收集的黃金"
inventory: inventory:
equipped_item: "已裝備" equipped_item: "已裝備"
required_purchase_title: "需要" required_purchase_title: "必要的"
available_item: "可使用" available_item: "可使用"
restricted_title: "被限制" restricted_title: "被限制"
should_equip: "連點物品兩下可裝備" should_equip: "連點物品兩下可裝備"
equipped: "(已裝備)" equipped: "(已裝備)"
locked: "(需解鎖)" locked: "(需解鎖)"
@ -578,12 +578,12 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
subscribe: subscribe:
comparison_blurb: "訂閱 CodeCombat 來磨練您的技巧!" comparison_blurb: "訂閱 CodeCombat 來磨練您的技巧!"
feature1: "__levelsCount__ 個以上的基本關卡分在__worldsCount__張地圖中" # {change} feature1: "__levelsCount__ 個以上的基本關卡分在__worldsCount__張地圖中" # {change}
feature2: "__heroesCount__ 個強力的<strong>新英雄</strong>並且每位都有不同技能!" # {change} feature2: "__heroesCount__ 個強力的<strong>新英雄</strong>並且每位都有不同技能!" # {change}
feature3: "__bonusLevelsCount__ 個以上的額外關卡" # {change} feature3: "__bonusLevelsCount__ 個以上的額外關卡" # {change}
feature4: "每個月<strong>{{gems}}顆額外寶石</strong>" feature4: "每個月<strong>{{gems}}顆額外寶石</strong>"
feature5: "影片教學" feature5: "影片教學"
feature6: "頂級信箱支援" feature6: "高級郵件幫助"
feature7: "私密<strong>部落</strong>" feature7: "私密<strong>部落</strong>"
feature8: "<strong>沒有廣告!</strong>" feature8: "<strong>沒有廣告!</strong>"
free: "免費" free: "免費"
@ -744,7 +744,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
scott_title: "共同創辦人" # {change} scott_title: "共同創辦人" # {change}
scott_blurb: "理性至上" scott_blurb: "理性至上"
# maka_title: "Customer Advocate" # maka_title: "Customer Advocate"
# maka_blurb: "Storyteller" maka_blurb: "說書人"
rob_title: "編譯工程師" # {change} rob_title: "編譯工程師" # {change}
rob_blurb: "編寫一些的程式碼" rob_blurb: "編寫一些的程式碼"
josh_c_title: "遊戲設計師" josh_c_title: "遊戲設計師"
@ -1184,9 +1184,9 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
# last_level: "Last Level" # last_level: "Last Level"
# welcome_to_hoc: "Adventurers, welcome to our Hour of Code!" # welcome_to_hoc: "Adventurers, welcome to our Hour of Code!"
# logged_in_as: "Logged in as:" # logged_in_as: "Logged in as:"
# not_you: "Not you?" not_you: "不是您嗎?"#"Not you?"
# welcome_back: "Hi adventurer, welcome back!" # welcome_back: "Hi adventurer, welcome back!"
# continue_playing: "Continue Playing" continue_playing: "繼續進行遊戲"#"Continue Playing"
# more_options: "More options:" # more_options: "More options:"
# option1_header: "Option 1: Invite students via email" # option1_header: "Option 1: Invite students via email"
# option1_body: "Students will automatically be sent an invitation to join this class, and will need to create an account with a username and password." # option1_body: "Students will automatically be sent an invitation to join this class, and will need to create an account with a username and password."
@ -1223,7 +1223,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
# class_code: "Class Code" # class_code: "Class Code"
# optional_ask: "optional - ask your teacher to give you one!" # optional_ask: "optional - ask your teacher to give you one!"
# optional_school: "optional - what school do you go to?" # optional_school: "optional - what school do you go to?"
# start_playing: "Start Playing" start_playing: "開始遊戲"#"Start Playing"
# skip_this: "Skip this, I'll create an account later!" # skip_this: "Skip this, I'll create an account later!"
# welcome: "Welcome" # welcome: "Welcome"
# getting_started: "Getting Started with Courses" # getting_started: "Getting Started with Courses"
@ -1398,7 +1398,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
ambassador_title: "使節" ambassador_title: "使節"
ambassador_title_description: "(Support)" ambassador_title_description: "(Support)"
ambassador_summary: "安撫我們論壇的用戶並且提供發問者適當的方向。我們的使節代表CodeCombat面對全世界。" ambassador_summary: "安撫我們論壇的用戶並且提供發問者適當的方向。我們的使節代表CodeCombat面對全世界。"
# teacher_title: "Teacher" teacher_title: "教師"#"Teacher"
editor: editor:
main_title: "CodeCombat編輯器" main_title: "CodeCombat編輯器"
@ -1407,7 +1407,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
level_title: "關卡編輯器" level_title: "關卡編輯器"
achievement_title: "目標編輯器" achievement_title: "目標編輯器"
poll_title: "投票編輯器" poll_title: "投票編輯器"
back: "後退" back: "返回"
revert: "還原" revert: "還原"
revert_models: "還原模式" revert_models: "還原模式"
pick_a_terrain: "選擇地形" pick_a_terrain: "選擇地形"
@ -1511,7 +1511,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
join_desc_3: ",或者找到我們在" join_desc_3: ",或者找到我們在"
join_desc_4: "讓我們從這開始!" join_desc_4: "讓我們從這開始!"
join_url_email: "發信給我們" join_url_email: "發信給我們"
# join_url_slack: "public Slack channel" join_url_slack: "公共休閒頻道"#"public Slack channel"
archmage_subscribe_desc: "取得郵件關於新的編程機會和公告。" archmage_subscribe_desc: "取得郵件關於新的編程機會和公告。"
artisan_introduction_pref: "我們必須建造更多的關卡!大家為了更多的內容在高聲吶喊,但只靠我們只能建造這麼多。現在您的工作場所就是一關;我們的關卡編輯器是勉強可用的,所以請小心。只要您有新的靈感,不論從簡單的 for-loops 到" artisan_introduction_pref: "我們必須建造更多的關卡!大家為了更多的內容在高聲吶喊,但只靠我們只能建造這麼多。現在您的工作場所就是一關;我們的關卡編輯器是勉強可用的,所以請小心。只要您有新的靈感,不論從簡單的 for-loops 到"
artisan_introduction_suf: ",那個這職業會適合您。" artisan_introduction_suf: ",那個這職業會適合您。"
@ -1555,7 +1555,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
ambassador_join_note_strong: "注意" ambassador_join_note_strong: "注意"
ambassador_join_note_desc: "其中一件我們優先要做的事情是建立多人連線,玩家將面臨難以獨自解決的關卡而且可以招喚更高等級的法師來幫助。這將對於使節是一個很棒的方式來完成自己的責任。我們會及時地向大家公佈!" ambassador_join_note_desc: "其中一件我們優先要做的事情是建立多人連線,玩家將面臨難以獨自解決的關卡而且可以招喚更高等級的法師來幫助。這將對於使節是一個很棒的方式來完成自己的責任。我們會及時地向大家公佈!"
ambassador_subscribe_desc: "取得更新和多人連線開發的郵件。" ambassador_subscribe_desc: "取得更新和多人連線開發的郵件。"
# teacher_subscribe_desc: "Get emails on updates and announcements for teachers." teacher_subscribe_desc: "取得給教師的更新以及消息。"#"Get emails on updates and announcements for teachers."
changes_auto_save: "當您勾選後,改變將自動儲存。" changes_auto_save: "當您勾選後,改變將自動儲存。"
diligent_scribes: "我們勤奮的文書:" diligent_scribes: "我們勤奮的文書:"
powerful_archmages: "我們強勁的大法師:" powerful_archmages: "我們強勁的大法師:"
@ -1565,11 +1565,11 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
helpful_ambassadors: "我們善於幫助的使節:" helpful_ambassadors: "我們善於幫助的使節:"
ladder: ladder:
please_login: "在參與對前請先登入。" please_login: "在參與對前請先登入。"
my_matches: "我的對手" my_matches: "我的對手"
simulate: "模擬" simulate: "模擬"
simulation_explanation: "通過模擬遊戲,您可以使您的遊戲更快得到評分!" simulation_explanation: "通過模擬遊戲,您可以使您的遊戲更快得到評分!"
simulation_explanation_leagues: "會主要給在你的部落或者課程的同伴幫忙模擬遊戲。" simulation_explanation_leagues: "主要會為你的部落或者課程的同伴幫忙模擬遊戲。"
simulate_games: "模擬遊戲!" simulate_games: "模擬遊戲!"
games_simulated_by: "您模擬過的次數:" games_simulated_by: "您模擬過的次數:"
games_simulated_for: "替您模擬的次數:" games_simulated_for: "替您模擬的次數:"
@ -1590,14 +1590,14 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
rank_failed: "評分失敗" rank_failed: "評分失敗"
rank_being_ranked: "已評分" rank_being_ranked: "已評分"
rank_last_submitted: "已上傳 " rank_last_submitted: "已上傳 "
help_simulate: "模擬遊戲需要幫助" help_simulate: "幫我們模擬遊戲?"
code_being_simulated: "您的新程式碼正在被其他人模擬評分中。分數將隨每次新的配對而更新。" code_being_simulated: "您的新程式碼正在被其他人模擬評分中。分數將隨每次新的配對而更新。"
no_ranked_matches_pre: "對這個隊伍尚未有評分過的配對!" no_ranked_matches_pre: "對這個隊伍尚未有評分過的配對!"
no_ranked_matches_post: " 在別人的戰場上扮演競爭者並且回到這使您的程式碼接受評分。" no_ranked_matches_post: " 在別人的戰場上扮演對手並且回到這使您的程式碼接受評分。"
choose_opponent: "選擇對手" choose_opponent: "選擇對手"
select_your_language: "選擇您的語言!" select_your_language: "選擇您的語言!"
tutorial_play: "教學" tutorial_play: "教學"
tutorial_recommended: "如果您尚未玩過,推薦先嘗試教學" tutorial_recommended: "如果您尚未玩過,建議先嘗試教學"
tutorial_skip: "略過教學" tutorial_skip: "略過教學"
tutorial_not_sure: "不確定發生啥事?" tutorial_not_sure: "不確定發生啥事?"
tutorial_play_first: "先嘗試教學" tutorial_play_first: "先嘗試教學"
@ -1650,11 +1650,11 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
amount_achieved: "數量" amount_achieved: "數量"
achievement: "成就" achievement: "成就"
current_xp_prefix: "當前總共" current_xp_prefix: "當前總共"
current_xp_postfix: "經驗" current_xp_postfix: "經驗"
new_xp_prefix: "獲得" new_xp_prefix: "獲得"
new_xp_postfix: "經驗" new_xp_postfix: "經驗"
left_xp_prefix: "還需要" left_xp_prefix: "還需要"
left_xp_infix: "經驗" left_xp_infix: "經驗"
left_xp_postfix: "到下一個等級" left_xp_postfix: "到下一個等級"
account: account:
@ -1694,13 +1694,13 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
# purchase_code1: "Subscription Codes can be redeemed to add premium subscription time to one or more CodeCombat accounts." # purchase_code1: "Subscription Codes can be redeemed to add premium subscription time to one or more CodeCombat accounts."
# purchase_code2: "Each CodeCombat account can only redeem a particular Subscription Code once." # purchase_code2: "Each CodeCombat account can only redeem a particular Subscription Code once."
# purchase_code3: "Subscription Code months will be added to the end of any existing subscription on the account." # purchase_code3: "Subscription Code months will be added to the end of any existing subscription on the account."
# users: "Users" users: "使用者"#"Users"
# months: "Months" months: "月數"#"Months"
purchase_total: "總共" purchase_total: "總共"
purchase_button: "提交購買" purchase_button: "提交購買"
your_codes: "你的訂閱碼:" # {change} your_codes: "你的訂閱碼:" # {change}
redeem_codes: "兌換訂閱碼" redeem_codes: "兌換訂閱碼"
# prepaid_code: "Prepaid Code" prepaid_code: "預付代碼"#"Prepaid Code"
# lookup_code: "Lookup prepaid code" # lookup_code: "Lookup prepaid code"
# apply_account: "Apply to your account" # apply_account: "Apply to your account"
# copy_link: "You can copy the code's link and send it to someone." # copy_link: "You can copy the code's link and send it to someone."
@ -1847,7 +1847,7 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
nutshell_description: "我們在關卡編輯器裡公開的任何資源,您都可以在製作關卡時隨意使用,但我們保留在 codecombat.com 之上創建的關卡本身傳播的權利,因為我們往後可能決定以它們收費。" nutshell_description: "我們在關卡編輯器裡公開的任何資源,您都可以在製作關卡時隨意使用,但我們保留在 codecombat.com 之上創建的關卡本身傳播的權利,因為我們往後可能決定以它們收費。"
canonical: "我們宣告這篇說明的英文版本是權威版本。如果各個翻譯版本之間有任何衝突,以英文版為準。" canonical: "我們宣告這篇說明的英文版本是權威版本。如果各個翻譯版本之間有任何衝突,以英文版為準。"
third_party_title: "第三方服務" third_party_title: "第三方服務"
# third_party_description: "CodeCombat uses the following third party services (among others):" third_party_description: "CodeCombat使用下列的第三方服務"#"CodeCombat uses the following third party services (among others):"
ladder_prizes: ladder_prizes:
title: "錦標賽獎項" # This section was for an old tournament and doesn't need new translations now. title: "錦標賽獎項" # This section was for an old tournament and doesn't need new translations now.
@ -1869,19 +1869,19 @@ module.exports = nativeDescription: "繁體中文", englishDescription: "Chinese
license: "許可證" license: "許可證"
oreilly: "您選擇的電子書" oreilly: "您選擇的電子書"
# calendar: calendar:
# year: "Year" year: ""#"Year"
# day: "Day" day: ""#"Day"
# month: "Month" month: ""#"Month"
# january: "January" january: "一月"#"January"
# february: "February" february: "二月"#"February"
# march: "March" march: "三月"#"March"
# april: "April" april: "四月"#"April"
# may: "May" may: "五月"#"May"
# june: "June" june: "六月"#"June"
# july: "July" july: "七月"#"July"
# august: "August" august: "八月"#"August"
# september: "September" september: "九月"#"September"
# october: "October" october: "十月"#"October"
# november: "November" november: "十一月"#"November"
# december: "December" december: "十二月"#"December"

View file

@ -20,7 +20,7 @@ defaultTasks = [
'Choose music file in Introduction script.' 'Choose music file in Introduction script.'
'Choose autoplay in Introduction script.' 'Choose autoplay in Introduction script.'
'Add Clojure/Lua/CoffeeScript.' 'Add Lua/CoffeeScript/Java.'
'Write the description.' 'Write the description.'
'Write the guide.' 'Write the guide.'
@ -57,7 +57,7 @@ SpecificArticleSchema.properties.i18n = {type: 'object', format: 'i18n', props:
SpecificArticleSchema.displayProperty = 'name' SpecificArticleSchema.displayProperty = 'name'
side = {title: 'Side', description: 'A side.', type: 'string', 'enum': ['left', 'right', 'top', 'bottom']} side = {title: 'Side', description: 'A side.', type: 'string', 'enum': ['left', 'right', 'top', 'bottom']}
thang = {title: 'Thang', description: 'The name of a Thang.', type: 'string', maxLength: 30, format: 'thang'} thang = {title: 'Thang', description: 'The name of a Thang.', type: 'string', maxLength: 60, format: 'thang'}
eventPrereqValueTypes = ['boolean', 'integer', 'number', 'null', 'string'] # not 'object' or 'array' eventPrereqValueTypes = ['boolean', 'integer', 'number', 'null', 'string'] # not 'object' or 'array'
EventPrereqSchema = c.object {title: 'Event Prerequisite', format: 'event-prereq', description: 'Script requires that the value of some property on the event triggering it to meet some prerequisite.', required: ['eventProps']}, EventPrereqSchema = c.object {title: 'Event Prerequisite', format: 'event-prereq', description: 'Script requires that the value of some property on the event triggering it to meet some prerequisite.', required: ['eventProps']},

View file

@ -0,0 +1,6 @@
#artisans-view
text-align: center
a
font-size: xx-large
img
border-radius: 8px

View file

@ -0,0 +1,12 @@
#level-tasks-view
#levelTable
width: 100%
.tasksTable
width: 100%
.tasks
width: 87.5%
.taskOwner
width: 12.5%

View file

@ -0,0 +1,9 @@
#solution-problems-view
.problemType
width: 87.5%
.problemValue
width: 12.5%
.problemsTable
width: 100%

View file

@ -9,4 +9,4 @@
width: 87.5% width: 87.5%
.taskOwner .taskOwner
width: 12.5% width: 12.5%

View file

@ -5,7 +5,7 @@ block content
p p
span(data-i18n="account.unsubscribe") Unsubscribing for span(data-i18n="account.unsubscribe") Unsubscribing for
span span
strong= email strong= view.email
button.btn.btn-warning#unsubscribe-button(data-i18n="account.unsubscribe_button") Do it button.btn.btn-warning#unsubscribe-button(data-i18n="account.unsubscribe_button") Do it

View file

@ -9,25 +9,25 @@ block content
.row .row
.col-md-5.big-stat.active-classes .col-md-5.big-stat.active-classes
div.description Monthly Active Classes div.description Monthly Active Classes
if activeClasses.length > 0 if view.activeClasses.length > 0
div.count= activeClasses[0].groups[activeClasses[0].groups.length - 1] div.count= view.activeClasses[0].groups[view.activeClasses[0].groups.length - 1]
.col-md-5.big-stat.recurring-revenue .col-md-5.big-stat.recurring-revenue
div.description Monthly Recurring Revenue div.description Monthly Recurring Revenue
if revenue.length > 0 if view.revenue.length > 0
div.count $#{Math.round((revenue[0].groups[revenue[0].groups.length - 1]) / 100)} div.count $#{Math.round((view.revenue[0].groups[view.revenue[0].groups.length - 1]) / 100)}
.col-md-5.big-stat.classroom-active-users .col-md-5.big-stat.classroom-active-users
div.description Classroom Monthly Active Users div.description Classroom Monthly Active Users
if activeUsers.length > 0 if view.activeUsers.length > 0
- var classroomBigMAU = 0; - var classroomBigMAU = 0;
each count, event in activeUsers[0].events each count, event in view.activeUsers[0].events
if event.indexOf('MAU classroom') >= 0 if event.indexOf('MAU classroom') >= 0
- classroomBigMAU += count; - classroomBigMAU += count;
div.count= classroomBigMAU div.count= classroomBigMAU
.col-md-5.big-stat.campaign-active-users .col-md-5.big-stat.campaign-active-users
div.description Campaign Monthly Active Users div.description Campaign Monthly Active Users
if activeUsers.length > 0 if view.activeUsers.length > 0
- var campaignBigMAU = 0; - var campaignBigMAU = 0;
each count, event in activeUsers[0].events each count, event in view.activeUsers[0].events
if event.indexOf('MAU campaign') >= 0 if event.indexOf('MAU campaign') >= 0
- campaignBigMAU += count; - campaignBigMAU += count;
div.count= campaignBigMAU div.count= campaignBigMAU
@ -71,9 +71,9 @@ block content
table.table.table-striped.table-condensed table.table.table-striped.table-condensed
tr tr
th Day th Day
for group in activeClassGroups for group in view.activeClassGroups
th= group.replace('Active classes', '') th= group.replace('Active classes', '')
each activeClass in activeClasses each activeClass in view.activeClasses
tr tr
td= activeClass.day td= activeClass.day
each val in activeClass.groups each val in activeClass.groups
@ -125,9 +125,9 @@ block content
table.table.table-striped.table-condensed table.table.table-striped.table-condensed
tr tr
th(style='min-width:85px;') Day th(style='min-width:85px;') Day
for group in revenueGroups for group in view.revenueGroups
th= group.replace('DRR ', 'Daily ').replace('MRR ', 'Monthly ') th= group.replace('DRR ', 'Daily ').replace('MRR ', 'Monthly ')
each entry in revenue each entry in view.revenue
tr tr
td= entry.day td= entry.day
each val in entry.groups each val in entry.groups
@ -265,9 +265,9 @@ block content
div Loading ... div Loading ...
h1 Active Users h1 Active Users
if activeUsers.length > 0 if view.activeUsers.length > 0
- var eventNames = []; - var eventNames = [];
each count, event in activeUsers[0].events each count, event in view.activeUsers[0].events
if event.indexOf('classroom') >= 0 if event.indexOf('classroom') >= 0
- eventNames.push(event) - eventNames.push(event)
- eventNames.sort(function (a, b) {return a.localeCompare(b);}); - eventNames.sort(function (a, b) {return a.localeCompare(b);});
@ -276,7 +276,7 @@ block content
th(style='min-width:85px;') Day th(style='min-width:85px;') Day
each eventName in eventNames each eventName in eventNames
th= eventName th= eventName
each activeUser in activeUsers each activeUser in view.activeUsers
tr tr
td= activeUser.day td= activeUser.day
each eventName in eventNames each eventName in eventNames
@ -290,14 +290,14 @@ block content
th Paid Enrollments Redeemed th Paid Enrollments Redeemed
th Trial Enrollments Issued th Trial Enrollments Issued
th Trial Enrollments Redeemed th Trial Enrollments Redeemed
each day in enrollmentDays each day in view.enrollmentDays
tr tr
td= day td= day
if dayEnrollmentsMap[day] if view.dayEnrollmentsMap[day]
td= dayEnrollmentsMap[day].paidIssued || 0 td= view.dayEnrollmentsMap[day].paidIssued || 0
td= dayEnrollmentsMap[day].paidRedeemed || 0 td= view.dayEnrollmentsMap[day].paidRedeemed || 0
td= dayEnrollmentsMap[day].trialIssued || 0 td= view.dayEnrollmentsMap[day].trialIssued || 0
td= dayEnrollmentsMap[day].trialRedeemed || 0 td= view.dayEnrollmentsMap[day].trialRedeemed || 0
else else
td 0 td 0
td 0 td 0
@ -320,9 +320,9 @@ block content
.campaign-monthly-active-users-chart-365.line-chart-container .campaign-monthly-active-users-chart-365.line-chart-container
h1 Active Users h1 Active Users
if activeUsers.length > 0 if view.activeUsers.length > 0
- var eventNames = []; - var eventNames = [];
each count, event in activeUsers[0].events each count, event in view.activeUsers[0].events
if event.indexOf('campaign') >= 0 if event.indexOf('campaign') >= 0
- eventNames.push(event) - eventNames.push(event)
- eventNames.sort(function (a, b) {return a.localeCompare(b);}); - eventNames.sort(function (a, b) {return a.localeCompare(b);});
@ -331,7 +331,7 @@ block content
th(style='min-width:85px;') Day th(style='min-width:85px;') Day
each eventName in eventNames each eventName in eventNames
th= eventName th= eventName
each activeUser in activeUsers each activeUser in view.activeUsers
tr tr
td= activeUser.day td= activeUser.day
each eventName in eventNames each eventName in eventNames
@ -345,9 +345,9 @@ block content
.campaign-vs-classroom-monthly-active-users-chart.line-chart-container .campaign-vs-classroom-monthly-active-users-chart.line-chart-container
h1 Active Users h1 Active Users
if activeUsers.length > 0 if view.activeUsers.length > 0
- var eventNames = []; - var eventNames = [];
each count, event in activeUsers[0].events each count, event in view.activeUsers[0].events
- eventNames.push(event) - eventNames.push(event)
- eventNames.sort(function (a, b) { - eventNames.sort(function (a, b) {
- if (a.indexOf('campaign') == b.indexOf('campaign') || a.indexOf('classroom') == b.indexOf('classroom')) { - if (a.indexOf('campaign') == b.indexOf('campaign') || a.indexOf('classroom') == b.indexOf('classroom')) {
@ -365,7 +365,7 @@ block content
th(style='min-width:85px;') Day th(style='min-width:85px;') Day
each eventName in eventNames each eventName in eventNames
th= eventName th= eventName
each activeUser in activeUsers each activeUser in view.activeUsers
tr tr
td= activeUser.day td= activeUser.day
each eventName in eventNames each eventName in eventNames

View file

@ -0,0 +1,13 @@
extends /templates/base
block content
img(src='/images/pages/user/artisan.png')
div
a(href='/artisans/thang-tasks')
|Thang Tasks
div
a(href="/artisans/level-tasks")
|Level Tasks
div
a(href="/artisans/solution-problems")
|Solution Problems

View file

@ -0,0 +1,36 @@
// DNT
extends /templates/base
block content
#level-tasks-view
div
a(href='/artisans')
span.glyphicon.glyphicon-chevron-left
span Artisans Home
br
input.searchInput#name-search(placeholder='Filter: Level Name')
br
input.searchInput#desc-search(placeholder='Filter: Task Description')
hr
div#level-table
if view.processedLevels
table.table.table-striped
tr
th Level Name
th Task List
for level in view.processedLevels
if view.hasIncompleteTasks(level)
+levelRow(level)
else
div No view.processedLevels
mixin levelRow(level)
tr
td.taskOwner
a(href= 'level/' + level.slug)= level.name
td.tasks
table.table-striped.table-hover.tasksTable
for task in (level.tasks || [])
if !task.complete
tr
td= task.name

View file

@ -0,0 +1,26 @@
// DNT
extends /templates/base
block content
#solution-problems-view
div
a(href='/artisans')
span.glyphicon.glyphicon-chevron-left
span Artisans Home
br
div Total number of problems: #{view.problemCount}
hr
table.table.table-striped#level-table
tr
th Level Name
th Solution Problems
for level in (view.parsedLevels || [])
if (level.problems || []).length != 0
tr
td(style="width:10%")= level.level.get('name')
td
table.table-striped.table-hover.problemsTable
for problem in (level.problems || [])
tr(style="width:100%")
td.problemValue= problem.value
td.problemType= problem.type

View file

@ -0,0 +1,35 @@
// DNT
extends /templates/base
block content
#thang-tasks-view
div
a(href='/artisans')
span.glyphicon.glyphicon-chevron-left
span Artisans Home
input.inputSearch#name-search(placeholder='Filter: Thang Name')
br
input.inputSearch#desc-search(placeholder='Filter: Task Description')
hr
div#thang-table
if view.processedThangs
table.table.table-striped
tr
th Thang Name
th Task List
for thang in view.processedThangs
if view.hasIncompleteTasks(thang)
+thangRow(thang)
else
span No view.processedThangs
mixin thangRow(thang)
tr
td.taskOwner
a(href= 'thang/' + thang.get('slug'))= thang.get('name')
td.tasks
table.table-striped.table-hover.tasksTable
for task in (thang.tasks || [])
if !task.complete
tr
td= task.name

View file

@ -32,8 +32,8 @@ block content
th(data-i18n="clans.chieftain") Chieftain th(data-i18n="clans.chieftain") Chieftain
th th
tbody tbody
if publicClans.length if view.publicClansArray.length
each clan in publicClans each clan in view.publicClansArray
tr tr
td td
if clan.get('ownerID') === me.id if clan.get('ownerID') === me.id
@ -42,12 +42,12 @@ block content
a(href="/clans/#{clan.id}")= clan.get('name') a(href="/clans/#{clan.id}")= clan.get('name')
td= clan.get('memberCount') td= clan.get('memberCount')
td td
if idNameMap && idNameMap[clan.get('ownerID')] if view.idNameMap && view.idNameMap[clan.get('ownerID')]
a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')] a(href="/user/#{clan.get('ownerID')}")= view.idNameMap[clan.get('ownerID')]
else else
a(href="/user/#{clan.get('ownerID')}") Anoner a(href="/user/#{clan.get('ownerID')}") Anoner
td td
if myClanIDs.indexOf(clan.id) < 0 if view.myClanIDs.indexOf(clan.id) < 0
button.btn.btn-success.join-clan-btn(data-id="#{clan.id}", data-i18n="clans.join_clan") Join Clan button.btn.btn-success.join-clan-btn(data-id="#{clan.id}", data-i18n="clans.join_clan") Join Clan
else if clan.get('ownerID') !== me.id else if clan.get('ownerID') !== me.id
button.btn.btn-xs.btn-warning.leave-clan-btn(data-id="#{clan.id}", data-i18n="clans.leave_clan") Leave Clan button.btn.btn-xs.btn-warning.leave-clan-btn(data-id="#{clan.id}", data-i18n="clans.leave_clan") Leave Clan
@ -62,8 +62,8 @@ block content
th(data-i18n="clans.type") Type th(data-i18n="clans.type") Type
th th
tbody tbody
if myClans.length if view.myClansArray.length
each clan in myClans each clan in view.myClansArray
tr tr
td td
if clan.get('ownerID') === me.id if clan.get('ownerID') === me.id
@ -72,8 +72,8 @@ block content
a(href="/clans/#{clan.id}")= clan.get('name') a(href="/clans/#{clan.id}")= clan.get('name')
td= clan.get('memberCount') td= clan.get('memberCount')
td td
if idNameMap && idNameMap[clan.get('ownerID')] if view.idNameMap && view.idNameMap[clan.get('ownerID')]
a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')] a(href="/user/#{clan.get('ownerID')}")= view.idNameMap[clan.get('ownerID')]
else else
a(href="/user/#{clan.get('ownerID')}") Anoner a(href="/user/#{clan.get('ownerID')}") Anoner
td= clan.get('type') td= clan.get('type')

View file

@ -65,7 +65,7 @@ block content
span= view.course.get('name') span= view.course.get('name')
span . span .
.col-md-6 .col-md-6
if view.nextCourseInstance if view.nextCourseInstance && _.contains(view.nextCourseInstance.get('members'), me.id)
a.btn.btn-lg.btn-success(href="/courses/#{view.nextCourse.id}/#{view.nextCourseInstance.id}") a.btn.btn-lg.btn-success(href="/courses/#{view.nextCourse.id}/#{view.nextCourseInstance.id}")
h1= view.nextCourse.get('name') h1= view.nextCourse.get('name')
p= view.nextCourse.get('description') p= view.nextCourse.get('description')

View file

@ -1,29 +0,0 @@
extends /templates/base
block content
#thang-tasks-view
input#nameSearch(placeholder='Filter: Thang Name')
br
input#descSearch(placeholder='Filter: Task Description')
hr
if view.processedThangs
table.table.table-striped#thangTable
tr
th Thang Name
th Task List
for thang in view.processedThangs
if view.hasIncompleteTasks(thang)
+thangRow(thang)
else
span No view.processedThangs
mixin thangRow(thang)
tr
td.taskOwner
a(href= 'thang/' + thang.get('slug'))= thang.get('name')
td.tasks
table.table-striped.table-hover.tasksTable
for task in (thang.tasks || [])
if !task.complete
tr
td= task.name

View file

@ -6,14 +6,12 @@ module.exports = class UnsubscribeView extends RootView
id: 'unsubscribe-view' id: 'unsubscribe-view'
template: template template: template
initialize: ->
@email = @getQueryVariable 'email'
events: events:
'click #unsubscribe-button': 'onUnsubscribeButtonClicked' 'click #unsubscribe-button': 'onUnsubscribeButtonClicked'
getRenderData: ->
context = super()
context.email = @getQueryVariable 'email'
context
onUnsubscribeButtonClicked: -> onUnsubscribeButtonClicked: ->
@$el.find('#unsubscribe-button').hide() @$el.find('#unsubscribe-button').hide()
@$el.find('.progress').show() @$el.find('.progress').show()

View file

@ -16,21 +16,16 @@ module.exports = class AnalyticsView extends RootView
lineColors: ['red', 'blue', 'green', 'purple', 'goldenrod', 'brown', 'darkcyan'] lineColors: ['red', 'blue', 'green', 'purple', 'goldenrod', 'brown', 'darkcyan']
minSchoolCount: 20 minSchoolCount: 20
constructor: (options) -> initialize: ->
super options @activeClasses = []
@activeClassGroups = {}
@activeUsers = []
@revenue = []
@revenueGroups = {}
@dayEnrollmentsMap = {}
@enrollmentDays = []
@loadData() @loadData()
getRenderData: ->
context = super()
context.activeClasses = @activeClasses ? []
context.activeClassGroups = @activeClassGroups ? {}
context.activeUsers = @activeUsers ? []
context.revenue = @revenue ? []
context.revenueGroups = @revenueGroups ? {}
context.dayEnrollmentsMap = @dayEnrollmentsMap ? {}
context.enrollmentDays = @enrollmentDays ? []
context
afterRender: -> afterRender: ->
super() super()
@createLineCharts() @createLineCharts()

View file

@ -0,0 +1,6 @@
RootView = require 'views/core/RootView'
template = require 'templates/artisans/artisans-view'
module.exports = class ArtisansView extends RootView
template: template
id: 'artisans-view'

View file

@ -0,0 +1,58 @@
RootView = require 'views/core/RootView'
template = require 'templates/artisans/level-tasks-view'
Campaigns = require 'collections/Campaigns'
Campaign = require 'models/Campaign'
module.exports = class LevelTasksView extends RootView
template: template
id: 'level-tasks-view'
events:
'input .searchInput': 'processLevels'
'change .searchInput': 'processLevels'
excludedCampaigns = [
'picoctf', 'auditions'
]
levels: {}
processedLevels: {}
initialize: () ->
@processLevels = _.debounce(@processLevels, 250)
@campaigns = new Campaigns()
@listenTo(@campaigns, 'sync', @onCampaignsLoaded)
@supermodel.trackRequest(@campaigns.fetch(
data:
project: 'name,slug,levels,tasks'
))
onCampaignsLoaded: (campCollection) ->
@levels = {}
for campaign in campCollection.models
campaignSlug = campaign.get 'slug'
continue if campaignSlug in excludedCampaigns
levels = campaign.get 'levels'
for key, level of levels
levelSlug = level.slug
@levels[levelSlug] = level
@processLevels()
processLevels: () ->
@processedLevels = {}
for key, level of @levels
continue unless ///#{$('#name-search')[0].value}///i.test level.name
filteredTasks = level.tasks.filter (elem) ->
# Similar case-insensitive search of input vs description (name).
return ///#{$('#desc-search')[0].value}///i.test elem.name
@processedLevels[key] = {
tasks: filteredTasks
name: level.name
}
@renderSelectors '#level-table'
# Jade helper
hasIncompleteTasks: (level) ->
return level.tasks and level.tasks.filter((_elem) -> return not _elem.complete).length > 0

View file

@ -0,0 +1,171 @@
RootView = require 'views/core/RootView'
template = require 'templates/artisans/solution-problems-view'
Level = require 'models/Level'
Campaign = require 'models/Campaign'
CocoCollection = require 'collections/CocoCollection'
Campaigns = require 'collections/Campaigns'
Levels = require 'collections/Levels'
module.exports = class SolutionProblemsView extends RootView
template: template
id: 'solution-problems-view'
excludedCampaigns = [
# Misc. campaigns
'picoctf', 'auditions'
# Campaign-version campaigns
#'dungeon', 'forest', 'desert', 'mountain', 'glacier'
# Test campaigns
'dungeon-branching-test', 'forest-branching-test', 'desert-branching-test'
# Course-version campaigns
#'intro', 'course-2', 'course-3', 'course-4', 'course-5', 'course-6'
]
excludedSimulationLevels = [
# Course Arenas
'wakka-maul', 'cross-bones'
]
excludedSolutionLevels = [
# Multiplayer Levels
'cavern-survival'
'dueling-grounds', 'multiplayer-treasure-grove'
'harrowland'
'zero-sum'
'ace-of-coders', 'capture-their-flag'
]
simulationRequirements = [
'seed'
'succeeds'
'heroConfig'
'frameCount'
'goals'
]
includedLanguages = [
'python', 'javascript', 'java', 'lua', 'coffeescript'
]
# TODO: Phase the following out:
excludedLanguages = [
'java', 'lua', 'coffeescript'
]
excludedLevelSnippets = [
'treasure', 'brawl', 'siege'
]
unloadedCampaigns: 0
campaignLevels: {}
loadedLevels: {}
parsedLevels: []
problemCount: 0
initialize: ->
@campaigns = new Campaigns([])
@listenTo(@campaigns, 'sync', @onCampaignsLoaded)
@supermodel.trackRequest(@campaigns.fetch(
data:
project:'slug'
))
onCampaignsLoaded: (campCollection) ->
for campaign in campCollection.models
campaignSlug = campaign.get('slug')
continue if campaignSlug in excludedCampaigns
@unloadedCampaigns++
@campaignLevels[campaignSlug] = new Levels()
@listenTo(@campaignLevels[campaignSlug], 'sync', @onLevelsLoaded)
@supermodel.trackRequest(@campaignLevels[campaignSlug].fetchForCampaign(campaignSlug,
data:
project: 'thangs,name,slug,campaign'
))
onLevelsLoaded: (lvlCollection) ->
for level in lvlCollection.models
@loadedLevels[level.get('slug')] = level
if --@unloadedCampaigns is 0
@onAllLevelsLoaded()
onAllLevelsLoaded: ->
for levelSlug, level of @loadedLevels
unless level?
console.error 'Level Slug doesn\'t have associated Level', levelSlug
continue
continue if levelSlug in excludedSolutionLevels
isBad = false
for word in excludedLevelSnippets
if levelSlug.indexOf(word) isnt -1
isBad = true
continue if isBad
thangs = level.get 'thangs'
component = null
thangs = _.filter(thangs, (elem) ->
return _.findWhere(elem.components, (elem2) ->
if elem2.config?.programmableMethods?
component = elem2
return true
)
)
if thangs.length > 1
unless levelSlug in excludedSimulationLevels
console.warn 'Level has more than 1 programmableMethod Thangs', levelSlug
continue
unless component?
console.error 'Level doesn\'t have programmableMethod Thang', levelSlug
continue
plan = component.config.programmableMethods.plan
solutions = plan.solutions or []
problems = []
problems = problems.concat(@findMissingSolutions solutions)
unless levelSlug in excludedSimulationLevels
for solution in solutions
problems = problems.concat(@findSimulationProblems solution)
problems = problems.concat(@findPass solution)
problems = problems.concat(@findIdenticalToSource solution, plan)
@problemCount += problems.length
@parsedLevels.push
level: level
problems: problems
@renderSelectors '#level-table'
findMissingSolutions: (solutions) ->
problems = []
for lang in includedLanguages
if _.findWhere(solutions, (elem) -> return elem.language is lang)
# TODO: Phase the following out:
else if lang not in excludedLanguages
problems.push
type: 'Missing solution language'
value: lang
problems
findSimulationProblems: (solution) ->
problems = []
for req in simulationRequirements
unless solution[req]?
problems.push
type: 'Solution is not simulatable'
value: solution.language
break
problems
findPass: (solution) ->
problems = []
if solution.source.search(/pass\n/) isnt -1
problems.push
type: 'Solution contains pass'
value: solution.language
problems
findIdenticalToSource: (solution, plan) ->
problems = []
source = if solution.lang is 'javascript' then plan.source else plan.languages[solution.language]
if solution.source is source
problems.push
type: 'Solution matches sample code'
value: solution.language
problems

View file

@ -0,0 +1,46 @@
RootView = require 'views/core/RootView'
template = require 'templates/artisans/thang-tasks-view'
ThangType = require 'models/ThangType'
ThangTypes = require 'collections/ThangTypes'
module.exports = class ThangTasksView extends RootView
template: template
id: 'thang-tasks-view'
events:
'input input': 'processThangs'
'change input': 'processThangs'
thangs: {}
processedThangs: {}
initialize: () ->
@processThangs = _.debounce(@processThangs, 250)
@thangs = new ThangTypes()
@listenTo(@thangs, 'sync', @onThangsLoaded)
@supermodel.trackRequest(@thangs.fetch(
data:
project: 'name,tasks,slug'
))
onThangsLoaded: (thangCollection) ->
@processThangs()
processThangs: ->
@processedThangs = @thangs.filter (_elem) ->
# Case-insensitive search of input vs name.
return ///#{$('#name-search')[0].value}///i.test _elem.get('name')
for thang in @processedThangs
thang.tasks = _.filter thang.attributes.tasks, (_elem) ->
# Similar case-insensitive search of input vs description (name).
return ///#{$('#desc-search')[0].value}///i.test _elem.name
@renderSelectors '#thang-table'
sortThangs: (a, b) ->
a.get('name').localeCompare(b.get('name'))
# Jade helper
hasIncompleteTasks: (thang) ->
return thang.tasks and thang.tasks.filter((_elem) -> return not _elem.complete).length > 0

View file

@ -13,6 +13,7 @@ SubscribeModal = require 'views/core/SubscribeModal'
module.exports = class ClansView extends RootView module.exports = class ClansView extends RootView
id: 'clans-view' id: 'clans-view'
template: template template: template
events: events:
'click .create-clan-btn': 'onClickCreateClan' 'click .create-clan-btn': 'onClickCreateClan'
@ -20,28 +21,25 @@ module.exports = class ClansView extends RootView
'click .leave-clan-btn': 'onLeaveClan' 'click .leave-clan-btn': 'onLeaveClan'
'click .private-clan-checkbox': 'onClickPrivateCheckbox' 'click .private-clan-checkbox': 'onClickPrivateCheckbox'
constructor: (options) -> initialize: ->
super options @publicClansArray = []
@initData() @myClansArray = []
@idNameMap = {}
@loadData()
destroy: -> destroy: ->
@stopListening?() @stopListening?()
getRenderData: ->
context = super()
context.idNameMap = @idNameMap
context.publicClans = _.filter(@publicClans.models, (clan) -> clan.get('type') is 'public')
context.myClans = @myClans.models
context.myClanIDs = me.get('clans') ? []
context
afterRender: -> afterRender: ->
super() super()
@setupPrivateInfoPopover() @setupPrivateInfoPopover()
initData: -> onLoaded: ->
@idNameMap = {} super()
@publicClansArray = _.filter(@publicClans.models, (clan) -> clan.get('type') is 'public')
@myClansArray = @myClans.models
loadData: ->
sortClanList = (a, b) -> sortClanList = (a, b) ->
if a.get('memberCount') isnt b.get('memberCount') if a.get('memberCount') isnt b.get('memberCount')
if a.get('memberCount') < b.get('memberCount') then 1 else -1 if a.get('memberCount') < b.get('memberCount') then 1 else -1
@ -52,12 +50,15 @@ module.exports = class ClansView extends RootView
@refreshNames @publicClans.models @refreshNames @publicClans.models
@render?() @render?()
@supermodel.loadCollection(@publicClans, 'public_clans', {cache: false}) @supermodel.loadCollection(@publicClans, 'public_clans', {cache: false})
@myClans = new CocoCollection([], { url: "/db/user/#{me.id}/clans", model: Clan, comparator: sortClanList }) @myClans = new CocoCollection([], { url: "/db/user/#{me.id}/clans", model: Clan, comparator: sortClanList })
@listenTo @myClans, 'sync', => @listenTo @myClans, 'sync', =>
@refreshNames @myClans.models @refreshNames @myClans.models
@render?() @render?()
@supermodel.loadCollection(@myClans, 'my_clans', {cache: false}) @supermodel.loadCollection(@myClans, 'my_clans', {cache: false})
@listenTo me, 'sync', => @render?() @listenTo me, 'sync', => @render?()
@myClanIDs = me.get('clans') ? []
refreshNames: (clans) -> refreshNames: (clans) ->
clanIDs = _.filter(clans, (clan) -> clan.get('type') is 'public') clanIDs = _.filter(clans, (clan) -> clan.get('type') is 'public')

View file

@ -62,6 +62,8 @@ module.exports = class CourseDetailsView extends RootView
# need to figure out the next course instance # need to figure out the next course instance
@courseComplete = true @courseComplete = true
@courseInstances.comparator = 'courseID' @courseInstances.comparator = 'courseID'
# TODO: make this logic use locked course content to figure out the next course, then fetch the
# course instance for that
@supermodel.trackRequest(@courseInstances.fetchForClassroom(classroomID).then(=> @supermodel.trackRequest(@courseInstances.fetchForClassroom(classroomID).then(=>
@nextCourseInstance = _.find @courseInstances.models, (ci) => ci.get('courseID') > @courseID @nextCourseInstance = _.find @courseInstances.models, (ci) => ci.get('courseID') > @courseID
if @nextCourseInstance if @nextCourseInstance

View file

@ -1,48 +0,0 @@
RootView = require 'views/core/RootView'
template = require 'templates/editor/thangTasksView'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
module.exports = class ThangTasksView extends RootView
template: template
id: 'thang-tasks-view'
events:
'input input': 'searchUpdate'
'change input': 'searchUpdate'
constructor: (options) ->
super options
@thangs = new CocoCollection([],
url: '/db/thang.type?project=name,tasks,slug'
model: ThangType
comparator: @sortThangs
)
@lastLoad = (new Date()).getTime()
@listenTo(@thangs, 'sync', @onThangsLoaded)
@supermodel.loadCollection(@thangs, 'thangs')
searchUpdate: ->
if not @lastLoad? or (new Date()).getTime() - @lastLoad > 60 * 1000 * 1 # Update only after a minute from last update.
@thangs.fetch()
@listenTo(@thangs, 'sync', @onThangsLoaded)
@supermodel.loadCollection(@thangs, 'thangs')
@lastLoad = (new Date()).getTime()
else
@onThangsLoaded()
onThangsLoaded: ->
@processedThangs = @thangs.filter (_elem) ->
# Case-insensitive search of input vs name.
return ///#{$('#nameSearch')[0].value}///i.test _elem.get('name')
for thang in @processedThangs
thang.tasks = _.filter thang.attributes.tasks, (_elem) ->
# Similar case-insensitive search of input vs description (name).
return ///#{$('#descSearch')[0].value}///i.test _elem.name
@renderSelectors '#thangTable'
sortThangs: (a, b) ->
a.get('name').localeCompare(b.get('name'))
# Jade helper
hasIncompleteTasks: (thang) ->
return thang.tasks and thang.tasks.filter((_elem) -> return not _elem.complete).length > 0

View file

@ -36,8 +36,7 @@ require 'vendor/aether-javascript'
require 'vendor/aether-python' require 'vendor/aether-python'
require 'vendor/aether-coffeescript' require 'vendor/aether-coffeescript'
require 'vendor/aether-lua' require 'vendor/aether-lua'
require 'vendor/aether-clojure' require 'vendor/aether-java'
require 'vendor/aether-io'
module.exports = class LevelEditView extends RootView module.exports = class LevelEditView extends RootView
id: 'editor-level-view' id: 'editor-level-view'
@ -113,7 +112,7 @@ module.exports = class LevelEditView extends RootView
@insertSubView new ComponentsDocumentationView lazy: true # Don't give it the supermodel, it'll pollute it! @insertSubView new ComponentsDocumentationView lazy: true # Don't give it the supermodel, it'll pollute it!
@insertSubView new SystemsDocumentationView lazy: true # Don't give it the supermodel, it'll pollute it! @insertSubView new SystemsDocumentationView lazy: true # Don't give it the supermodel, it'll pollute it!
@insertSubView new LevelFeedbackView level: @level @insertSubView new LevelFeedbackView level: @level
Backbone.Mediator.publish 'editor:level-loaded', level: @level Backbone.Mediator.publish 'editor:level-loaded', level: @level
@showReadOnly() if me.get('anonymous') @showReadOnly() if me.get('anonymous')

View file

@ -21,8 +21,6 @@ module.exports = class SimulateTabView extends CocoView
require 'vendor/aether-coffeescript' require 'vendor/aether-coffeescript'
require 'vendor/aether-lua' require 'vendor/aether-lua'
require 'vendor/aether-java' require 'vendor/aether-java'
require 'vendor/aether-clojure'
require 'vendor/aether-io'
onLoaded: -> onLoaded: ->
super() super()

View file

@ -225,10 +225,7 @@ module.exports = class PlayLevelView extends RootView
opponentSpells = opponentSpells.concat spells opponentSpells = opponentSpells.concat spells
if (not @session.get('teamSpells')) and @otherSession?.get('teamSpells') if (not @session.get('teamSpells')) and @otherSession?.get('teamSpells')
@session.set('teamSpells', @otherSession.get('teamSpells')) @session.set('teamSpells', @otherSession.get('teamSpells'))
if @getQueryVariable 'esper' opponentCode = @otherSession?.get('code') or {}
opponentCode = @otherSession?.get('code') or {}
else
opponentCode = @otherSession?.get('transpiledCode') or {}
myCode = @session.get('code') or {} myCode = @session.get('code') or {}
for spell in opponentSpells for spell in opponentSpells
[thang, spell] = spell.split '/' [thang, spell] = spell.split '/'
@ -363,15 +360,6 @@ module.exports = class PlayLevelView extends RootView
onLevelStarted: -> onLevelStarted: ->
return unless @surface? return unless @surface?
#TODO: Remove this at some point
if @session.get('codeLanguage') in ['clojure', 'io']
problem =
aetherProblem:
message: "Sorry, support for #{@session.get('codeLanguage')} has been removed."
Backbone.Mediator.publish 'tome:show-problem-alert', problem: problem
@loadingView.showReady() @loadingView.showReady()
@trackLevelLoadEnd() @trackLevelLoadEnd()
if window.currentModal and not window.currentModal.destroyed and window.currentModal.constructor isnt VictoryModal if window.currentModal and not window.currentModal.destroyed and window.currentModal.constructor isnt VictoryModal
@ -429,16 +417,14 @@ module.exports = class PlayLevelView extends RootView
perhapsStartSimulating: -> perhapsStartSimulating: ->
return unless @shouldSimulate() return unless @shouldSimulate()
return console.error "Should not auto-simulate until we fix how these languages are loaded"
# TODO: how can we not require these as part of /play bundle? # TODO: how can we not require these as part of /play bundle?
#require "vendor/aether-#{codeLanguage}" for codeLanguage in ['javascript', 'python', 'coffeescript', 'lua', 'clojure', 'io'] ##require "vendor/aether-#{codeLanguage}" for codeLanguage in ['javascript', 'python', 'coffeescript', 'lua', 'java']
require 'vendor/aether-javascript' #require 'vendor/aether-javascript'
require 'vendor/aether-python' #require 'vendor/aether-python'
require 'vendor/aether-coffeescript' #require 'vendor/aether-coffeescript'
require 'vendor/aether-lua' #require 'vendor/aether-lua'
require 'vendor/aether-java' #require 'vendor/aether-java'
require 'vendor/aether-clojure'
require 'vendor/aether-io'
require 'vendor/aether-java'
@simulateNextGame() @simulateNextGame()
simulateNextGame: -> simulateNextGame: ->

View file

@ -57,23 +57,18 @@ module.exports = class DocFormatter
else (if @options.useHero then 'hero' else 'this') else (if @options.useHero then 'hero' else 'this')
if @doc.type is 'function' if @doc.type is 'function'
[docName, args] = @getDocNameAndArguments() [docName, args] = @getDocNameAndArguments()
sep = {clojure: ' '}[@options.language] ? ', ' argNames = args.join ', '
argNames = args.join sep
argString = if argNames then '__ARGS__' else '' argString = if argNames then '__ARGS__' else ''
@doc.shortName = switch @options.language @doc.shortName = switch @options.language
when 'coffeescript' then "#{ownerName}#{if ownerName is '@' then '' else '.'}#{docName}#{if argString then ' ' + argString else '()'}" when 'coffeescript' then "#{ownerName}#{if ownerName is '@' then '' else '.'}#{docName}#{if argString then ' ' + argString else '()'}"
when 'python' then "#{ownerName}.#{docName}(#{argString})" when 'python' then "#{ownerName}.#{docName}(#{argString})"
when 'lua' then "#{ownerName}:#{docName}(#{argString})" when 'lua' then "#{ownerName}:#{docName}(#{argString})"
when 'clojure' then "(.#{docName} #{ownerName}#{if argNames then ' ' + argString else ''})"
when 'io' then "#{if ownerName is 'this' then '' else ownerName + ' '}#{docName}#{if argNames then '(' + argNames + ')' else ''}"
else "#{ownerName}.#{docName}(#{argString});" else "#{ownerName}.#{docName}(#{argString});"
else else
@doc.shortName = switch @options.language @doc.shortName = switch @options.language
when 'coffeescript' then "#{ownerName}#{if ownerName is '@' then '' else '.'}#{@doc.name}" when 'coffeescript' then "#{ownerName}#{if ownerName is '@' then '' else '.'}#{@doc.name}"
when 'python' then "#{ownerName}.#{@doc.name}" when 'python' then "#{ownerName}.#{@doc.name}"
when 'lua' then "#{ownerName}.#{@doc.name}" when 'lua' then "#{ownerName}.#{@doc.name}"
when 'clojure' then "(.#{@doc.name} #{ownerName})"
when 'io' then "#{if ownerName is 'this' then '' else ownerName + ' '}#{@doc.name}"
else "#{ownerName}.#{@doc.name};" else "#{ownerName}.#{@doc.name};"
@doc.shorterName = @doc.shortName @doc.shorterName = @doc.shortName
if @doc.type is 'function' and argString if @doc.type is 'function' and argString
@ -89,7 +84,7 @@ module.exports = class DocFormatter
translatedName = utils.i18n(@doc, 'name') translatedName = utils.i18n(@doc, 'name')
if translatedName isnt @doc.name if translatedName isnt @doc.name
@doc.translatedShortName = @doc.shortName.replace(@doc.name, translatedName) @doc.translatedShortName = @doc.shortName.replace(@doc.name, translatedName)
# Grab the language-specific documentation for some sub-properties, if we have it. # Grab the language-specific documentation for some sub-properties, if we have it.
toTranslate = [{obj: @doc, prop: 'description'}, {obj: @doc, prop: 'example'}] toTranslate = [{obj: @doc, prop: 'description'}, {obj: @doc, prop: 'example'}]
@ -153,16 +148,12 @@ module.exports = class DocFormatter
when 'coffeescript' then "loop" when 'coffeescript' then "loop"
when 'python' then "while True:" when 'python' then "while True:"
when 'lua' then "while true do" when 'lua' then "while true do"
when 'clojure' then "(while true)"
when 'io' then "while(true)"
else "while (true)" else "while (true)"
for field in ['example', 'description'] for field in ['example', 'description']
[simpleLoop, whileLoop] = switch @options.language [simpleLoop, whileLoop] = switch @options.language
when 'coffeescript' then [/loop/g, "loop"] when 'coffeescript' then [/loop/g, "loop"]
when 'python' then [/loop:/g, "while True:"] when 'python' then [/loop:/g, "while True:"]
when 'lua' then [/loop/g, "while true do"] when 'lua' then [/loop/g, "while true do"]
when 'clojure' then [/\(dotimes( \[n \d+\])?/g, "(while true"]
when 'io' then [/loop\(/g, "while(true,"]
else [/loop/g, "while (true)"] else [/loop/g, "while (true)"]
@doc[field] = @doc[field].replace simpleLoop, whileLoop @doc[field] = @doc[field].replace simpleLoop, whileLoop

View file

@ -33,12 +33,8 @@ module.exports = class Spell
@permissions = read: p.permissions?.read ? [], readwrite: p.permissions?.readwrite ? [] # teams @permissions = read: p.permissions?.read ? [], readwrite: p.permissions?.readwrite ? [] # teams
if @canWrite() if @canWrite()
@setLanguage options.language @setLanguage options.language
else if @isEnemySpell()
@setLanguage @otherSession?.get('submittedCodeLanguage') ? @spectateOpponentCodeLanguage
else else
@setLanguage 'javascript' @setLanguage 'javascript'
@useTranspiledCode = @shouldUseTranspiledCode()
#console.log 'Spell', @spellKey, 'is using transpiled code (should only happen if it\'s an enemy/spectate writable method).' if @useTranspiledCode
@source = @originalSource @source = @originalSource
@parameters = p.parameters @parameters = p.parameters
@ -88,10 +84,8 @@ module.exports = class Spell
@originalSource = switch @language @originalSource = switch @language
when 'python' then @originalSource.replace /loop:/, 'while True:' when 'python' then @originalSource.replace /loop:/, 'while True:'
when 'javascript' then @originalSource.replace /loop {/, 'while (true) {' when 'javascript' then @originalSource.replace /loop {/, 'while (true) {'
when 'clojure' then @originalSource.replace /dotimes \[n 1000\]/, '(while true'
when 'lua' then @originalSource.replace /loop\n/, 'while true then\n' when 'lua' then @originalSource.replace /loop\n/, 'while true then\n'
when 'coffeescript' then @originalSource when 'coffeescript' then @originalSource
when 'io' then @originalSource.replace /loop\n/, 'while true,\n'
else @originalSource else @originalSource
addPicoCTFProblem: -> addPicoCTFProblem: ->
@ -126,15 +120,10 @@ module.exports = class Spell
else else
source = @getSource() source = @getSource()
[pure, problems] = [null, null] [pure, problems] = [null, null]
if @useTranspiledCode
transpiledCode = @session.get('code')
for thangID, spellThang of @thangs for thangID, spellThang of @thangs
unless pure unless pure
if @useTranspiledCode and transpiledSpell = transpiledCode[@spellKey.split('/')[0]]?[@name] pure = spellThang.aether.transpile source
spellThang.aether.pure = transpiledSpell problems = spellThang.aether.problems
else
pure = spellThang.aether.transpile source
problems = spellThang.aether.problems
#console.log 'aether transpiled', source.length, 'to', spellThang.aether.pure.length, 'for', thangID, @spellKey #console.log 'aether transpiled', source.length, 'to', spellThang.aether.pure.length, 'for', thangID, @spellKey
else else
spellThang.aether.raw = source spellThang.aether.raw = source
@ -182,7 +171,7 @@ module.exports = class Spell
skipProtectAPI: skipProtectAPI skipProtectAPI: skipProtectAPI
includeFlow: includeFlow includeFlow: includeFlow
problemContext: problemContext problemContext: problemContext
useInterpreter: if @spectateView then true else undefined useInterpreter: true
aether = new Aether aetherOptions aether = new Aether aetherOptions
if @worker if @worker
workerMessage = workerMessage =
@ -207,22 +196,6 @@ module.exports = class Spell
toString: -> toString: ->
"<Spell: #{@spellKey}>" "<Spell: #{@spellKey}>"
isEnemySpell: ->
return false unless @permissions.readwrite.length
return false unless @otherSession or @spectateView
teamSpells = @session.get('teamSpells')
team = @session.get('team') ? 'humans'
teamSpells and not _.contains(teamSpells[team], @spellKey)
shouldUseTranspiledCode: ->
# Determine whether this code has already been transpiled, or whether it's raw source needing transpilation.
return false if @spectateView or utils.getQueryVariable 'esper' # Don't use transpiled code with interpreter
return true if @isEnemySpell() # Use transpiled for enemy spells.
# Players without permissions can't view the raw code.
return false if @observing and @levelType in ['hero', 'course']
return true if @session.get('creator') isnt me.id and not (me.isAdmin() or 'employer' in me.get('permissions', true))
false
createProblemContext: (thang) -> createProblemContext: (thang) ->
# Create problemContext Aether can use to craft better error messages # Create problemContext Aether can use to craft better error messages
# stringReferences: values that should be referred to as a string instead of a variable (e.g. "Brak", not Brak) # stringReferences: values that should be referred to as a string instead of a variable (e.g. "Brak", not Brak)

View file

@ -46,10 +46,6 @@ module.exports = class SpellListEntryView extends CocoView
paramString = parameters.join ', ' paramString = parameters.join ', '
name = @spell.name name = @spell.name
switch @spell.language switch @spell.language
when 'io'
"#{name} := method(#{paramString})"
when 'clojure'
"(defn #{name} [#{paramString}] ...)"
when 'python' when 'python'
"def #{name}(#{paramString}):" "def #{name}(#{paramString}):"
when 'lua' when 'lua'

View file

@ -230,7 +230,7 @@ module.exports = class SpellView extends CocoView
disableSpaces = @options.level.get('disableSpaces') or false disableSpaces = @options.level.get('disableSpaces') or false
aceConfig = me.get('aceConfig') ? {} aceConfig = me.get('aceConfig') ? {}
disableSpaces = false if aceConfig.keyBindings and aceConfig.keyBindings isnt 'default' # Not in vim/emacs mode disableSpaces = false if aceConfig.keyBindings and aceConfig.keyBindings isnt 'default' # Not in vim/emacs mode
disableSpaces = false if @spell.language in ['clojure', 'lua', 'java', 'coffeescript', 'io'] # Don't disable for more advanced/experimental languages disableSpaces = false if @spell.language in ['lua', 'java', 'coffeescript'] # Don't disable for more advanced/experimental languages
if not disableSpaces or (_.isNumber(disableSpaces) and disableSpaces < me.level()) if not disableSpaces or (_.isNumber(disableSpaces) and disableSpaces < me.level())
return @ace.execCommand 'insertstring', ' ' return @ace.execCommand 'insertstring', ' '
line = @aceDoc.getLine @ace.getCursorPosition().row line = @aceDoc.getLine @ace.getCursorPosition().row
@ -301,7 +301,10 @@ module.exports = class SpellView extends CocoView
for row in [0..@aceSession.getLength()] for row in [0..@aceSession.getLength()]
foldWidgets[row] = @aceSession.getFoldWidget(row) unless foldWidgets[row]? foldWidgets[row] = @aceSession.getFoldWidget(row) unless foldWidgets[row]?
continue unless foldWidgets? and foldWidgets[row] is "start" continue unless foldWidgets? and foldWidgets[row] is "start"
docRange = @aceSession.getFoldWidgetRange(row) try
docRange = @aceSession.getFoldWidgetRange(row)
catch error
console.warn "Couldn't find fold widget docRange for row #{row}:", error
if not docRange? if not docRange?
guess = startOfRow(row) guess = startOfRow(row)
docRange = new Range(row,guess,row,guess+4) docRange = new Range(row,guess,row,guess+4)
@ -520,10 +523,8 @@ module.exports = class SpellView extends CocoView
content = switch e.language content = switch e.language
when 'python' then content.replace /loop:/, 'while True:' when 'python' then content.replace /loop:/, 'while True:'
when 'javascript' then content.replace /loop/, 'while (true)' when 'javascript' then content.replace /loop/, 'while (true)'
when 'clojure' then content.replace /dotimes \[n 1000\]/, '(while true'
when 'lua' then content.replace /loop/, 'while true then' when 'lua' then content.replace /loop/, 'while true then'
when 'coffeescript' then content when 'coffeescript' then content
when 'io' then content.replace /loop/, 'while true,'
else content else content
name = switch e.language name = switch e.language
when 'python' then 'while True' when 'python' then 'while True'
@ -557,9 +558,8 @@ module.exports = class SpellView extends CocoView
if doc.userShouldCaptureReturn if doc.userShouldCaptureReturn
varName = doc.userShouldCaptureReturn.variableName ? 'result' varName = doc.userShouldCaptureReturn.variableName ? 'result'
entry.captureReturn = switch e.language entry.captureReturn = switch e.language
when 'io' then varName + ' := '
when 'javascript' then 'var ' + varName + ' = ' when 'javascript' then 'var ' + varName + ' = '
when 'clojure' then '(let [' + varName + ' ' #when 'lua' then 'local ' + varName + ' = ' # TODO: should we do this?
else varName + ' = ' else varName + ' = '
# TODO: Generalize this snippet replacement # TODO: Generalize this snippet replacement
@ -583,15 +583,8 @@ module.exports = class SpellView extends CocoView
translateFindNearest: -> translateFindNearest: ->
# If they have advanced glasses but are playing a level which assumes earlier glasses, we'll adjust the sample code to use the more advanced APIs instead. # If they have advanced glasses but are playing a level which assumes earlier glasses, we'll adjust the sample code to use the more advanced APIs instead.
oldSource = @getSource() oldSource = @getSource()
if @spell.language is 'clojure' newSource = oldSource.replace /(self:|self.|this.|@)findNearestEnemy\(\)/g, "$1findNearest($1findEnemies())"
newSource = oldSource.replace /\(.findNearestEnemy this\)/g, "(.findNearest this (.findEnemies this))" newSource = newSource.replace /(self:|self.|this.|@)findNearestItem\(\)/g, "$1findNearest($1findItems())"
newSource = newSource.replace /\(.findNearestItem this\)/g, "(.findNearest this (.findItems this))"
else if @spell.language is 'io'
newSource = oldSource.replace /findNearestEnemy/g, "findNearest(findEnemies)"
newSource = newSource.replace /findNearestItem/g, "findNearest(findItems)"
else
newSource = oldSource.replace /(self:|self.|this.|@)findNearestEnemy\(\)/g, "$1findNearest($1findEnemies())"
newSource = newSource.replace /(self:|self.|this.|@)findNearestItem\(\)/g, "$1findNearest($1findItems())"
return if oldSource is newSource return if oldSource is newSource
@spell.originalSource = newSource @spell.originalSource = newSource
@updateACEText newSource @updateACEText newSource
@ -640,7 +633,7 @@ module.exports = class SpellView extends CocoView
return if @options.level.get('type', true) in ['hero', 'hero-ladder', 'hero-coop', 'course', 'course-ladder'] # We'll turn this on later, maybe, but not yet. return if @options.level.get('type', true) in ['hero', 'hero-ladder', 'hero-coop', 'course', 'course-ladder'] # We'll turn this on later, maybe, but not yet.
@debugView = new SpellDebugView ace: @ace, thang: @thang, spell:@spell @debugView = new SpellDebugView ace: @ace, thang: @thang, spell:@spell
@$el.append @debugView.render().$el.hide() @$el.append @debugView.render().$el.hide()
createTranslationView: -> createTranslationView: ->
@translationView = new SpellTranslationView { @ace, @supermodel } @translationView = new SpellTranslationView { @ace, @supermodel }
@$el.append @translationView.render().$el.hide() @$el.append @translationView.render().$el.hide()
@ -731,7 +724,7 @@ module.exports = class SpellView extends CocoView
# Uncomment the below line for a debug panel to display inside the level # Uncomment the below line for a debug panel to display inside the level
#@spade.debugPlay(spadeEvents) #@spade.debugPlay(spadeEvents)
condensedEvents = @spade.condense(spadeEvents) condensedEvents = @spade.condense(spadeEvents)
return unless condensedEvents.length return unless condensedEvents.length
compressedEvents = LZString.compressToUTF16(JSON.stringify(condensedEvents)) compressedEvents = LZString.compressToUTF16(JSON.stringify(condensedEvents))
@ -746,7 +739,7 @@ module.exports = class SpellView extends CocoView
}) })
codeLog.save() codeLog.save()
onShowVictory: (e) -> onShowVictory: (e) ->
if @saveSpadeTimeout? if @saveSpadeTimeout?
window.clearTimeout @saveSpadeTimeout window.clearTimeout @saveSpadeTimeout
@ -1067,12 +1060,8 @@ module.exports = class SpellView extends CocoView
return unless @ace.isFocused() and e.x? and e.y? return unless @ace.isFocused() and e.x? and e.y?
if @spell.language is 'python' if @spell.language is 'python'
@ace.insert "{\"x\": #{e.x}, \"y\": #{e.y}}" @ace.insert "{\"x\": #{e.x}, \"y\": #{e.y}}"
else if @spell.language is 'clojure'
@ace.insert "{:x #{e.x} :y #{e.y}}"
else if @spell.language is 'lua' else if @spell.language is 'lua'
@ace.insert "{x=#{e.x}, y=#{e.y}}" @ace.insert "{x=#{e.x}, y=#{e.y}}"
else if @spell.language is 'io'
return
else else
@ace.insert "{x: #{e.x}, y: #{e.y}}" @ace.insert "{x: #{e.x}, y: #{e.y}}"
@ -1355,6 +1344,5 @@ commentStarts =
javascript: '//' javascript: '//'
python: '#' python: '#'
coffeescript: '#' coffeescript: '#'
clojure: ';'
lua: '--' lua: '--'
io: '//' java: '//'

View file

@ -129,7 +129,5 @@ commentStarts =
javascript: '// ' javascript: '// '
python: '# ' python: '# '
coffeescript: '# ' coffeescript: '# '
clojure: '; '
lua: '-- ' lua: '-- '
io: '// '
java: '// ' java: '// '

View file

@ -32,7 +32,7 @@
"firepad": "~0.1.2", "firepad": "~0.1.2",
"marked": "~0.3.0", "marked": "~0.3.0",
"moment": "~2.5.0", "moment": "~2.5.0",
"aether": "~0.4.5", "aether": "~0.5.0",
"underscore.string": "~2.3.3", "underscore.string": "~2.3.3",
"firebase": "~1.0.2", "firebase": "~1.0.2",
"d3": "~3.4.4", "d3": "~3.4.4",

View file

@ -110,9 +110,7 @@ exports.config =
'javascripts/lodash.js': regJoin('^bower_components/lodash/dist/lodash.js') 'javascripts/lodash.js': regJoin('^bower_components/lodash/dist/lodash.js')
'javascripts/aether.js': regJoin('^bower_components/aether/build/aether.js') 'javascripts/aether.js': regJoin('^bower_components/aether/build/aether.js')
'javascripts/esper.js': 'bower_components/esper.js/esper.js' 'javascripts/esper.js': 'bower_components/esper.js/esper.js'
'javascripts/app/vendor/aether-clojure.js': 'bower_components/aether/build/clojure.js'
'javascripts/app/vendor/aether-coffeescript.js': 'bower_components/aether/build/coffeescript.js' 'javascripts/app/vendor/aether-coffeescript.js': 'bower_components/aether/build/coffeescript.js'
'javascripts/app/vendor/aether-io.js': 'bower_components/aether/build/io.js'
'javascripts/app/vendor/aether-javascript.js': 'bower_components/aether/build/javascript.js' 'javascripts/app/vendor/aether-javascript.js': 'bower_components/aether/build/javascript.js'
'javascripts/app/vendor/aether-lua.js': 'bower_components/aether/build/lua.js' 'javascripts/app/vendor/aether-lua.js': 'bower_components/aether/build/lua.js'
'javascripts/app/vendor/aether-java.js': 'bower_components/aether/build/java.js' 'javascripts/app/vendor/aether-java.js': 'bower_components/aether/build/java.js'

View file

@ -53,7 +53,7 @@
"dependencies": { "dependencies": {
"JQDeferred": "~2.1.0", "JQDeferred": "~2.1.0",
"ace-builds": "https://github.com/ajaxorg/ace-builds/archive/3fb55e8e374ab02ce47c1ae55ffb60a1835f3055.tar.gz", "ace-builds": "https://github.com/ajaxorg/ace-builds/archive/3fb55e8e374ab02ce47c1ae55ffb60a1835f3055.tar.gz",
"aether": "~0.4.5", "aether": "~0.5.0",
"async": "0.2.x", "async": "0.2.x",
"aws-sdk": "~2.0.0", "aws-sdk": "~2.0.0",
"bayesian-battle": "0.0.7", "bayesian-battle": "0.0.7",
@ -100,6 +100,7 @@
"coffeelint-brunch": "^1.7.1", "coffeelint-brunch": "^1.7.1",
"commonjs-require-definition": "0.2.0", "commonjs-require-definition": "0.2.0",
"compressible": "~1.0.1", "compressible": "~1.0.1",
"country-list": "0.0.3",
"css-brunch": "^1.7.0", "css-brunch": "^1.7.0",
"fs-extra": "^0.26.2", "fs-extra": "^0.26.2",
"http-proxy": "^1.13.2", "http-proxy": "^1.13.2",

View file

@ -1,8 +1,8 @@
// Follow up on Close.io leads // Follow up on Close.io leads
'use strict'; 'use strict';
if (process.argv.length !== 6) { if (process.argv.length !== 7) {
log("Usage: node <script> <Close.io general API key> <Close.io mail API key1> <Close.io mail API key2> <mongo connection Url>"); log("Usage: node <script> <Close.io general API key> <Close.io mail API key1> <Close.io mail API key2> <Close.io mail API key3> <mongo connection Url>");
process.exit(); process.exit();
} }
@ -20,8 +20,8 @@ const demoRequestEmailTemplatesAuto2 = ['tmpl_HJ5zebh1SqC1QydDto05VPUMu4F7i5M35L
const scriptStartTime = new Date(); const scriptStartTime = new Date();
const closeIoApiKey = process.argv[2]; const closeIoApiKey = process.argv[2];
const closeIoMailApiKeys = [process.argv[3], process.argv[4]]; // Automatic mails sent as API owners const closeIoMailApiKeys = [process.argv[3], process.argv[4], process.argv[5]]; // Automatic mails sent as API owners
const mongoConnUrl = process.argv[5]; const mongoConnUrl = process.argv[6];
const MongoClient = require('mongodb').MongoClient; const MongoClient = require('mongodb').MongoClient;
const async = require('async'); const async = require('async');
const request = require('request'); const request = require('request');
@ -44,11 +44,6 @@ async.series([
// ** Utilities // ** Utilities
function getRandomEmailApiKey() {
if (closeIoMailApiKeys.length < 0) return;
return closeIoMailApiKeys[Math.floor(Math.random() * closeIoMailApiKeys.length)];
}
function getRandomEmailTemplate(templates) { function getRandomEmailTemplate(templates) {
if (templates.length < 0) return ''; if (templates.length < 0) return '';
return templates[Math.floor(Math.random() * templates.length)]; return templates[Math.floor(Math.random() * templates.length)];

View file

@ -1,8 +1,8 @@
// Upsert new lead data into Close.io // Upsert new lead data into Close.io
'use strict'; 'use strict';
if (process.argv.length !== 7) { if (process.argv.length !== 8) {
log("Usage: node <script> <Close.io general API key> <Close.io mail API key1> <Close.io mail API key2> <Intercom 'App ID:API key'> <mongo connection Url>"); log("Usage: node <script> <Close.io general API key> <Close.io mail API key1> <Close.io mail API key2> <Close.io mail API key3> <Intercom 'App ID:API key'> <mongo connection Url>");
process.exit(); process.exit();
} }
@ -30,6 +30,8 @@ const leadsToSkip = ['6 sınıflar', 'fdsafd', 'ashtasht', 'matt+20160404teacher
const createTeacherEmailTemplatesAuto1 = ['tmpl_i5bQ2dOlMdZTvZil21bhTx44JYoojPbFkciJ0F560mn', 'tmpl_CEZ9PuE1y4PRvlYiKB5kRbZAQcTIucxDvSeqvtQW57G']; const createTeacherEmailTemplatesAuto1 = ['tmpl_i5bQ2dOlMdZTvZil21bhTx44JYoojPbFkciJ0F560mn', 'tmpl_CEZ9PuE1y4PRvlYiKB5kRbZAQcTIucxDvSeqvtQW57G'];
const demoRequestEmailTemplatesAuto1 = ['tmpl_s7BZiydyCHOMMeXAcqRZzqn0fOtk0yOFlXSZ412MSGm', 'tmpl_cGb6m4ssDvqjvYd8UaG6cacvtSXkZY3vj9b9lSmdQrf']; const demoRequestEmailTemplatesAuto1 = ['tmpl_s7BZiydyCHOMMeXAcqRZzqn0fOtk0yOFlXSZ412MSGm', 'tmpl_cGb6m4ssDvqjvYd8UaG6cacvtSXkZY3vj9b9lSmdQrf'];
const createTeacherInternationalEmailTemplateAuto1 = 'tmpl_8vsXwcr6dWefMnAEfPEcdHaxqSfUKUY8UKq6WfReGqG';
const demoRequestInternationalEmailTemplateAuto1 = 'tmpl_nnH1p3II7G7NJYiPOIHphuj4XUaDptrZk1mGQb2d9Xa';
// Prioritized Close.io lead status match list // Prioritized Close.io lead status match list
const closeIoInitialLeadStatuses = [ const closeIoInitialLeadStatuses = [
@ -41,18 +43,24 @@ const closeIoInitialLeadStatuses = [
{status: 'Inbound International Auto Attempt 1', regex: /^[A-Za-z]{2}$|\.[A-Za-z]{2}$/}, {status: 'Inbound International Auto Attempt 1', regex: /^[A-Za-z]{2}$|\.[A-Za-z]{2}$/},
{status: 'Auto Attempt 1', regex: /^[A-Za-z]*$/} {status: 'Auto Attempt 1', regex: /^[A-Za-z]*$/}
]; ];
const defaultLeadStatus = 'Auto Attempt 1';
const defaultInternationalLeadStatus = 'Inbound International Auto Attempt 1';
const usSchoolStatuses = ['Auto Attempt 1', 'New US Schools Auto Attempt 1'];
const emailDelayMinutes = 27; const emailDelayMinutes = 27;
const scriptStartTime = new Date(); const scriptStartTime = new Date();
const closeIoApiKey = process.argv[2]; const closeIoApiKey = process.argv[2];
const closeIoMailApiKeys = [process.argv[3], process.argv[4]]; // Automatic mails sent as API owners // Automatic mails sent as API owners, first key assumed to be primary and gets 50% of the leads
const intercomAppIdApiKey = process.argv[5]; const closeIoMailApiKeys = [process.argv[3], process.argv[3], process.argv[4], process.argv[5]];
const intercomAppIdApiKey = process.argv[6];
const intercomAppId = intercomAppIdApiKey.split(':')[0]; const intercomAppId = intercomAppIdApiKey.split(':')[0];
const intercomApiKey = intercomAppIdApiKey.split(':')[1]; const intercomApiKey = intercomAppIdApiKey.split(':')[1];
const mongoConnUrl = process.argv[6]; const mongoConnUrl = process.argv[7];
const MongoClient = require('mongodb').MongoClient; const MongoClient = require('mongodb').MongoClient;
const async = require('async'); const async = require('async');
const countryList = require('country-list')();
const parseDomain = require('parse-domain'); const parseDomain = require('parse-domain');
const request = require('request'); const request = require('request');
@ -91,10 +99,29 @@ function upsertLeads(done) {
// ** Utilities // ** Utilities
function getInitialLeadStatusViaCountry(country, trialRequests) { function getInitialLeadStatusViaCountry(country, trialRequests) {
if (/usa|america|united states/ig.test(country)) { if (/^u\.s\.?(\.a)?\.?$|^us$|usa|america|united states/ig.test(country)) {
const status = 'New US Schools Auto Attempt 1' const status = 'New US Schools Auto Attempt 1'
return isLowValueLead(status, trialRequests) ? `${status} Low` : status; return isLowValueLead(status, trialRequests) ? `${status} Low` : status;
} }
if (/^england$|^uk$|^united kingdom$/ig.test(country)) {
return 'Inbound UK Auto Attempt 1';
}
if (/^ca$|^canada$/ig.test(country)) {
return 'Inbound Canada Auto Attempt 1';
}
if (/^au$|^australia$/ig.test(country)) {
return 'Inbound AU Auto Attempt 1';
}
if (/^nz$|^new zealand$/ig.test(country)) {
return 'Inbound AU Auto Attempt 1';
}
if (/bolivia|iran|korea|macedonia|taiwan|tanzania|^venezuela$/ig.test(country)) {
return defaultInternationalLeadStatus;
}
if (countryList.getCode(country)) {
return defaultInternationalLeadStatus;
}
return null;
} }
function getInitialLeadStatusViaEmails(emails, trialRequests) { function getInitialLeadStatusViaEmails(emails, trialRequests) {
@ -110,12 +137,12 @@ function getInitialLeadStatusViaEmails(emails, trialRequests) {
} }
} }
} }
currentStatus = currentStatus ? currentStatus : closeIoInitialLeadStatuses[closeIoInitialLeadStatuses.length - 1].status; currentStatus = currentStatus ? currentStatus : defaultLeadStatus;
return isLowValueLead(currentStatus, trialRequests) ? `${currentStatus} Low` : currentStatus; return isLowValueLead(currentStatus, trialRequests) ? `${currentStatus} Low` : currentStatus;
} }
function isLowValueLead(status, trialRequests) { function isLowValueLead(status, trialRequests) {
if (['Auto Attempt 1', 'New US Schools Auto Attempt 1'].indexOf(status) >= 0) { if (isUSSchoolStatus(status)) {
for (const trialRequest of trialRequests) { for (const trialRequest of trialRequests) {
if (parseInt(trialRequest.properties.nces_district_students) < 5000) { if (parseInt(trialRequest.properties.nces_district_students) < 5000) {
return true; return true;
@ -131,6 +158,10 @@ function isLowValueLead(status, trialRequests) {
return false; return false;
} }
function isUSSchoolStatus(status) {
return usSchoolStatuses.indexOf(status) >= 0;
}
function getRandomEmailApiKey() { function getRandomEmailApiKey() {
if (closeIoMailApiKeys.length < 0) return; if (closeIoMailApiKeys.length < 0) return;
return closeIoMailApiKeys[Math.floor(Math.random() * closeIoMailApiKeys.length)]; return closeIoMailApiKeys[Math.floor(Math.random() * closeIoMailApiKeys.length)];
@ -141,7 +172,24 @@ function getRandomEmailTemplate(templates) {
return templates[Math.floor(Math.random() * templates.length)]; return templates[Math.floor(Math.random() * templates.length)];
} }
function getEmailTemplate(siteOrigin, leadStatus) {
// console.log(`DEBUG: getEmailTemplate ${siteOrigin} ${leadStatus}`);
if (isUSSchoolStatus(leadStatus)) {
if (['create teacher', 'convert teacher'].indexOf(siteOrigin) >= 0) {
return getRandomEmailTemplate(createTeacherEmailTemplatesAuto1);
}
return getRandomEmailTemplate(demoRequestEmailTemplatesAuto1);
}
if (['create teacher', 'convert teacher'].indexOf(siteOrigin) >= 0) {
return createTeacherInternationalEmailTemplateAuto1;
}
return demoRequestInternationalEmailTemplateAuto1;
}
function isSameEmailTemplateType(template1, template2) { function isSameEmailTemplateType(template1, template2) {
if (template1 == template2) {
return true;
}
if (createTeacherEmailTemplatesAuto1.indexOf(template1) >= 0 && createTeacherEmailTemplatesAuto1.indexOf(template2) >= 0) { if (createTeacherEmailTemplatesAuto1.indexOf(template1) >= 0 && createTeacherEmailTemplatesAuto1.indexOf(template2) >= 0) {
return true; return true;
} }
@ -348,8 +396,7 @@ class CocoLead {
} }
for (const prop in props) { for (const prop in props) {
// Always overwrite common props if we have NCES data, because other fields more likely to be accurate // Always overwrite common props if we have NCES data, because other fields more likely to be accurate
if (commonTrialProperties.indexOf(prop) >= 0 if (commonTrialProperties.indexOf(prop) >= 0 && (haveNcesData || !currentCustom[`demo_${prop}`] || currentCustom[`demo_${prop}`] !== props[prop] && currentCustom[`demo_${prop}`].indexOf(props[prop]) < 0)) {
&& (haveNcesData || currentCustom[`demo_${prop}`] !== props[prop] && currentCustom[`demo_${prop}`].indexOf(props[prop]) < 0)) {
putData[`custom.demo_${prop}`] = props[prop]; putData[`custom.demo_${prop}`] = props[prop];
} }
} }
@ -552,12 +599,8 @@ function saveNewLead(lead, done) {
const tasks = []; const tasks = [];
for (const contact of existingLead.contacts) { for (const contact of existingLead.contacts) {
for (const email of contact.emails) { for (const email of contact.emails) {
if (['create teacher', 'convert teacher'].indexOf(lead.contacts[email.email].trial.properties.siteOrigin) >= 0) { const emailTemplate = getEmailTemplate(lead.contacts[email.email].trial.properties.siteOrigin, postData.status);
tasks.push(createSendEmailFn(email.email, existingLead.id, contact.id, getRandomEmailTemplate(createTeacherEmailTemplatesAuto1))); tasks.push(createSendEmailFn(email.email, existingLead.id, contact.id, emailTemplate));
}
else {
tasks.push(createSendEmailFn(email.email, existingLead.id, contact.id, getRandomEmailTemplate(demoRequestEmailTemplatesAuto1)));
}
} }
} }
async.parallel(tasks, (err, results) => { async.parallel(tasks, (err, results) => {
@ -620,7 +663,7 @@ function createUpdateLeadFn(lead, existingLeads) {
return updateExistingLead(lead, data.data[0], done); return updateExistingLead(lead, data.data[0], done);
} catch (error) { } catch (error) {
// console.log(url); // console.log(url);
// console.log(error); console.log(`ERROR: updateLead ${error}`);
// console.log(body); // console.log(body);
return done(); return done();
} }
@ -646,12 +689,8 @@ function createAddContactFn(postData, internalLead, externalLead) {
// Send emails to new contact // Send emails to new contact
const email = postData.emails[0].email; const email = postData.emails[0].email;
if (['create teacher', 'convert teacher'].indexOf(internalLead.contacts[email].trial.properties.siteOrigin) >= 0) { const emailTemplate = getEmailTemplate(internalLead.contacts[email].trial.properties.siteOrigin, externalLead.status_label);
return sendMail(email, externalLead.id, newContact.id, getRandomEmailTemplate(createTeacherEmailTemplatesAuto1), getRandomEmailApiKey(), emailDelayMinutes, done); sendMail(email, externalLead.id, newContact.id, emailTemplate, getRandomEmailApiKey(), emailDelayMinutes, done);
}
else {
return sendMail(email, externalLead.id, newContact.id, getRandomEmailTemplate(demoRequestEmailTemplatesAuto1), getRandomEmailApiKey(), emailDelayMinutes, done);
}
}); });
}; };
} }

View file

@ -147,7 +147,16 @@ module.exports =
res.end() res.end()
unsubscribe: wrap (req, res) -> unsubscribe: wrap (req, res) ->
email = req.query.email # need to grab email directly from url, in case it has "+" in it
queryString = req.url.split('?')[1] or ''
queryParts = queryString.split('&')
email = null
for part in queryParts
[name, value] = part.split('=')
if name is 'email'
email = value
break
unless email unless email
throw new errors.UnprocessableEntity 'No email provided to unsubscribe.' throw new errors.UnprocessableEntity 'No email provided to unsubscribe.'
email = decodeURIComponent(email) email = decodeURIComponent(email)

View file

@ -165,6 +165,14 @@ describe 'GET /auth/unsubscribe', ->
expect(res.statusCode).toBe(404) expect(res.statusCode).toBe(404)
done() done()
it 'returns 200 even if the email has a + in it', utils.wrap (done) ->
@user.set('email', 'some+email@address.com')
yield @user.save()
url = getURL('/auth/unsubscribe?recruitNotes=1&email='+@user.get('email'))
[res, body] = yield request.getAsync(url, {json: true})
expect(res.statusCode).toBe(200)
done()
describe '?recruitNotes=1', -> describe '?recruitNotes=1', ->
it 'unsubscribes the user from recruitment emails', utils.wrap (done) -> it 'unsubscribes the user from recruitment emails', utils.wrap (done) ->