From 7473e641d6c56663b5ef3a3b7e6bf4e0e19464b8 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 21 Jul 2017 13:44:07 +0300 Subject: [PATCH] updated translations --- apps/common/main/lib/view/Header.js | 10 +++++++--- apps/documenteditor/main/locale/en.json | 3 +++ apps/presentationeditor/main/app/view/Toolbar.js | 9 ++++++--- apps/presentationeditor/main/locale/en.json | 7 +++++++ apps/spreadsheeteditor/main/app/view/Toolbar.js | 9 ++++++--- apps/spreadsheeteditor/main/locale/en.json | 7 +++++++ 6 files changed, 36 insertions(+), 9 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index c04e84b2c..fb62ef3b6 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -256,20 +256,21 @@ define([ if ( !mode.isEdit ) { if ( me.btnDownload ) { - me.btnDownload.updateHint('Download document'); + me.btnDownload.updateHint(me.tipDowload); me.btnDownload.on('click', function (e) { me.fireEvent('downloadas', ['original']); }); } if ( me.btnPrint ) { - me.btnDownload.updateHint('Print'); + me.btnPrint.updateHint(me.tipPrint); me.btnPrint.on('click', function (e) { me.fireEvent('print', me); }); } if ( me.btnEdit ) { + me.btnEdit.updateHint(me.tipGoEdit); me.btnEdit.on('click', function (e) { me.fireEvent('go:editor', me); }); @@ -522,7 +523,10 @@ define([ txtAccessRights: 'Change access rights', tipAccessRights: 'Manage document access rights', labelCoUsersDescr: 'Document is currently being edited by several users.', - tipViewUsers: 'View users and manage document access rights' + tipViewUsers: 'View users and manage document access rights', + tipDownload: 'Download file', + tipPrint: 'Print file', + tipGoEdit: 'Edit current file' } }(), Common.Views.Header || {})) }); diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index c7e0e00c2..1e6773723 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -151,6 +151,9 @@ "Common.Views.Header.tipAccessRights": "Manage document access rights", "Common.Views.Header.labelCoUsersDescr": "Document is currently being edited by several users.", "Common.Views.Header.tipViewUsers": "View users and manage document access rights", + "Common.Views.Header.tipDownload": "Download file", + "Common.Views.Header.tipPrint": "Print file", + "Common.Views.Header.tipGoEdit": "Edit current file", "Common.Views.History.textCloseHistory": "Close History", "Common.Views.History.textHide": "Collapse", "Common.Views.History.textHideAll": "Hide detailed changes", diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index a73186995..5293c42c7 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -138,9 +138,9 @@ define([ Common.UI.Mixtbar.prototype.initialize.call(this, { template: _.template(template), tabs: [ - { caption: 'File', action: 'file', extcls: 'canedit'}, - { caption: 'Home', action: 'home', extcls: 'canedit'}, - { caption: 'Insert', action: 'ins', extcls: 'canedit'} + { caption: me.textTabFile, action: 'file', extcls: 'canedit'}, + { caption: me.textTabHome, action: 'home', extcls: 'canedit'}, + { caption: me.textTabInsert, action: 'ins', extcls: 'canedit'} ]} ); @@ -1829,6 +1829,9 @@ define([ capTabHome: 'Home', capTabInsert: 'Insert', capBtnComment: 'Comment', + textTabFile: 'File', + textTabHome: 'Home', + textTabInsert: 'Insert', textSurface: 'Surface' } }()), PE.Views.Toolbar || {})); diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 97f238eda..de56fd72f 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -92,6 +92,10 @@ "Common.Views.Header.txtAccessRights": "Change access rights", "Common.Views.Header.tipAccessRights": "Manage document access rights", "Common.Views.Header.labelCoUsersDescr": "Document is currently being edited by several users.", + "Common.Views.Header.tipViewUsers": "View users and manage document access rights", + "Common.Views.Header.tipDownload": "Download file", + "Common.Views.Header.tipPrint": "Print file", + "Common.Views.Header.tipGoEdit": "Edit current file", "Common.Views.ImageFromUrlDialog.cancelButtonText": "Cancel", "Common.Views.ImageFromUrlDialog.okButtonText": "OK", "Common.Views.ImageFromUrlDialog.textUrl": "Paste an image URL:", @@ -1295,6 +1299,9 @@ "PE.Views.Toolbar.textStrikeout": "Strikeout", "PE.Views.Toolbar.textSubscript": "Subscript", "PE.Views.Toolbar.textSuperscript": "Superscript", + "PE.Views.Toolbar.textTabFile": "File", + "PE.Views.Toolbar.textTabHome": "Home", + "PE.Views.Toolbar.textTabInsert": "Insert", "PE.Views.Toolbar.textSurface": "Surface", "PE.Views.Toolbar.textTitleError": "Error", "PE.Views.Toolbar.textUnderline": "Underline", diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 7af4a3b93..b6a70c293 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -318,9 +318,9 @@ define([ Common.UI.Mixtbar.prototype.initialize.call(this, { template: _.template(template), tabs: [ - { caption: 'File'/*me.textTabFile*/, action: 'file', extcls: 'canedit'}, - { caption: 'Home'/*me.textTabHome*/, action: 'home', extcls: 'canedit'}, - { caption: 'Insert'/*me.textTabInsert*/, action: 'ins', extcls: 'canedit'} + { caption: me.textTabFile, action: 'file', extcls: 'canedit'}, + { caption: me.textTabHome, action: 'home', extcls: 'canedit'}, + { caption: me.textTabInsert, action: 'ins', extcls: 'canedit'} ]} ); @@ -2056,6 +2056,9 @@ define([ capInsertHyperlink: 'Hyperlink', capInsertEquation: 'Equation', capBtnComment: 'Comment', + textTabFile: 'File', + textTabHome: 'Home', + textTabInsert: 'Insert', textSurface: 'Surface' }, SSE.Views.Toolbar || {})); }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index d4bb603fa..26abc0b90 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -82,6 +82,10 @@ "Common.Views.Header.txtAccessRights": "Change access rights", "Common.Views.Header.tipAccessRights": "Manage document access rights", "Common.Views.Header.labelCoUsersDescr": "Document is currently being edited by several users.", + "Common.Views.Header.tipViewUsers": "View users and manage document access rights", + "Common.Views.Header.tipDownload": "Download file", + "Common.Views.Header.tipPrint": "Print file", + "Common.Views.Header.tipGoEdit": "Edit current file", "Common.Views.ImageFromUrlDialog.cancelButtonText": "Cancel", "Common.Views.ImageFromUrlDialog.okButtonText": "OK", "Common.Views.ImageFromUrlDialog.textUrl": "Paste an image URL:", @@ -1635,6 +1639,9 @@ "SSE.Views.Toolbar.textRotateUp": "Rotate Text Up", "SSE.Views.Toolbar.textSparks": "Sparklines", "SSE.Views.Toolbar.textStock": "Stock", + "SSE.Views.Toolbar.textTabFile": "File", + "SSE.Views.Toolbar.textTabHome": "Home", + "SSE.Views.Toolbar.textTabInsert": "Insert", "SSE.Views.Toolbar.textSurface": "Surface", "SSE.Views.Toolbar.textTopBorders": "Top Borders", "SSE.Views.Toolbar.textUnderline": "Underline",