From 8acf35b290d29b1878b2edf5b3d27ab572192f71 Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Wed, 12 Mar 2014 15:42:57 +0100 Subject: [PATCH] Added i18n for components --- app/locale/en.coffee | 3 +++ app/locale/nl.coffee | 3 +++ app/templates/editor/level/component/edit.jade | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 3411adbe0..da045feb7 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -243,6 +243,8 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr level_components_title: "Back to All Thangs" level_components_type: "Type" level_component_edit_title: "Edit Component" + level_component_config_schema: "Config Schema" + level_component_settings: "Settings" level_system_edit_title: "Edit System" create_system_title: "Create New System" new_component_title: "Create New Component" @@ -271,6 +273,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr or: "or" email: "Email" message: "Message" + code: "Code" about: who_is_codecombat: "Who is CodeCombat?" diff --git a/app/locale/nl.coffee b/app/locale/nl.coffee index 420be4b34..1f4f9426f 100644 --- a/app/locale/nl.coffee +++ b/app/locale/nl.coffee @@ -243,6 +243,8 @@ module.exports = nativeDescription: "Nederlands", englishDescription: "Dutch", t level_components_title: "Terug naar Alle Elementen" level_components_type: "Type" level_component_edit_title: "Wijzig Component" + level_component_config_schema: "Schema" + level_component_settings: "Instellingen" level_system_edit_title: "Wijzig Systeem" create_system_title: "Maak een nieuw Systeem aan" new_component_title: "Maak een nieuw Component aan" @@ -271,6 +273,7 @@ module.exports = nativeDescription: "Nederlands", englishDescription: "Dutch", t or: "of" email: "Email" message: "Bericht" + code: "Code" about: who_is_codecombat: "Wie is CodeCombat?" diff --git a/app/templates/editor/level/component/edit.jade b/app/templates/editor/level/component/edit.jade index 6a0a00218..44d368080 100644 --- a/app/templates/editor/level/component/edit.jade +++ b/app/templates/editor/level/component/edit.jade @@ -9,11 +9,11 @@ nav.navbar.navbar-default(role='navigation') .collapse.navbar-collapse ul.nav.navbar-nav.nav-tabs li.active - a(href="#component-code" data-toggle="tab") Code + a(href="#component-code" data-toggle="tab" data-i18n="general.code") Code li - a(href="#component-config-schema" data-toggle="tab") Config Schema + a(href="#component-config-schema" data-toggle="tab" data-i18n="editor.level_component_config_schema") Config Schema li - a(href="#component-settings" data-toggle="tab") Settings + a(href="#component-settings" data-toggle="tab" data-i18n="editor.level_component_settings") Settings ul.nav.navbar-nav.navbar-left li(data-i18n="general.history").btn.btn-primary.navbar-btn#history-button History ul.nav.navbar-nav.navbar-right