diff --git a/app/locale/ar.coffee b/app/locale/ar.coffee index 9921bae54..09fcff581 100644 --- a/app/locale/ar.coffee +++ b/app/locale/ar.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "العربية", englishDescription: "Arabi # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/bg.coffee b/app/locale/bg.coffee index 01f6cadb8..3ad52cddd 100644 --- a/app/locale/bg.coffee +++ b/app/locale/bg.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "български език", englishDescri # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/cs.coffee b/app/locale/cs.coffee index d42c5f537..28a2c2e07 100644 --- a/app/locale/cs.coffee +++ b/app/locale/cs.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "čeština", englishDescription: "Czech", tr hud_continue: "Pokračovat (stiskněte shift-mezera)" spell_saved: "Kouzlo uloženo" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Administrátorský pohled" diff --git a/app/locale/da.coffee b/app/locale/da.coffee index 6c0d2431a..94b36bccc 100644 --- a/app/locale/da.coffee +++ b/app/locale/da.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "dansk", englishDescription: "Danish", trans hud_continue: "Fortsæt (tryk skift-mellemrum)" spell_saved: "Trylleformularen er gemt" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: # av_title: "Admin Views" diff --git a/app/locale/de.coffee b/app/locale/de.coffee index eb564d458..155669e56 100644 --- a/app/locale/de.coffee +++ b/app/locale/de.coffee @@ -206,7 +206,18 @@ module.exports = nativeDescription: "Deutsch", englishDescription: "German", tra tome_available_spells: "Verfügbare Zauber" hud_continue: "Weiter (drücke Shift + Leertaste)" spell_saved: "Zauber gespeichert" -# skip_tutorial: "Skip (esc)" + skip_tutorial: "Überspringen (Esc)" + editor_config: "Editor Einstellungen" + editor_config_title: "Editor Einstellungen" + editor_config_keybindings_label: "Tastenbelegung" + editor_config_keybindings_default: "Standard (Ace)" + editor_config_keybindings_description: "Fügt zusätzliche Tastenkombinationen, bekannt aus anderen Editoren, hinzu" + editor_config_invisibles_label: "Zeige unsichtbare Zeichen" + editor_config_invisibles_description: "Zeigt unsichtbare Zeichen wie Leertasten an." + editor_config_indentguides_label: "Zeige Einrückungshilfe" + editor_config_indentguides_description: "Zeigt vertikale Linien an um Einrückungen besser zu sehen." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Administrator Übersicht" diff --git a/app/locale/el.coffee b/app/locale/el.coffee index 2530712ab..01e907b39 100644 --- a/app/locale/el.coffee +++ b/app/locale/el.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "ελληνικά", englishDescription: "Gre # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/en-AU.coffee b/app/locale/en-AU.coffee index 71c90c79f..8486acbc4 100644 --- a/app/locale/en-AU.coffee +++ b/app/locale/en-AU.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "English (AU)", englishDescription: "English # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/en-GB.coffee b/app/locale/en-GB.coffee index 445d6137f..757a7012b 100644 --- a/app/locale/en-GB.coffee +++ b/app/locale/en-GB.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "English (UK)", englishDescription: "English # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/en-US.coffee b/app/locale/en-US.coffee index 5fc32bbf7..027e45419 100644 --- a/app/locale/en-US.coffee +++ b/app/locale/en-US.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "English (US)", englishDescription: "English # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 38f21bbfc..204317e0b 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr hud_continue: "Continue (shift+space)" spell_saved: "Spell Saved" skip_tutorial: "Skip (esc)" + editor_config: "Editor Config" + editor_config_title: "Editor Configuration" + editor_config_keybindings_label: "Key Bindings" + editor_config_keybindings_default: "Default (Ace)" + editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." + editor_config_invisibles_label: "Show Invisibles" + editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." + editor_config_indentguides_label: "Show Indent Guides" + editor_config_indentguides_description: "Displays vertical lines to see indentation better." + editor_config_behaviors_label: "Smart Behaviors" + editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Admin Views" diff --git a/app/locale/es-419.coffee b/app/locale/es-419.coffee index 01a26a711..a494a2e63 100644 --- a/app/locale/es-419.coffee +++ b/app/locale/es-419.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "español (América Latina)", englishDescrip hud_continue: "Continuar (presionar shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/es-ES.coffee b/app/locale/es-ES.coffee index ff87aa110..4b5307600 100644 --- a/app/locale/es-ES.coffee +++ b/app/locale/es-ES.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis hud_continue: "Continuar (pulsa Shift+Space)" spell_saved: "Hechizo guardado" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: # av_title: "Admin Views" diff --git a/app/locale/es.coffee b/app/locale/es.coffee index 7665ee54a..6e71b9c7b 100644 --- a/app/locale/es.coffee +++ b/app/locale/es.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "español", englishDescription: "Spanish", t hud_continue: "Continuar (presionar shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/fa.coffee b/app/locale/fa.coffee index dfce565db..f6e870b6d 100644 --- a/app/locale/fa.coffee +++ b/app/locale/fa.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "فارسی", englishDescription: "Persian", # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/fi.coffee b/app/locale/fi.coffee index dff88274a..95eebb045 100644 --- a/app/locale/fi.coffee +++ b/app/locale/fi.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "suomi", englishDescription: "Finnish", tran # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/fr.coffee b/app/locale/fr.coffee index e8b6e2767..b3f01ca55 100644 --- a/app/locale/fr.coffee +++ b/app/locale/fr.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "français", englishDescription: "French", t hud_continue: "Continuer (appuie sur shift ou espace)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Vues d'administrateurs" diff --git a/app/locale/he.coffee b/app/locale/he.coffee index ca162af86..97c562d2e 100644 --- a/app/locale/he.coffee +++ b/app/locale/he.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "עברית", englishDescription: "Hebrew", # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/hi.coffee b/app/locale/hi.coffee index be1778581..9a29a9e68 100644 --- a/app/locale/hi.coffee +++ b/app/locale/hi.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "मानक हिन्दी", englishDe # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/hu.coffee b/app/locale/hu.coffee index ad1074dae..62d910253 100644 --- a/app/locale/hu.coffee +++ b/app/locale/hu.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "magyar", englishDescription: "Hungarian", t hud_continue: "Folytatás (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/id.coffee b/app/locale/id.coffee index f569350ab..04061d098 100644 --- a/app/locale/id.coffee +++ b/app/locale/id.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Ind # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/it.coffee b/app/locale/it.coffee index be34d77c5..b9a4159ce 100644 --- a/app/locale/it.coffee +++ b/app/locale/it.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "italiano", englishDescription: "Italian", t hud_continue: "Continua (premi Maiusc-Spazio)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Vista amministratore" diff --git a/app/locale/ja.coffee b/app/locale/ja.coffee index 5aa861ae5..aee267bdc 100644 --- a/app/locale/ja.coffee +++ b/app/locale/ja.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "日本語", englishDescription: "Japanese", hud_continue: "続く (Shift+Spaceキー)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "管理画面" diff --git a/app/locale/ko.coffee b/app/locale/ko.coffee index a89161b7c..6922e26b7 100644 --- a/app/locale/ko.coffee +++ b/app/locale/ko.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "한국어", englishDescription: "Korean", t # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/lt.coffee b/app/locale/lt.coffee index 2780e834f..fef80fa08 100644 --- a/app/locale/lt.coffee +++ b/app/locale/lt.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "lietuvių kalba", englishDescription: "Lith # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/ms-BA.coffee b/app/locale/ms-BA.coffee index 25eb81dc6..721cf870a 100644 --- a/app/locale/ms-BA.coffee +++ b/app/locale/ms-BA.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Bahasa Melayu", englishDescription: "Bahasa # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/nb.coffee b/app/locale/nb.coffee index 8c7b9a283..c0997bb67 100644 --- a/app/locale/nb.coffee +++ b/app/locale/nb.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Norsk Bokmål", englishDescription: "Norweg hud_continue: "Fortsett (trykk shift-mellomrom)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/nl.coffee b/app/locale/nl.coffee index ffa8ea90b..463e559fb 100644 --- a/app/locale/nl.coffee +++ b/app/locale/nl.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Nederlands", englishDescription: "Dutch", t hud_continue: "Ga verder (druk shift-space)" spell_saved: "Spreuk Opgeslagen" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Administrator panels" diff --git a/app/locale/nn.coffee b/app/locale/nn.coffee index ef7f37a76..437e89e76 100644 --- a/app/locale/nn.coffee +++ b/app/locale/nn.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Norwegian Nynorsk", englishDescription: "No # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/no.coffee b/app/locale/no.coffee index ba381e55d..9312bf07b 100644 --- a/app/locale/no.coffee +++ b/app/locale/no.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Norsk", englishDescription: "Norwegian", tr hud_continue: "Fortsett (trykk shift-mellomrom)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/pl.coffee b/app/locale/pl.coffee index 31516e816..9c1984988 100644 --- a/app/locale/pl.coffee +++ b/app/locale/pl.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "język polski", englishDescription: "Polish hud_continue: "Kontynuuj (Shift + spacja)" spell_saved: "Czar zapisany" skip_tutorial: "Pomiń (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Panel administracyjny" diff --git a/app/locale/pt-BR.coffee b/app/locale/pt-BR.coffee index 06ba3cc36..114adef31 100644 --- a/app/locale/pt-BR.coffee +++ b/app/locale/pt-BR.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "português do Brasil", englishDescription: hud_continue: "Continue (tecle Shift+Space)" spell_saved: "Feitiço Salvo" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Visualização de Administrador" diff --git a/app/locale/pt-PT.coffee b/app/locale/pt-PT.coffee index a394b773d..670e8dc77 100644 --- a/app/locale/pt-PT.coffee +++ b/app/locale/pt-PT.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Português europeu", englishDescription: "P hud_continue: "Continuar (pressiona shift-space)" spell_saved: "Feitiço Guardado" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Visualizações de Admin" diff --git a/app/locale/pt.coffee b/app/locale/pt.coffee index 8907f3239..d52a82b6a 100644 --- a/app/locale/pt.coffee +++ b/app/locale/pt.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "português", englishDescription: "Portugues hud_continue: "Continue (tecle Shift+Space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/ro.coffee b/app/locale/ro.coffee index 707eccbb6..2697f5bb3 100644 --- a/app/locale/ro.coffee +++ b/app/locale/ro.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "limba română", englishDescription: "Roman hud_continue: "Continuă (apasă shift-space)" spell_saved: "Vrajă salvată" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Admin vede" diff --git a/app/locale/ru.coffee b/app/locale/ru.coffee index 1021d054c..4a9315d28 100644 --- a/app/locale/ru.coffee +++ b/app/locale/ru.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "русский", englishDescription: "Russi hud_continue: "Продолжить (Shift+Пробел)" spell_saved: "Заклинание сохранено" skip_tutorial: "Пропуск (Esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Админ панель" diff --git a/app/locale/sk.coffee b/app/locale/sk.coffee index 0746c09bb..74c9e5850 100644 --- a/app/locale/sk.coffee +++ b/app/locale/sk.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "slovenčina", englishDescription: "Slovak", # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/sl.coffee b/app/locale/sl.coffee index 16e9f1f2a..ca6f003fa 100644 --- a/app/locale/sl.coffee +++ b/app/locale/sl.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "slovenščina", englishDescription: "Sloven # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/sr.coffee b/app/locale/sr.coffee index d7fcf369c..6630a4d02 100644 --- a/app/locale/sr.coffee +++ b/app/locale/sr.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "српски", englishDescription: "Serbian hud_continue: "Настави (притисни ентер)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/sv.coffee b/app/locale/sv.coffee index d5999988d..eaa034fe3 100644 --- a/app/locale/sv.coffee +++ b/app/locale/sv.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Svenska", englishDescription: "Swedish", tr # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/th.coffee b/app/locale/th.coffee index ee0101df5..7a8384608 100644 --- a/app/locale/th.coffee +++ b/app/locale/th.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "ไทย", englishDescription: "Thai", tra # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/tr.coffee b/app/locale/tr.coffee index 5b5699693..2be1a8c1a 100644 --- a/app/locale/tr.coffee +++ b/app/locale/tr.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Türkçe", englishDescription: "Turkish", t hud_continue: "Devam (ÜstKarakter+Boşluk)" spell_saved: "Büyü Kaydedildi" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "Yönetici Görünümleri" diff --git a/app/locale/uk.coffee b/app/locale/uk.coffee index fe19433b8..57619748b 100644 --- a/app/locale/uk.coffee +++ b/app/locale/uk.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "українська мова", englishDesc hud_continue: "Продовжити (натисніть shift-space)" spell_saved: "Заклинання збережено" skip_tutorial: "Пропустити (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: # av_title: "Admin Views" diff --git a/app/locale/ur.coffee b/app/locale/ur.coffee index f25261b33..c383d2986 100644 --- a/app/locale/ur.coffee +++ b/app/locale/ur.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "اُردُو", englishDescription: "Urdu", # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/vi.coffee b/app/locale/vi.coffee index 6e9690350..5b956e9af 100644 --- a/app/locale/vi.coffee +++ b/app/locale/vi.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/zh-HANS.coffee b/app/locale/zh-HANS.coffee index cf05668c5..c1cafeeba 100644 --- a/app/locale/zh-HANS.coffee +++ b/app/locale/zh-HANS.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "简体中文", englishDescription: "Chinese hud_continue: "继续(按 Shift-空格)" spell_saved: "咒语已保存" skip_tutorial: "跳过(esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." admin: av_title: "管理员视图" diff --git a/app/locale/zh-HANT.coffee b/app/locale/zh-HANT.coffee index 38c864554..2ed2ed41f 100644 --- a/app/locale/zh-HANT.coffee +++ b/app/locale/zh-HANT.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "繁体中文", englishDescription: "Chinese hud_continue: "繼續 (按 shift-空格)" spell_saved: "咒語已儲存" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/locale/zh.coffee b/app/locale/zh.coffee index e847517ac..6847da6ed 100644 --- a/app/locale/zh.coffee +++ b/app/locale/zh.coffee @@ -207,6 +207,17 @@ module.exports = nativeDescription: "中文", englishDescription: "Chinese", tra # hud_continue: "Continue (shift+space)" # spell_saved: "Spell Saved" # skip_tutorial: "Skip (esc)" +# editor_config: "Editor Config" +# editor_config_title: "Editor Configuration" +# editor_config_keybindings_label: "Key Bindings" +# editor_config_keybindings_default: "Default (Ace)" +# editor_config_keybindings_description: "Adds additional shortcuts known from the common editors." +# editor_config_invisibles_label: "Show Invisibles" +# editor_config_invisibles_description: "Displays invisibles such as spaces or tabs." +# editor_config_indentguides_label: "Show Indent Guides" +# editor_config_indentguides_description: "Displays vertical lines to see indentation better." +# editor_config_behaviors_label: "Smart Behaviors" +# editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." # admin: # av_title: "Admin Views" diff --git a/app/styles/play/level/modal/editor_config.sass b/app/styles/play/level/modal/editor_config.sass new file mode 100644 index 000000000..1d97d3965 --- /dev/null +++ b/app/styles/play/level/modal/editor_config.sass @@ -0,0 +1,12 @@ +#level-editor-config-modal + .select-group + display: block + min-height: 20px + margin-top: 10px + margin-bottom: 10px + padding-left: 20px + vertical-align: middle + + label + font-weight: normal + margin-right: 20px \ No newline at end of file diff --git a/app/templates/play/ladder/my_matches_tab.jade b/app/templates/play/ladder/my_matches_tab.jade index a371af589..b6c300b6d 100644 --- a/app/templates/play/ladder/my_matches_tab.jade +++ b/app/templates/play/ladder/my_matches_tab.jade @@ -32,7 +32,7 @@ div#columns.row if team.chartData tr th(colspan=4, style="color: #{team.primaryColor}") - img(src="https://chart.googleapis.com/chart?chs=450x125&cht=lxy&chco=#{team.chartColor}&chtt=Score%3A+#{team.currentScore}&chts=#{team.chartColor},16,r&chf=a,s,000000FF&chls=2&chm=o,#{team.chartColor},0,4&chd=t:#{team.chartData}") + img(src="https://chart.googleapis.com/chart?chs=450x125&cht=lxy&chco=#{team.chartColor}&chtt=Score%3A+#{team.currentScore}&chts=#{team.chartColor},16,r&chf=a,s,000000FF&chls=2&chm=o,#{team.chartColor},0,4&chd=t:#{team.chartData}&chxt=y&chxr=0,#{team.minScore},#{team.maxScore}") tr th(data-i18n="general.result") Result diff --git a/app/templates/play/level/modal/editor_config.jade b/app/templates/play/level/modal/editor_config.jade new file mode 100644 index 000000000..ca622f77c --- /dev/null +++ b/app/templates/play/level/modal/editor_config.jade @@ -0,0 +1,33 @@ +.modal-dialog + .modal-header + button(type='button', data-dismiss="modal", aria-hidden="true").close × + h3(data-i18n="play_level.editor_config_title") Editor Configuration + + .modal-body + .form + .form-group.select-group + 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) + option(value="default" selected=(keyBindings === "default") data-i18n="play_level.editor_config_keybindings_default") Default (Ace) + option(value="vim" selected=(keyBindings === "vim")) Vim + option(value="emacs" selected=(keyBindings === "emacs")) Emacs + span.help-block(data-i18n="play_level.editor_config_keybindings_description") Adds additional shortcuts known from the common editors. + .form-group.checkbox + label(for="tome-invisibles") + input#tome-invisibles(name="invisibles", type="checkbox", checked=invisibles) + span(data-i18n="play_level.editor_config_invisibles_label") Show Invisibles + span.help-block(data-i18n="play_level.editor_config_invisibles_description") Displays invisibles such as spaces or tabs. + .form-group.checkbox + label(for="tome-indent-guides") + input#tome-indent-guides(name="indentGuides", type="checkbox", checked=indentGuides) + span(data-i18n="play_level.editor_config_indentguides_label") Show Indent Guides + span.help-block(data-i18n="play_level.editor_config_indentguides_description") Displays vertical lines to see indentation better. + .form-group.checkbox + label(for="tome-behaviors") + input#tome-behaviors(name="behaviors", type="checkbox", checked=behaviors) + span(data-i18n="play_level.editor_config_behaviors_label") Smart Behaviors + span.help-block(data-i18n="play_level.editor_config_behaviors_description") Autocompletes brackets, braces, and quotes. + + .modal-footer + a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close + diff --git a/app/templates/play/level/playback.jade b/app/templates/play/level/playback.jade index abcdc942c..b13c8daef 100644 --- a/app/templates/play/level/playback.jade +++ b/app/templates/play/level/playback.jade @@ -37,3 +37,6 @@ button.btn.btn-xs.btn-inverse#music-button(title="Toggle Music") li.selectable#edit-wizard-settings i.icon-user span(data-i18n="play_level.customize_wizard") Customize Wizard + li.selectable#edit-editor-config + i.icon-edit + span(data-i18n="play_level.editor_config") Editor Config diff --git a/app/views/editor/level/thangs_tab_view.coffee b/app/views/editor/level/thangs_tab_view.coffee index 0242e3fe7..b948b6107 100644 --- a/app/views/editor/level/thangs_tab_view.coffee +++ b/app/views/editor/level/thangs_tab_view.coffee @@ -330,6 +330,7 @@ module.exports = class ThangsTabView extends View onThangsChanged: (e) => @level.set 'thangs', @thangsTreema.data + return if @editThangView serializedLevel = @level.serialize @supermodel try @world.loadFromLevel serializedLevel, false @@ -381,6 +382,8 @@ module.exports = class ThangsTabView extends View onLevelThangDoneEditing: -> @removeSubView @editThangView + @editThangView = null + @onThangsChanged() @$el.find('.thangs-column').show() diff --git a/app/views/play/ladder/my_matches_tab.coffee b/app/views/play/ladder/my_matches_tab.coffee index 6f676df78..ebcc63148 100644 --- a/app/views/play/ladder/my_matches_tab.coffee +++ b/app/views/play/ladder/my_matches_tab.coffee @@ -78,17 +78,22 @@ module.exports = class MyMatchesTabView extends CocoView team.wins = _.filter(team.matches, {state: 'win'}).length team.ties = _.filter(team.matches, {state: 'tie'}).length team.losses = _.filter(team.matches, {state: 'loss'}).length - team.scoreHistory = team.session?.get('scoreHistory') - if team.scoreHistory?.length > 1 - team.currentScore = Math.round team.scoreHistory[team.scoreHistory.length - 1][1] * 100 + scoreHistory = team.session?.get('scoreHistory') + if scoreHistory?.length > 1 + scoreHistory = _.last scoreHistory, 100 # Chart URL needs to be under 2048 characters for GET + team.currentScore = Math.round scoreHistory[scoreHistory.length - 1][1] * 100 team.chartColor = team.primaryColor.replace '#', '' - times = (s[0] for s in team.scoreHistory) - times = ((100 * (t - times[0]) / (times[times.length - 1] - times[0])).toFixed(1) for t in times) - scores = (s[1] for s in team.scoreHistory) - lowest = _.min scores - highest = _.max scores + #times = (s[0] for s in scoreHistory) + #times = ((100 * (t - times[0]) / (times[times.length - 1] - times[0])).toFixed(1) for t in times) + # Let's try being independent of time. + times = (i for s, i in scoreHistory) + scores = (s[1] for s in scoreHistory) + lowest = _.min scores.concat([0]) + highest = _.max scores.concat(50) scores = (Math.round(100 * (s - lowest) / (highest - lowest)) for s in scores) team.chartData = times.join(',') + '|' + scores.join(',') + team.minScore = Math.round(100 * lowest) + team.maxScore = Math.round(100 * highest) ctx diff --git a/app/views/play/level/modal/editor_config_modal.coffee b/app/views/play/level/modal/editor_config_modal.coffee new file mode 100644 index 000000000..044a4dfaa --- /dev/null +++ b/app/views/play/level/modal/editor_config_modal.coffee @@ -0,0 +1,60 @@ +View = require 'views/kinds/ModalView' +template = require 'templates/play/level/modal/editor_config' +{me} = require('lib/auth') + +module.exports = class EditorConfigModal extends View + id: 'level-editor-config-modal' + template: template + aceConfig: {} + + defaultConfig: + keyBindings: 'default' + invisibles: false + indentGuides: false + behaviors: false + + events: + 'change #tome-invisibles': 'updateInvisiblesSelection' + 'change #tome-key-bindings': 'updateKeyBindingsSelection' + 'change #tome-indent-guides': 'updateIndentGuides' + 'change #tome-behaviors': 'updateBehaviors' + + constructor: (options) -> + super(options) + + getRenderData: -> + @aceConfig = _.cloneDeep me.get('aceConfig') ? {} + @aceConfig = _.defaults @aceConfig, @defaultConfig + c = super() + c.keyBindings = @aceConfig.keyBindings + c.invisibles = @aceConfig.invisibles + c.indentGuides = @aceConfig.indentGuides + c.behaviors = @aceConfig.behaviors + c + + updateInvisiblesSelection: -> + @aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked') + + updateKeyBindingsSelection: -> + @aceConfig.keyBindings = @$el.find('#tome-key-bindings').val() + + updateIndentGuides: -> + @aceConfig.indentGuides = @$el.find('#tome-indent-guides').prop('checked') + + updateBehaviors: -> + @aceConfig.behaviors = @$el.find('#tome-behaviors').prop('checked') + + afterRender: -> + super() + + onHidden: -> + @aceConfig.invisibles = @$el.find('#tome-invisibles').prop('checked') + @aceConfig.keyBindings = @$el.find('#tome-key-bindings').val() + @aceConfig.indentGuides = @$el.find('#tome-indent-guides').prop('checked') + @aceConfig.behaviors = @$el.find('#tome-behaviors').prop('checked') + me.set 'aceConfig', @aceConfig + Backbone.Mediator.publish 'change:editor-config' + me.save() + + destroy: -> + super() diff --git a/app/views/play/level/playback_view.coffee b/app/views/play/level/playback_view.coffee index f9c13a9e3..46a5f3a77 100644 --- a/app/views/play/level/playback_view.coffee +++ b/app/views/play/level/playback_view.coffee @@ -2,6 +2,8 @@ View = require 'views/kinds/CocoView' template = require 'templates/play/level/playback' {me} = require 'lib/auth' +EditorConfigModal = require './modal/editor_config_modal' + module.exports = class PlaybackView extends View id: "playback-view" template: template @@ -25,6 +27,7 @@ module.exports = class PlaybackView extends View 'click #debug-toggle': 'onToggleDebug' 'click #grid-toggle': 'onToggleGrid' 'click #edit-wizard-settings': 'onEditWizardSettings' + 'click #edit-editor-config': 'onEditEditorConfig' 'click #music-button': 'onToggleMusic' 'click #zoom-in-button': -> Backbone.Mediator.publish('camera-zoom-in') unless @disabled 'click #zoom-out-button': -> Backbone.Mediator.publish('camera-zoom-out') unless @disabled @@ -77,6 +80,9 @@ module.exports = class PlaybackView extends View onEditWizardSettings: -> Backbone.Mediator.publish 'edit-wizard-settings' + onEditEditorConfig: -> + @openModalView(new EditorConfigModal()) + onDisableControls: (e) -> if not e.controls or 'playback' in e.controls @disabled = true diff --git a/app/views/play/level/tome/spell_view.coffee b/app/views/play/level/tome/spell_view.coffee index 3b366c317..e9ac98dab 100644 --- a/app/views/play/level/tome/spell_view.coffee +++ b/app/views/play/level/tome/spell_view.coffee @@ -15,6 +15,11 @@ module.exports = class SpellView extends View eventsSuppressed: true writable: true + keyBindings: + 'default': null + 'vim': 'ace/keyboard/vim' + 'emacs': 'ace/keyboard/emacs' + subscriptions: 'level-disable-controls': 'onDisableControls' 'level-enable-controls': 'onEnableControls' @@ -30,6 +35,7 @@ module.exports = class SpellView extends View 'focus-editor': 'focus' 'tome:spell-statement-index-updated': 'onStatementIndexUpdated' 'spell-beautify': 'onSpellBeautify' + 'change:editor-config': 'onChangeEditorConfig' events: 'mouseout': 'onMouseOut' @@ -56,6 +62,7 @@ module.exports = class SpellView extends View createACE: -> # Test themes and settings here: http://ace.ajax.org/build/kitchen-sink.html + aceConfig = me.get('aceConfig') ? {} @ace = ace.edit @$el.find('.ace')[0] @aceSession = @ace.getSession() @aceDoc = @aceSession.getDocument() @@ -66,11 +73,12 @@ module.exports = class SpellView extends View @aceSession.setNewLineMode "unix" @aceSession.setUseSoftTabs true @ace.setTheme 'ace/theme/textmate' - @ace.setDisplayIndentGuides false + @ace.setDisplayIndentGuides aceConfig.indentGuides @ace.setShowPrintMargin false - @ace.setShowInvisibles false - @ace.setBehavioursEnabled false + @ace.setShowInvisibles aceConfig.invisibles + @ace.setBehavioursEnabled aceConfig.behaviors @ace.setAnimatedScroll true + @ace.setKeyboardHandler @keyBindings[aceConfig.keyBindings ? 'default'] @toggleControls null, @writable @aceSession.selection.on 'changeCursor', @onCursorActivity $(@ace.container).find('.ace_gutter').on 'click', '.ace_error, .ace_warning, .ace_info', @onAnnotationClick @@ -551,6 +559,12 @@ module.exports = class SpellView extends View pretty = @spellThang.aether.beautify ugly @ace.setValue pretty + onChangeEditorConfig: (e) -> + aceConfig = me.get 'aceConfig' + @ace.setDisplayIndentGuides (aceConfig.indentGuides || false) + @ace.setShowInvisibles (aceConfig.invisibles || false) + @ace.setKeyboardHandler (@keyBindings[aceConfig.keyBindings] || null) + dismiss: -> @recompile() if @spell.hasChangedSignificantly @getSource() diff --git a/app/views/play/spectate_view.coffee b/app/views/play/spectate_view.coffee index 0a935bead..67123d829 100644 --- a/app/views/play/spectate_view.coffee +++ b/app/views/play/spectate_view.coffee @@ -68,17 +68,19 @@ module.exports = class SpectateLevelView extends View @originalOptions = _.cloneDeep(options) console.profile?() if PROFILE_ME super options - if options.spectateSessions? - @sessionOne = options.spectateSessions.sessionOne - @sessionTwo = options.spectateSessions.sessionTwo - else - @sessionOne = @getQueryVariable 'session-one' - @sessionTwo = @getQueryVariable 'session-two' - $(window).on('resize', @onWindowResize) @supermodel.once 'error', @onLevelLoadError - - @load() + + @sessionOne = @getQueryVariable 'session-one' + @sessionTwo = @getQueryVariable 'session-two' + if not @sessionOne or not @sessionTwo + @fetchRandomSessionPair (err, data) => + if err? then return console.log "There was an error fetching the random session pair: #{data}" + @sessionOne = data[0]._id + @sessionTwo = data[1]._id + @load() + else + @load() onLevelLoadError: (e) => application.router.navigate "/play?not_found=#{@levelID}", {trigger: true} @@ -423,14 +425,30 @@ module.exports = class SpectateLevelView extends View onNextGamePressed: (e) -> console.log "You want to see the next game!" - @sessionOne = "53193c8f7a89df21c4d968e9" - @sessionTwo = "531aa613026834331eac5e7e" - url = "/play/spectate/dungeon-arena?session-one=#{@sessionOne}&session-two=#{@sessionTwo}" - Backbone.Mediator.publish 'router:navigate', { - route: url, - viewClass: SpectateLevelView, - viewArgs: [{spectateSessions:{sessionOne: @sessionOne, sessionTwo: @sessionTwo}}, "dungeon-arena"]} + @fetchRandomSessionPair (err, data) => + if err? then return console.log "There was an error fetching the random session pair: #{data}" + @sessionOne = data[0]._id + @sessionTwo = data[1]._id + console.log "Playing session #{@sessionOne} against #{@sessionTwo}" + url = "/play/spectate/dungeon-arena?session-one=#{@sessionOne}&session-two=#{@sessionTwo}" + Backbone.Mediator.publish 'router:navigate', { + route: url, + viewClass: SpectateLevelView, + viewArgs: [{spectateSessions:{sessionOne: @sessionOne, sessionTwo: @sessionTwo}}, "dungeon-arena"]} + fetchRandomSessionPair: (cb) -> + console.log "Fetching random session pair!" + randomSessionPairURL = "/db/level/#{@levelID}/random_session_pair" + $.ajax + url: randomSessionPairURL + type: "GET" + complete: (jqxhr, textStatus) -> + if textStatus isnt "success" + cb("error", jqxhr.statusText) + else + cb(null, $.parseJSON(jqxhr.responseText)) + + diff --git a/server/levels/level_handler.coffee b/server/levels/level_handler.coffee index 4a2bdd24a..81a5e6166 100644 --- a/server/levels/level_handler.coffee +++ b/server/levels/level_handler.coffee @@ -31,6 +31,8 @@ LevelHandler = class LevelHandler extends Handler return @getLeaderboard(req, res, args[0]) if args[1] is 'leaderboard' return @getMySessions(req, res, args[0]) if args[1] is 'my_sessions' return @getFeedback(req, res, args[0]) if args[1] is 'feedback' + return @getRandomSessionPair(req,res,args[0]) if args[1] is 'random_session_pair' + return @sendNotFoundError(res) fetchLevelByIDAndHandleErrors: (id, req, res, callback) -> @@ -136,16 +138,64 @@ LevelHandler = class LevelHandler extends Handler 'creatorName' 'creator' ] - + query = Session .find(sessionsQueryParameters) .limit(req.query.limit) + .sort(sortParameters) .select(selectProperties.join ' ') query.exec (err, resultSessions) => return @sendDatabaseError(res, err) if err resultSessions ?= [] @sendSuccess res, resultSessions + + getRandomSessionPair: (req, res, slugOrID) -> + findParameters = {} + if Handler.isID slugOrID + findParameters["_id"] = slugOrID + else + findParameters["slug"] = slugOrID + selectString = 'original version' + query = Level.findOne(findParameters) + .select(selectString) + .lean() + + query.exec (err, level) => + return @sendDatabaseError(res, err) if err + return @sendNotFoundError(res) unless level? + + sessionsQueryParameters = + level: + original: level.original.toString() + majorVersion: level.version.major + submitted:true + + console.log sessionsQueryParameters + + + query = Session + .find(sessionsQueryParameters) + .select('team') + .lean() + + query.exec (err, resultSessions) => + return @sendDatabaseError res, err if err? or not resultSessions + + teamSessions = _.groupBy resultSessions, 'team' + console.log teamSessions + sessions = [] + numberOfTeams = 0 + for team of teamSessions + numberOfTeams += 1 + sessions.push _.sample(teamSessions[team]) + if numberOfTeams != 2 then return @sendDatabaseError res, "There aren't sessions of 2 teams, so cannot choose random opponents!" + + @sendSuccess res, sessions + + + + validateLeaderboardRequestParameters: (req) -> req.query.order = parseInt(req.query.order) ? -1 diff --git a/server/levels/sessions/level_session_schema.coffee b/server/levels/sessions/level_session_schema.coffee index a7d742001..d798a9d88 100644 --- a/server/levels/sessions/level_session_schema.coffee +++ b/server/levels/sessions/level_session_schema.coffee @@ -118,21 +118,16 @@ _.extend LevelSessionSchema.properties, meanStrength: type: 'number' - default: 25 standardDeviation: type:'number' - default: 25/3 minimum: 0 totalScore: type: 'number' - default: 10 submitted: type: 'boolean' - default: false - index:true submitDate: c.date title: 'Submitted' @@ -150,11 +145,9 @@ _.extend LevelSessionSchema.properties, numberOfWinsAndTies: type: 'number' - default: 0 numberOfLosses: type: 'number' - default: 0 scoreHistory: type: 'array' diff --git a/server/routes/mail.coffee b/server/routes/mail.coffee index 63a47a48a..c9cd8f6f3 100644 --- a/server/routes/mail.coffee +++ b/server/routes/mail.coffee @@ -16,7 +16,7 @@ sendwithus = require '../sendwithus' module.exports.setup = (app) -> app.all config.mail.mailchimpWebhook, handleMailchimpWebHook app.get '/mail/cron/ladder-update', handleLadderUpdate - + getAllLadderScores = (next) -> query = Level.find({type: 'ladder'}) .select('levelID') @@ -28,6 +28,8 @@ getAllLadderScores = (next) -> for level in levels for team in ['humans', 'ogres'] 'I ... am not doing this.' + # Query to get sessions to make histogram + # db.level.sessions.find({"submitted":true,"levelID":"brawlwood",team:"ogres"},{"_id":0,"totalScore":1}) isRequestFromDesignatedCronHandler = (req, res) -> if req.ip isnt config.mail.cronHandlerPublicIP and req.ip isnt config.mail.cronHandlerPrivateIP @@ -37,13 +39,13 @@ isRequestFromDesignatedCronHandler = (req, res) -> res.end() return false return true - - + + handleLadderUpdate = (req, res) -> log.info("Going to see about sending ladder update emails.") requestIsFromDesignatedCronHandler = isRequestFromDesignatedCronHandler req, res #unless requestIsFromDesignatedCronHandler then return - + res.send('Great work, Captain Cron! I can take it from here.') res.end() # TODO: somehow fetch the histograms @@ -98,8 +100,8 @@ sendLadderUpdateEmail = (session, daysAgo) -> context = email_id: sendwithus.templates.ladder_update_email recipient: - address: user.email - #address: 'nick@codecombat.com' # Debugging + #address: user.email + address: 'nick@codecombat.com' # Debugging name: name email_data: name: name @@ -150,15 +152,18 @@ getScoreHistoryGraphURL = (session, daysAgo) -> since = new Date() - 86400 * 1000 * daysAgo scoreHistory = (s for s in session.scoreHistory ? [] when s[0] >= since) return '' unless scoreHistory.length > 1 + scoreHistory = _.last scoreHistory, 100 # Chart URL needs to be under 2048 characters for GET times = (s[0] for s in scoreHistory) times = ((100 * (t - times[0]) / (times[times.length - 1] - times[0])).toFixed(1) for t in times) scores = (s[1] for s in scoreHistory) - lowest = _.min scores - highest = _.max scores + lowest = _.min scores.concat([0]) + highest = _.max scores.concat(50) scores = (Math.round(100 * (s - lowest) / (highest - lowest)) for s in scores) currentScore = Math.round scoreHistory[scoreHistory.length - 1][1] * 100 + minScore = Math.round(100 * lowest) + maxScore = Math.round(100 * highest) chartData = times.join(',') + '|' + scores.join(',') - "https://chart.googleapis.com/chart?chs=600x75&cht=lxy&chtt=Score%3A+#{currentScore}&chts=222222,12,r&chf=a,s,000000FF&chls=2&chd=t:#{chartData}" + "https://chart.googleapis.com/chart?chs=600x75&cht=lxy&chtt=Score%3A+#{currentScore}&chts=222222,12,r&chf=a,s,000000FF&chls=2&chd=t:#{chartData}&chxt=y&chxr=0,#{minScore},#{maxScore}" handleMailchimpWebHook = (req, res) -> post = req.body diff --git a/server/users/user_handler.coffee b/server/users/user_handler.coffee index 87c414a55..125845fe9 100644 --- a/server/users/user_handler.coffee +++ b/server/users/user_handler.coffee @@ -9,7 +9,7 @@ errors = require '../commons/errors' async = require 'async' serverProperties = ['passwordHash', 'emailLower', 'nameLower', 'passwordReset'] -privateProperties = ['permissions', 'email', 'firstName', 'lastName', 'gender', 'facebookID', 'music', 'volume'] +privateProperties = ['permissions', 'email', 'firstName', 'lastName', 'gender', 'facebookID', 'music', 'volume', 'aceConfig'] UserHandler = class UserHandler extends Handler modelClass: User @@ -18,7 +18,7 @@ UserHandler = class UserHandler extends Handler 'name', 'photoURL', 'password', 'anonymous', 'wizardColor1', 'volume', 'firstName', 'lastName', 'gender', 'facebookID', 'emailSubscriptions', 'testGroupNumber', 'music', 'hourOfCode', 'hourOfCodeComplete', 'preferredLanguage', - 'wizard' + 'wizard', 'aceConfig' ] jsonSchema: schema diff --git a/server/users/user_schema.coffee b/server/users/user_schema.coffee index d43a8d6b6..650d680d6 100644 --- a/server/users/user_schema.coffee +++ b/server/users/user_schema.coffee @@ -45,6 +45,12 @@ UserSchema = c.object {}, wizard: c.object {}, colorConfig: c.object {additionalProperties: c.colorConfig()} + aceConfig: c.object {}, + keyBindings: {type: 'string', 'default': 'default', 'enum': ['default', 'vim', 'emacs']} + invisibles: {type: 'boolean', 'default': false} + indentGuides: {type: 'boolean', 'default': false} + behaviors: {type: 'boolean', 'default': false} + c.extendBasicProperties UserSchema, 'user' module.exports = UserSchema diff --git a/test/app/lib/utils.spec.coffee b/test/app/lib/utils.spec.coffee index 7852ddf5e..925bc8e54 100644 --- a/test/app/lib/utils.spec.coffee +++ b/test/app/lib/utils.spec.coffee @@ -40,7 +40,7 @@ describe 'utils library', -> expect(util.i18n(this.fixture1, 'text', 'en')).toEqual(this.fixture1.text) expect(util.i18n(this.fixture1, 'blurb', 'en')).toEqual(this.fixture1.blurb) delete this.fixture1.blurb - expect(util.i18n(this.fixture1, 'blurb', 'en')).toEqual(this.fixture1.text) + expect(util.i18n(this.fixture1, 'blurb', 'en')).toEqual(null) it 'i18n can fall forward if a general language is not found', -> expect(util.i18n(this.fixture1, 'text', 'pt')).toEqual(this.fixture1.i18n['pt-BR'].text)