Merge branch 'master' of git://github.com/dkundel/codecombat into dkundel-master

This commit is contained in:
Nick Winter 2014-03-31 12:42:53 -07:00
commit a9a0a55331
57 changed files with 154 additions and 16 deletions

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "العربية", englishDescription: "Arabi
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "български език", englishDescri
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Català", englishDescription: "Catalan", tr
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "čeština", englishDescription: "Czech", tr
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "dansk", englishDescription: "Danish", trans
skip_tutorial: "Spring over (esc)" skip_tutorial: "Spring over (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Tastaturgenveje" editor_config_keybindings_label: "Tastaturgenveje"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Deutsch", englishDescription: "German", tra
skip_tutorial: "Überspringen (Esc)" skip_tutorial: "Überspringen (Esc)"
editor_config: "Editor Einstellungen" editor_config: "Editor Einstellungen"
editor_config_title: "Editor Einstellungen" editor_config_title: "Editor Einstellungen"
editor_config_language_label: "Programmiersprache"
editor_config_language_description: "Bestimme die Programmiersprache in der du arbeiten möchtest."
editor_config_keybindings_label: "Tastenbelegung" editor_config_keybindings_label: "Tastenbelegung"
editor_config_keybindings_default: "Standard (Ace)" editor_config_keybindings_default: "Standard (Ace)"
editor_config_keybindings_description: "Fügt zusätzliche Tastenkombinationen, bekannt aus anderen Editoren, hinzu" editor_config_keybindings_description: "Fügt zusätzliche Tastenkombinationen, bekannt aus anderen Editoren, hinzu"
@ -231,8 +233,8 @@ module.exports = nativeDescription: "Deutsch", englishDescription: "German", tra
editor_config_invisibles_description: "Zeigt unsichtbare Zeichen wie Leertasten an." editor_config_invisibles_description: "Zeigt unsichtbare Zeichen wie Leertasten an."
editor_config_indentguides_label: "Zeige Einrückungshilfe" editor_config_indentguides_label: "Zeige Einrückungshilfe"
editor_config_indentguides_description: "Zeigt vertikale Linien an um Einrückungen besser zu sehen." editor_config_indentguides_description: "Zeigt vertikale Linien an um Einrückungen besser zu sehen."
# editor_config_behaviors_label: "Smart Behaviors" editor_config_behaviors_label: "Intelligentes Verhalten"
# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." editor_config_behaviors_description: "Vervollständigt automatisch Klammern und Anführungszeichen."
# loading_ready: "Ready!" # loading_ready: "Ready!"
# tip_insert_positions: "Shift+Click a point on the map to insert it into the spell editor." # tip_insert_positions: "Shift+Click a point on the map to insert it into the spell editor."
# tip_toggle_play: "Toggle play/paused with Ctrl+P." # tip_toggle_play: "Toggle play/paused with Ctrl+P."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "ελληνικά", englishDescription: "Gre
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "English (AU)", englishDescription: "English
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "English (UK)", englishDescription: "English
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "English (US)", englishDescription: "English
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
skip_tutorial: "Skip (esc)" skip_tutorial: "Skip (esc)"
editor_config: "Editor Config" editor_config: "Editor Config"
editor_config_title: "Editor Configuration" editor_config_title: "Editor Configuration"
editor_config_language_label: "Programming Language"
editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Key Bindings" editor_config_keybindings_label: "Key Bindings"
editor_config_keybindings_default: "Default (Ace)" editor_config_keybindings_default: "Default (Ace)"
editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "español (América Latina)", englishDescrip
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "español", englishDescription: "Spanish", t
skip_tutorial: "Saltar (esc)" skip_tutorial: "Saltar (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "فارسی", englishDescription: "Persian",
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "suomi", englishDescription: "Finnish", tran
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "français", englishDescription: "French", t
skip_tutorial: "Passer (esc)" skip_tutorial: "Passer (esc)"
editor_config: "Config de l'éditeur" editor_config: "Config de l'éditeur"
editor_config_title: "Configuration de l'éditeur" editor_config_title: "Configuration de l'éditeur"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Raccourcis clavier" editor_config_keybindings_label: "Raccourcis clavier"
editor_config_keybindings_default: "Par défault (Ace)" editor_config_keybindings_default: "Par défault (Ace)"
editor_config_keybindings_description: "Ajouter de nouveaux raccourcis connus depuis l'éditeur commun." editor_config_keybindings_description: "Ajouter de nouveaux raccourcis connus depuis l'éditeur commun."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "עברית", englishDescription: "Hebrew",
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "मानक हिन्दी", englishDe
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "magyar", englishDescription: "Hungarian", t
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Ind
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Italiano", englishDescription: "Italian", t
skip_tutorial: "Salta (esc)" skip_tutorial: "Salta (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "日本語", englishDescription: "Japanese",
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "한국어", englishDescription: "Korean", t
skip_tutorial: "넘기기 (esc)" skip_tutorial: "넘기기 (esc)"
editor_config: "에디터 설정" editor_config: "에디터 설정"
editor_config_title: "에디터 설정" editor_config_title: "에디터 설정"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "단축키 설정" editor_config_keybindings_label: "단축키 설정"
editor_config_keybindings_default: "기본(Ace)" editor_config_keybindings_default: "기본(Ace)"
editor_config_keybindings_description: "일반적인 에디터와 마찬가지인 단축키 설정" editor_config_keybindings_description: "일반적인 에디터와 마찬가지인 단축키 설정"

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "lietuvių kalba", englishDescription: "Lith
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Bahasa Melayu", englishDescription: "Bahasa
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Norsk Bokmål", englishDescription: "Norweg
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Nederlands (België)", englishDescription:
skip_tutorial: "Overslaan (esc)" skip_tutorial: "Overslaan (esc)"
editor_config: "Editor Configuratie" editor_config: "Editor Configuratie"
editor_config_title: "Editor Configuratie" editor_config_title: "Editor Configuratie"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Toets instellingen" editor_config_keybindings_label: "Toets instellingen"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors." editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Nederlands (Nederland)", englishDescription
skip_tutorial: "Overslaan (esc)" skip_tutorial: "Overslaan (esc)"
editor_config: "Editor Configuratie" editor_config: "Editor Configuratie"
editor_config_title: "Editor Configuratie" editor_config_title: "Editor Configuratie"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Toets instellingen" editor_config_keybindings_label: "Toets instellingen"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors." editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Nederlands", englishDescription: "Dutch", t
skip_tutorial: "Overslaan (esc)" skip_tutorial: "Overslaan (esc)"
editor_config: "Editor Configuratie" editor_config: "Editor Configuratie"
editor_config_title: "Editor Configuratie" editor_config_title: "Editor Configuratie"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Toets instellingen" editor_config_keybindings_label: "Toets instellingen"
editor_config_keybindings_default: "Standaard (Ace)" editor_config_keybindings_default: "Standaard (Ace)"
editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors." editor_config_keybindings_description: "Voeg extra shortcuts toe van de gebruikelijke editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Norwegian Nynorsk", englishDescription: "No
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Norsk", englishDescription: "Norwegian", tr
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "język polski", englishDescription: "Polish
skip_tutorial: "Pomiń (esc)" skip_tutorial: "Pomiń (esc)"
editor_config: "Konfiguracja edytora" editor_config: "Konfiguracja edytora"
editor_config_title: "Konfiguracja edytora" editor_config_title: "Konfiguracja edytora"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Przypisania klawiszy" editor_config_keybindings_label: "Przypisania klawiszy"
editor_config_keybindings_default: "Domyślny (Ace)" editor_config_keybindings_default: "Domyślny (Ace)"
editor_config_keybindings_description: "Dodaje skróty znane z popularnych edytorów." editor_config_keybindings_description: "Dodaje skróty znane z popularnych edytorów."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
skip_tutorial: "Pular (esc)" skip_tutorial: "Pular (esc)"
editor_config: "Editor de Configurações" editor_config: "Editor de Configurações"
editor_config_title: "Editor de Configurações" editor_config_title: "Editor de Configurações"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Teclas de Atalho" editor_config_keybindings_label: "Teclas de Atalho"
editor_config_keybindings_default: "Padrão (Ace)" editor_config_keybindings_default: "Padrão (Ace)"
editor_config_keybindings_description: "Adicionar atalhos conhecidos de editores comuns." editor_config_keybindings_description: "Adicionar atalhos conhecidos de editores comuns."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Português europeu", englishDescription: "P
skip_tutorial: "Saltar (esc)" skip_tutorial: "Saltar (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "português", englishDescription: "Portugues
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "limba română", englishDescription: "Roman
skip_tutorial: "Sari peste (esc)" skip_tutorial: "Sari peste (esc)"
editor_config: "Editor Config" editor_config: "Editor Config"
editor_config_title: "Configurare Editor" editor_config_title: "Configurare Editor"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Mapare taste" editor_config_keybindings_label: "Mapare taste"
editor_config_keybindings_default: "Default (Ace)" editor_config_keybindings_default: "Default (Ace)"
editor_config_keybindings_description: "Adaugă comenzi rapide suplimentare cunoscute din editoarele obisnuite." editor_config_keybindings_description: "Adaugă comenzi rapide suplimentare cunoscute din editoarele obisnuite."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi
skip_tutorial: "Пропуск (Esc)" skip_tutorial: "Пропуск (Esc)"
editor_config: "Настройки редактора" editor_config: "Настройки редактора"
editor_config_title: "Настройки редактора" editor_config_title: "Настройки редактора"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Сочетания клавиш" editor_config_keybindings_label: "Сочетания клавиш"
editor_config_keybindings_default: "По умолчанию (Ace)" editor_config_keybindings_default: "По умолчанию (Ace)"
editor_config_keybindings_description: "Добавляет дополнительные сочетания, известные из популярных редакторов." editor_config_keybindings_description: "Добавляет дополнительные сочетания, известные из популярных редакторов."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "slovenčina", englishDescription: "Slovak",
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "slovenščina", englishDescription: "Sloven
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Svenska", englishDescription: "Swedish", tr
skip_tutorial: "Hoppa över (esc)" skip_tutorial: "Hoppa över (esc)"
editor_config: "Ställ in redigerare" editor_config: "Ställ in redigerare"
editor_config_title: "Redigerarinställningar" editor_config_title: "Redigerarinställningar"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
editor_config_keybindings_label: "Kortkommandon" editor_config_keybindings_label: "Kortkommandon"
editor_config_keybindings_default: "Standard (Ace)" editor_config_keybindings_default: "Standard (Ace)"
editor_config_keybindings_description: "Lägger till ytterligare kortkommandon kända från vanliga redigerare." editor_config_keybindings_description: "Lägger till ytterligare kortkommandon kända från vanliga redigerare."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "ไทย", englishDescription: "Thai", tra
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Türkçe", englishDescription: "Turkish", t
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "українська мова", englishDesc
skip_tutorial: "Пропустити (esc)" skip_tutorial: "Пропустити (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
editor_config_keybindings_default: "За замовчуванням (Ace)" editor_config_keybindings_default: "За замовчуванням (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "اُردُو", englishDescription: "Urdu",
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "简体中文", englishDescription: "Chinese
skip_tutorial: "跳过esc" skip_tutorial: "跳过esc"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "繁体中文", englishDescription: "Chinese
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -224,6 +224,8 @@ module.exports = nativeDescription: "中文", englishDescription: "Chinese", tra
# skip_tutorial: "Skip (esc)" # skip_tutorial: "Skip (esc)"
# editor_config: "Editor Config" # editor_config: "Editor Config"
# editor_config_title: "Editor Configuration" # editor_config_title: "Editor Configuration"
# editor_config_language_label: "Programming Language"
# editor_config_language_description: "Define the programming language you want to code in."
# editor_config_keybindings_label: "Key Bindings" # editor_config_keybindings_label: "Key Bindings"
# editor_config_keybindings_default: "Default (Ace)" # editor_config_keybindings_default: "Default (Ace)"
# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." # editor_config_keybindings_description: "Adds additional shortcuts known from the common editors."

View file

@ -5,6 +5,12 @@ block modal-header-content
block modal-body-content block modal-body-content
.form .form
.form-group.select-group
label.control-label(for="tome-language" data-i18n="play_level.editor_config_language_label") Programming Language
select#tome-language(name="language")
option(value="javascript" selected=(language === "javascript")) JavaScript
option(value="coffeescript" selected=(language === "coffeescript")) CoffeeScript
span.help-block(data-i18n="play_level.editor_config_language_description") Define the programming language you want to code in.
.form-group.select-group .form-group.select-group
label.control-label(for="tome-key-bindings" data-i18n="play_level.editor_config_keybindings_label") Key Bindings label.control-label(for="tome-key-bindings" data-i18n="play_level.editor_config_keybindings_label") Key Bindings
select#tome-key-bindings(name="keyBindings", type="checkbox", checked=multiplayer) select#tome-key-bindings(name="keyBindings", type="checkbox", checked=multiplayer)
@ -30,4 +36,3 @@ block modal-body-content
block modal-footer-content block modal-footer-content
a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close

View file

@ -8,14 +8,16 @@ module.exports = class EditorConfigModal extends View
aceConfig: {} aceConfig: {}
defaultConfig: defaultConfig:
language: 'javascript'
keyBindings: 'default' keyBindings: 'default'
invisibles: false invisibles: false
indentGuides: false indentGuides: false
behaviors: false behaviors: false
events: events:
'change #tome-invisibles': 'updateInvisiblesSelection' 'change #tome-invisibles': 'updateInvisibles'
'change #tome-key-bindings': 'updateKeyBindingsSelection' 'change #tome-language': 'updateLanguage'
'change #tome-key-bindings': 'updateKeyBindings'
'change #tome-indent-guides': 'updateIndentGuides' 'change #tome-indent-guides': 'updateIndentGuides'
'change #tome-behaviors': 'updateBehaviors' 'change #tome-behaviors': 'updateBehaviors'
@ -26,16 +28,20 @@ module.exports = class EditorConfigModal extends View
@aceConfig = _.cloneDeep me.get('aceConfig') ? {} @aceConfig = _.cloneDeep me.get('aceConfig') ? {}
@aceConfig = _.defaults @aceConfig, @defaultConfig @aceConfig = _.defaults @aceConfig, @defaultConfig
c = super() c = super()
c.language = @aceConfig.language
c.keyBindings = @aceConfig.keyBindings c.keyBindings = @aceConfig.keyBindings
c.invisibles = @aceConfig.invisibles c.invisibles = @aceConfig.invisibles
c.indentGuides = @aceConfig.indentGuides c.indentGuides = @aceConfig.indentGuides
c.behaviors = @aceConfig.behaviors c.behaviors = @aceConfig.behaviors
c c
updateInvisiblesSelection: -> updateLanguage: ->
@aceConfig.language = @$el.find('#tome-language').val()
updateInvisibles: ->
@aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked') @aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked')
updateKeyBindingsSelection: -> updateKeyBindings: ->
@aceConfig.keyBindings = @$el.find('#tome-key-bindings').val() @aceConfig.keyBindings = @$el.find('#tome-key-bindings').val()
updateIndentGuides: -> updateIndentGuides: ->
@ -48,12 +54,15 @@ module.exports = class EditorConfigModal extends View
super() super()
onHidden: -> onHidden: ->
oldLanguage = @aceConfig.language
@aceConfig.language = @$el.find('#tome-language').val()
@aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked') @aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked')
@aceConfig.keyBindings = @$el.find('#tome-key-bindings').val() @aceConfig.keyBindings = @$el.find('#tome-key-bindings').val()
@aceConfig.indentGuides = @$el.find('#tome-indent-guides').prop('checked') @aceConfig.indentGuides = @$el.find('#tome-indent-guides').prop('checked')
@aceConfig.behaviors = @$el.find('#tome-behaviors').prop('checked') @aceConfig.behaviors = @$el.find('#tome-behaviors').prop('checked')
me.set 'aceConfig', @aceConfig me.set 'aceConfig', @aceConfig
Backbone.Mediator.publish 'change:editor-config' Backbone.Mediator.publish 'tome:change-config'
Backbone.Mediator.publish 'tome:change-language' unless @aceConfig.language isnt oldLanguage
me.save() me.save()
destroy: -> destroy: ->

View file

@ -85,11 +85,13 @@ module.exports = class Spell
aether.hasChangedSignificantly (newSource ? @originalSource), (currentSource ? @source), true, true aether.hasChangedSignificantly (newSource ? @originalSource), (currentSource ? @source), true, true
createAether: (thang) -> createAether: (thang) ->
aceConfig = me.get('aceConfig') ? {}
aetherOptions = aetherOptions =
problems: problems:
jshint_W040: {level: "ignore"} jshint_W040: {level: "ignore"}
jshint_W030: {level: "ignore"} # aether_NoEffect instead jshint_W030: {level: "ignore"} # aether_NoEffect instead
aether_MissingThis: {level: (if thang.requiresThis then 'error' else 'warning')} aether_MissingThis: {level: (if thang.requiresThis then 'error' else 'warning')}
language: aceConfig.language ? 'javascript'
functionName: @name functionName: @name
functionParameters: @parameters functionParameters: @parameters
yieldConditionally: thang.plan? yieldConditionally: thang.plan?
@ -107,5 +109,12 @@ module.exports = class Spell
aether = new Aether aetherOptions aether = new Aether aetherOptions
aether aether
updateLanguageAether: ->
aceConfig = me.get('aceConfig') ? {}
for thangId, spellThang of @thangs
spellThang.aether?.setLanguage (aceConfig.language ? 'javascript')
spellThang.castAether = null
@transpile()
toString: -> toString: ->
"<Spell: #{@spellKey}>" "<Spell: #{@spellKey}>"

View file

@ -15,6 +15,10 @@ module.exports = class SpellView extends View
eventsSuppressed: true eventsSuppressed: true
writable: true writable: true
editModes:
'javascript': 'ace/mode/javascript'
'coffeescript': 'ace/mode/coffee'
keyBindings: keyBindings:
'default': null 'default': null
'vim': 'ace/keyboard/vim' 'vim': 'ace/keyboard/vim'
@ -34,8 +38,9 @@ module.exports = class SpellView extends View
'modal-closed': 'focus' 'modal-closed': 'focus'
'focus-editor': 'focus' 'focus-editor': 'focus'
'tome:spell-statement-index-updated': 'onStatementIndexUpdated' 'tome:spell-statement-index-updated': 'onStatementIndexUpdated'
'tome:change-language': 'onChangeLanguage'
'tome:change-config': 'onChangeEditorConfig'
'spell-beautify': 'onSpellBeautify' 'spell-beautify': 'onSpellBeautify'
'change:editor-config': 'onChangeEditorConfig'
events: events:
'mouseout': 'onMouseOut' 'mouseout': 'onMouseOut'
@ -67,7 +72,7 @@ module.exports = class SpellView extends View
@aceSession = @ace.getSession() @aceSession = @ace.getSession()
@aceDoc = @aceSession.getDocument() @aceDoc = @aceSession.getDocument()
@aceSession.setUseWorker false @aceSession.setUseWorker false
@aceSession.setMode 'ace/mode/javascript' @aceSession.setMode @editModes[aceConfig.language ? 'javascript']
@aceSession.setWrapLimitRange null @aceSession.setWrapLimitRange null
@aceSession.setUseWrapMode true @aceSession.setUseWrapMode true
@aceSession.setNewLineMode "unix" @aceSession.setNewLineMode "unix"
@ -562,10 +567,15 @@ module.exports = class SpellView extends View
@ace.setValue pretty @ace.setValue pretty
onChangeEditorConfig: (e) -> onChangeEditorConfig: (e) ->
aceConfig = me.get 'aceConfig' aceConfig = me.get('aceConfig') ? {}
@ace.setDisplayIndentGuides (aceConfig.indentGuides || false) @ace.setDisplayIndentGuides aceConfig.indentGuides # default false
@ace.setShowInvisibles (aceConfig.invisibles || false) @ace.setShowInvisibles aceConfig.invisibles # default false
@ace.setKeyboardHandler (@keyBindings[aceConfig.keyBindings] || null) @ace.setKeyboardHandler @keyBindings[aceConfig.keyBindings ? 'default']
# @aceSession.setMode @editModes[aceConfig.language ? 'javascript']
onChangeLanguage: (e) ->
aceConfig = me.get('aceConfig') ? {}
@aceSession.setMode @editModes[aceConfig.language ? 'javascript']
dismiss: -> dismiss: ->
@recompile() if @spell.hasChangedSignificantly @getSource() @recompile() if @spell.hasChangedSignificantly @getSource()

View file

@ -48,6 +48,7 @@ module.exports = class TomeView extends View
'tome:spell-loaded': "onSpellLoaded" 'tome:spell-loaded': "onSpellLoaded"
'tome:cast-spell': "onCastSpell" 'tome:cast-spell': "onCastSpell"
'tome:toggle-spell-list': 'onToggleSpellList' 'tome:toggle-spell-list': 'onToggleSpellList'
'tome:change-language': 'updateLanguageForAllSpells'
'surface:sprite-selected': 'onSpriteSelected' 'surface:sprite-selected': 'onSpriteSelected'
'god:new-world-created': 'onNewWorld' 'god:new-world-created': 'onNewWorld'
@ -215,6 +216,9 @@ module.exports = class TomeView extends View
spell.view.reloadCode false for spellKey, spell of @spells when spell.team is me.team spell.view.reloadCode false for spellKey, spell of @spells when spell.team is me.team
Backbone.Mediator.publish 'tome:cast-spells', spells: @spells Backbone.Mediator.publish 'tome:cast-spells', spells: @spells
updateLanguageForAllSpells: ->
spell.updateLanguageAether() for spellKey, spell of @spells
destroy: -> destroy: ->
spell.destroy() for spellKey, spell of @spells spell.destroy() for spellKey, spell of @spells
@worker?._close() @worker?._close()

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.1.14", "aether": "~0.1.17",
"underscore.string": "~2.3.3", "underscore.string": "~2.3.3",
"firebase": "~1.0.2", "firebase": "~1.0.2",
"catiline": "~2.9.3" "catiline": "~2.9.3"

View file

@ -47,6 +47,7 @@ UserSchema = c.object {},
colorConfig: c.object {additionalProperties: c.colorConfig()} colorConfig: c.object {additionalProperties: c.colorConfig()}
aceConfig: c.object {}, aceConfig: c.object {},
language: {type: 'string', 'default': 'javascript', 'enum': ['javascript', 'coffeescript']}
keyBindings: {type: 'string', 'default': 'default', 'enum': ['default', 'vim', 'emacs']} keyBindings: {type: 'string', 'default': 'default', 'enum': ['default', 'vim', 'emacs']}
invisibles: {type: 'boolean', 'default': false} invisibles: {type: 'boolean', 'default': false}
indentGuides: {type: 'boolean', 'default': false} indentGuides: {type: 'boolean', 'default': false}