Fixed #1530. Propagated i18n. Starting to add some more events for the iOS app.

This commit is contained in:
Nick Winter 2014-09-07 20:54:25 -07:00
parent 40c37a8be1
commit 1bd1ca0ced
54 changed files with 68 additions and 10 deletions

View file

@ -38,6 +38,7 @@ module.exports.createUserWithoutReload = (userObject, failure=backboneFailure) -
})
module.exports.loginUser = (userObject, failure=genericFailure) ->
console.log 'logging in as', userObject.email
jqxhr = $.post('/auth/login',
{
username: userObject.email,

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "العربية", englishDescription: "Arabi
recover:
recover_account_title: "إستعادة حساب"
send_password: "إرسال كلمة سرّ الإستعادة"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "إنشاء حساب لحفظ التقدّم"
@ -142,7 +143,7 @@ module.exports = nativeDescription: "العربية", englishDescription: "Arabi
forum_suffix: "بدلا من ذلك."
send: "إرسال تعليقات"
contact_candidate: "الاتصال المرشح"
# recruitment_reminder: "Use this form to reach out to candidates you are interested in interviewing. Remember that CodeCombat charges 15% of first-year salary. The fee is due upon hiring the employee and is refundable for 90 days if the employee does not remain employed. Part time, remote, and contract employees are free, as are interns."
# recruitment_reminder: "Use this form to reach out to candidates you are interested in interviewing. Remember that CodeCombat charges 15% of first-year salary. The fee is due upon hiring the employee and is refundable for 90 days if the employee does not remain employed. Part time, remote, and contract employees are free, as are interns."
diplomat_suggestion:
title: "مساعدة في ترجمة CodeCombat!"
@ -152,7 +153,6 @@ module.exports = nativeDescription: "العربية", englishDescription: "Arabi
learn_more: "معرفة المزيد عن كونك دبلوماسي"
subscribe_as_diplomat: "الاشتراك كدبلوماسي"
wizard_settings:
title: "إعدادات الساحر"
customize_avatar: "الصورة الرمزية الخاصة بك"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "български език", englishDescri
recover:
recover_account_title: "Възстанови Акаунт"
send_password: "Изпрати парола за възстановяване"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Català", englishDescription: "Catalan", tr
recover:
recover_account_title: "Recuperar Compte"
send_password: "Enviar contrasenya oblidada"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Crear un compte per tal de guardar els progressos"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "čeština", englishDescription: "Czech", tr
recover:
recover_account_title: "Obnovení účtu"
send_password: "Zaslat nové heslo"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Vytvořit účet k uložení úrovně"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "dansk", englishDescription: "Danish", trans
recover:
recover_account_title: "genskab konto"
send_password: "Send kodeord"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Opret en konto for at gemme dit fremskridt"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Deutsch (Österreich)", englishDescription:
recover:
recover_account_title: "Account Wiederherstellung"
send_password: "Wiederherstellungskennwort senden"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Account anlegen, um Fortschritt zu speichern"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Deutsch (Schweiz)", englishDescription: "Ge
recover:
recover_account_title: "Account wiederherstelle"
send_password: "Recovery Password sende"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Erstell en Account zum din Fortschritt speichere"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Deutsch (Deutschland)", englishDescription:
recover:
recover_account_title: "Account Wiederherstellung"
send_password: "Wiederherstellungskennwort senden"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Account anlegen, um Fortschritt zu speichern"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "ελληνικά", englishDescription: "Gre
recover:
recover_account_title: "Κάντε ανάκτηση του λογαριασμού σας"
send_password: "Αποστολή κωδικού ανάκτησης"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Δημιουργία λογαριασμού για αποθήκευση της προόδου"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "English (AU)", englishDescription: "English
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "English (UK)", englishDescription: "English
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "English (US)", englishDescription: "English
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@
recover:
recover_account_title: "Recover Account"
send_password: "Send Recovery Password"
recovery_sent: "Recovery email sent."
signup:
create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "español (América Latina)", englishDescrip
recover:
recover_account_title: "recuperar cuenta"
send_password: "Enviar Contraseña de Recuperación"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Crear Cuenta para Guardar el Progreso"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
recover:
recover_account_title: "Recuperar Cuenta"
send_password: "Enviar recuperación de contraseña"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Crea una cuenta para guardar tu progreso"
@ -450,13 +451,13 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
guide_caption: "Documentos y pistas"
multiplayer_caption: "Juega con amigos!"
inventario:
temp: "Temp"
# inventory:
# temp: "Temp"
# choose_hero:
# temp: "Temp"
# save_load:
save_load:
granularity_saved_games: "Salvado"
granularity_change_history: "Historia"
@ -891,7 +892,7 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
blurb_5: "(Habra dos ganadores por puesto, dos en el primer puesto, dos en el segundo, etc.)"
rank: "Rango"
prizes: "Premios"
Total_value: "Valor Total"
total_value: "Valor Total"
in_cash: "en dinero"
custom_wizard: "Personaliza tu Mago de CodeCombat"
custom_avatar: "Personaliza tu avatar de CoceCombat"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "فارسی", englishDescription: "Persian",
recover:
recover_account_title: "بازیابی حساب کاربری"
send_password: "ارسال رمز عبور بازیابی شده"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "ایجاد حساب کاربری برای ذخیره سازی پیشرفت ها"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "suomi", englishDescription: "Finnish", tran
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "français", englishDescription: "French", t
recover:
recover_account_title: "Récupérer son compte"
send_password: "Envoyer le mot de passe de récupération"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Créer un compte pour sauvegarder votre progression"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "עברית", englishDescription: "Hebrew",
recover:
recover_account_title: "שחזר סיסמה"
send_password: "שלח סיסמה חדשה"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "הירשם כדי לשמור את התקדמותך"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "मानक हिन्दी", englishDe
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "magyar", englishDescription: "Hungarian", t
recover:
recover_account_title: "Meglévő fiók visszaállítása"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Ind
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Italiano", englishDescription: "Italian", t
recover:
recover_account_title: "Recupera account"
send_password: "Invia password di recupero"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Crea un account per salvare le partite"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "日本語", englishDescription: "Japanese",
recover:
recover_account_title: "パスワードを忘れた場合"
send_password: "送信する"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "進行状況保存用のアカウント作成"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "한국어", englishDescription: "Korean", t
recover:
recover_account_title: "계정 복구"
send_password: "복구 비밀번호 전송"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "진행 상황을 저장하기 위해서 새 계정을 생성합니다"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "lietuvių kalba", englishDescription: "Lith
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Bahasa Melayu", englishDescription: "Bahasa
recover:
recover_account_title: "Dapatkan Kembali Akaun"
send_password: "Hantar kembali kata-laluan"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Norsk Bokmål", englishDescription: "Norweg
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Nederlands (België)", englishDescription:
recover:
recover_account_title: "Herstel Account"
send_password: "Verzend nieuw wachtwoord"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Maak een account aan om je vooruitgang op te slaan"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Nederlands (Nederland)", englishDescription
recover:
recover_account_title: "Herstel Account"
send_password: "Verzend nieuw wachtwoord"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Maak een account aan om je vooruitgang op te slaan"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Norwegian Nynorsk", englishDescription: "No
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Norsk", englishDescription: "Norwegian", tr
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "język polski", englishDescription: "Polish
recover:
recover_account_title: "Odzyskaj konto"
send_password: "Wyślij hasło tymczasowe"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Stwórz konto, aby zapisać postępy"
@ -203,8 +204,8 @@ module.exports = nativeDescription: "język polski", englishDescription: "Polish
password_mismatch: "Hasła róznią się od siebie"
password_repeat: "Powtórz swoje hasło."
job_profile: "Profil zatrudnienia"
# job_profile_approved: "Twój profil zatrudnienia został zaakceptowany przez CodeCombat. Pracodawcy będą mogli go widzieć dopóki nie oznaczysz go jako nieaktywny lub nie będzie on zmieniany przez 4 tygodnie."
# job_profile_explanation: "Witaj! Wypełnij to, a będziemy w kontakcie w sprawie znalezienie dla Ciebe pracy twórcy oprogramowania."
job_profile_approved: "Twój profil zatrudnienia został zaakceptowany przez CodeCombat. Pracodawcy będą mogli go widzieć dopóki nie oznaczysz go jako nieaktywny lub nie będzie on zmieniany przez 4 tygodnie."
job_profile_explanation: "Witaj! Wypełnij to, a będziemy w kontakcie w sprawie znalezienie dla Ciebe pracy twórcy oprogramowania."
sample_profile: "Zobacz przykładowy profil"
view_profile: "Zobacz swój profil"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
recover:
recover_account_title: "Recuperar conta"
send_password: "Recuperar senha"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Criar conta para salvar progresso"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Português (Portugal)", englishDescription:
recover:
recover_account_title: "Recuperar Conta"
send_password: "Enviar Password de Recuperação"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Criar Conta para Guardar Progresso"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "limba română", englishDescription: "Roman
recover:
recover_account_title: "Recuperează Cont"
send_password: "Trimite parolă de recuperare"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Crează cont pentru a salva progresul"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
recover:
recover_account_title: "Восстановить аккаунт"
send_password: "Отправить пароль для восстановления"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Создать аккаунт, чтобы сохранить прогресс"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "slovenčina", englishDescription: "Slovak",
recover:
recover_account_title: "Obnov účet"
send_password: "Zašli záchranné heslo"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Vytvor si účet, nech si uložíš progres"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "slovenščina", englishDescription: "Sloven
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
recover:
recover_account_title: "Поврати налог"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Svenska", englishDescription: "Swedish", tr
recover:
recover_account_title: "Återskapa ditt konto"
send_password: "Skicka återskapningslösenord"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Skapa ett konto för att spara dina framsteg"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "ไทย", englishDescription: "Thai", tra
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "สร้างบัญชีใหม่เพื่อบันทึกความก้าวหน้า"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Türkçe", englishDescription: "Turkish", t
recover:
recover_account_title: "Hesabı Kurtar"
send_password: "Kurtarma Parolası Gönder"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "İlerlemenizi Kaydetmek için Hesap Oluşturun"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "українська мова", englishDesc
recover:
recover_account_title: "Відновити акаунт"
send_password: "Надіслати пароль відновлення"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Створити акаунт, щоб зберегти прогрес"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "اُردُو", englishDescription: "Urdu",
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
recover:
recover_account_title: "Khôi phục tài khoản"
send_password: "Gởi mật mã khôi phục"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "Tạo tài khoản để lưu tiến trình"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "简体中文", englishDescription: "Chinese
recover:
recover_account_title: "找回账户"
send_password: "发送重置链接"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "创建一个账户来保存进度"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "繁体中文", englishDescription: "Chinese
recover:
recover_account_title: "復原帳號"
send_password: "送出新密碼"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "建立帳號儲存進度"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "吴语", englishDescription: "Wuu (Simplifi
# recover:
# recover_account_title: "Recover Account"
# send_password: "Send Recovery Password"
# recovery_sent: "Recovery email sent."
# signup:
# create_account_title: "Create Account to Save Progress"

View file

@ -79,6 +79,7 @@ module.exports = nativeDescription: "吳語", englishDescription: "Wuu (Traditio
recover:
recover_account_title: "賬號尋轉"
send_password: "發轉設鏈接畀我"
# recovery_sent: "Recovery email sent."
signup:
create_account_title: "做新賬號來存進度"

View file

@ -36,6 +36,13 @@ module.exports =
'tome:reload-code': c.object {title: 'Reload Code', description: 'Published when you reset a spell to its original source', required: ['spell']},
spell: {type: 'object'}
'tome:palette-cleared': c.object {title: 'Palette Cleared', description: 'Published when the spell palette is about to be cleared and recreated.'},
thang: {type: 'object'}
'tome:palette-updated': c.object {title: 'Palette Updated', description: 'Published when the spell palette has just been updated.'},
thang: {type: 'object'}
entries: {type: 'array'}
'tome:palette-hovered': c.object {title: 'Palette Hovered', description: 'Published when you hover over a Thang in the spell palette', required: ['thang', 'prop', 'entry']},
thang: {type: 'object'}
prop: {type: 'string'}

View file

@ -37,5 +37,5 @@ module.exports = class RecoverModal extends ModalView
successfullyRecovered: =>
@disableModalInProgress(@$el)
@$el.find('.modal-body:visible').text('Recovery email sent.')
@$el.find('.modal-body:visible').text($.i18n.t('recover.recovery_sent'))
@$el.find('.modal-footer').remove()

View file

@ -53,6 +53,7 @@ module.exports = class SpellPaletteView extends CocoView
@$el.find('.code-language-logo').removeClass().addClass 'code-language-logo ' + language
createPalette: ->
Backbone.Mediator.publish 'tome:palette-cleared', {thang: thang}
lcs = @supermodel.getModels LevelComponent
allDocs = {}
excludedDocs = {}
@ -135,7 +136,7 @@ module.exports = class SpellPaletteView extends CocoView
if thisName = {coffeescript: '@', lua: 'self', clojure: 'self'}[@options.language]
if @entryGroupNames.this
@entryGroupNames.this = thisName
null
Backbone.Mediator.publish 'tome:palette-updated', entries: @entries
addEntry: (doc, shortenize, tabbify, isSnippet=false) ->
writable = (if _.isString(doc) then doc else doc.name) in (@thang.apiUserProperties ? [])