diff --git a/app/locale/en-GB.coffee b/app/locale/en-GB.coffee index cea2078f9..6399f9413 100644 --- a/app/locale/en-GB.coffee +++ b/app/locale/en-GB.coffee @@ -482,7 +482,7 @@ module.exports = nativeDescription: "English (UK)", englishDescription: "English # twitter: "Twitter" # gplus: "Google+" -# editor: + editor: # main_title: "CodeCombat Editors" # main_description: "Build your own levels, campaigns, units and educational content. We provide all the tools you need!" # article_title: "Article Editor" @@ -501,6 +501,7 @@ module.exports = nativeDescription: "English (UK)", englishDescription: "English # revert_models: "Revert Models" # fork_title: "Fork New Version" # fork_creating: "Creating Fork..." + randomize: "Randomise" # more: "More" # wiki: "Wiki" # live_chat: "Live Chat" diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 69373ccfb..69f5afda6 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -501,6 +501,7 @@ revert_models: "Revert Models" fork_title: "Fork New Version" fork_creating: "Creating Fork..." + randomize: "Randomize" more: "More" wiki: "Wiki" live_chat: "Live Chat" diff --git a/app/models/Level.coffee b/app/models/Level.coffee index 6ae47f25e..f28bb9b00 100644 --- a/app/models/Level.coffee +++ b/app/models/Level.coffee @@ -30,7 +30,7 @@ module.exports = class Level extends CocoModel visit = (system) -> return if system.original of originalsSeen systemModel = _.find systemModels, {original: system.original} - console.error 'Couldn\'t find model for original', system.original, 'from', systemModels unless systemModel + return console.error 'Couldn\'t find model for original', system.original, 'from', systemModels unless systemModel for d in systemModel.dependencies or [] system2 = _.find levelSystems, {original: d.original} visit system2 @@ -61,7 +61,7 @@ module.exports = class Level extends CocoModel for d in lc.dependencies or [] c2 = _.find thang.components, {original: d.original} console.error thang.id, 'couldn\'t find dependent Component', d.original, 'from', lc.name unless c2 - visit c2 + visit c2 if c2 if lc.name is 'Collides' allied = _.find levelComponents, {name: 'Allied'} if allied diff --git a/app/templates/editor/level/edit.jade b/app/templates/editor/level/edit.jade index e446f7613..09776b637 100644 --- a/app/templates/editor/level/edit.jade +++ b/app/templates/editor/level/edit.jade @@ -70,17 +70,17 @@ block header a#level-watch-button span.watch span.glyphicon.glyphicon-eye-open - span.spl Watch + span.spl(data-i18n="common.watch") Watch span.unwatch.secret span.glyphicon.glyphicon-eye-close - span.spl Unwatch + span.spl(data-i18n="common.unwatch") Unwatch li(class=anonymous ? "disabled": "") a(data-i18n="common.fork")#fork-level-start-button Fork li(class=anonymous ? "disabled": "") a(data-toggle="coco-modal", data-target="modal/revert", data-i18n="editor.revert")#revert-button Revert li(class=anonymous ? "disabled": "") - a(data-toggle="coco-modal", data-target="modal/terrain_randomise", data-i18n="editor.randomise")#randomise-button Randomise + a(data-toggle="coco-modal", data-target="modal/terrain_randomise", data-i18n="editor.randomize")#randomise-button Randomise li(class=anonymous ? "disabled": "") a(data-i18n="editor.pop_i18n")#pop-level-i18n-button Populate i18n li.divider