From 6e867fb9f02af9e0a7f3d039abf97b070f465b3c Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 20 Apr 2017 13:23:50 +0300 Subject: [PATCH] [DE] updated translations --- .../main/app/controller/Toolbar.js | 2 +- apps/documenteditor/main/app/view/Toolbar.js | 25 +++++++++++-------- apps/documenteditor/main/locale/en.json | 7 +++++- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 13bee3982..049857880 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2740,7 +2740,7 @@ define([ me.toolbar.render(config); if ( config.isEdit ) { - var tab = {action: 'review', caption: 'Review'}; + var tab = {action: 'review', caption: me.toolbar.textTabReview}; var $panel = DE.getController('Common.Controllers.ReviewChanges').createToolbarPanel(); if ( $panel ) { diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 951a386a0..32bf2d9bb 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -67,14 +67,7 @@ define([ var isFolded = false; var optsFold = {timeout: 2000}; - var config = { - tabs: [ - { caption: 'File', action: 'file'}, - { caption: 'Home', action: 'home'}, - { caption: 'Insert', action: 'ins'}, - { caption: 'Page Layout', action: 'layout'} - ] - }; + var config = {}; function hasTabInvisible() { var _left_bound_ = $boxTabs.offset().left, @@ -195,14 +188,19 @@ define([ }, initialize: function () { + var me = this; + + config.tabs = [ + { caption: me.textTabFile, action: 'file'}, + { caption: me.textTabHome, action: 'home', extcls: 'canedit'}, + { caption: me.textTabInsert, action: 'ins', extcls: 'canedit'}, + { caption: me.textTabLayout, action: 'layout', extcls: 'canedit'} ]; config.$dom = $(_.template(template, config)); /** * UI Components */ - var me = this; - this.SchemeNames = [ this.txtScheme1, this.txtScheme2, this.txtScheme3, this.txtScheme4, this.txtScheme5, this.txtScheme6, this.txtScheme7, this.txtScheme8, this.txtScheme9, this.txtScheme10, @@ -2680,7 +2678,12 @@ define([ mniDelFootnote: 'Delete All Footnotes', mniNoteSettings: 'Notes Settings', textGotoFootnote: 'Go to Footnotes', - tipChangeChart: 'Change Chart Type' + tipChangeChart: 'Change Chart Type', + textTabFile: 'File', + textTabHome: 'Home', + textTabInsert: 'Insert', + textTabLayout: 'Page Layout', + textTabReview: 'Review' } })(), DE.Views.Toolbar || {})); }); diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index c424049fc..4a0a3fc4f 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -1630,5 +1630,10 @@ "DE.Views.Toolbar.txtScheme6": "Concourse", "DE.Views.Toolbar.txtScheme7": "Equity", "DE.Views.Toolbar.txtScheme8": "Flow", - "DE.Views.Toolbar.txtScheme9": "Foundry" + "DE.Views.Toolbar.txtScheme9": "Foundry", + "DE.Views.Toolbar.textTabFile": "File", + "DE.Views.Toolbar.textTabHome": "Home", + "DE.Views.Toolbar.textTabInsert": "Insert", + "DE.Views.Toolbar.textTabLayout": "Page Layout", + "DE.Views.Toolbar.textTabReview": "Review" } \ No newline at end of file