From 92b750d6ea01778728b800ba9d4e75514c67174b Mon Sep 17 00:00:00 2001 From: Alexey Koshelev Date: Wed, 18 Dec 2024 16:24:49 +0300 Subject: [PATCH] [SSE] Add locale for pivot calculated items --- .../main/app/view/PivotTable.js | 8 ++++---- apps/spreadsheeteditor/main/locale/en.json | 19 ++++++++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/PivotTable.js b/apps/spreadsheeteditor/main/app/view/PivotTable.js index 4523c1a2e0..cca49707a8 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotTable.js +++ b/apps/spreadsheeteditor/main/app/view/PivotTable.js @@ -308,7 +308,7 @@ define([ this.btnCalculatedItems = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', iconCls: 'toolbar__icon btn-calculated', - caption: this.txtCalculated, + caption: this.txtCalculatedItems, lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit, _set.pivotLock, _set.pivotCalcItemsLock, _set['FormatCells'], _set['PivotTables']], dataHint: '1', dataHintDirection: 'bottom', @@ -403,7 +403,7 @@ define([ btn.updateHint(me.tipCreatePivot); }); me.btnSelectPivot.updateHint(me.tipSelect); - me.btnCalculatedItems.updateHint(me.tipCalculated); + me.btnCalculatedItems.updateHint(me.tipCalculatedItems); me.btnPivotLayout.updateHint(me.capLayout); me.btnPivotLayout.setMenu(new Common.UI.Menu({ items: [ @@ -529,8 +529,8 @@ define([ tipGrandTotals: 'Show or hide grand totals', tipSubtotals: 'Show or hide subtotals', txtSelect: 'Select', - txtCalculated: 'Calculated Items', - tipCalculated: 'Calculated Items', + txtCalculatedItems: 'Calculated Items', + tipCalculatedItems: 'Calculated items', txtExpandEntire: 'Expand Entire Field', txtCollapseEntire: 'Collapse Entire Field', tipSelect: 'Select entire pivot table', diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index f5331c83cd..27e8a30e18 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -3412,6 +3412,8 @@ "SSE.Views.PivotTable.tipRefresh": "Update the information from data source", "SSE.Views.PivotTable.tipRefreshCurrent": "Update the information from data source for the current table", "SSE.Views.PivotTable.tipSelect": "Select entire pivot table", + "SSE.Views.PivotTable.txtCalculatedItems": "Calculated Items", + "SSE.Views.PivotTable.tipCalculatedItems": "Calculated items", "SSE.Views.PivotTable.tipSubtotals": "Show or hide subtotals", "SSE.Views.PivotTable.txtCollapseEntire": "Collapse Entire Field", "SSE.Views.PivotTable.txtCreate": "Insert Table", @@ -4507,5 +4509,20 @@ "SSE.Views.WBProtection.txtSheetUnlockDescription": "Enter a password to unprotect sheet", "SSE.Views.WBProtection.txtSheetUnlockTitle": "Unprotect sheet", "SSE.Views.WBProtection.txtWBUnlockDescription": "Enter a password to unprotect workbook", - "SSE.Views.WBProtection.txtWBUnlockTitle": "Unprotect workbook" + "SSE.Views.PivotCalculatedItemsDialog.txtTitle": "Calculated Items in", + "SSE.Views.PivotCalculatedItemsDialog.txtNew": "New", + "SSE.Views.PivotCalculatedItemsDialog.txtDuplicate": "Duplicate", + "SSE.Views.PivotCalculatedItemsDialog.txtEdit": "Edit", + "SSE.Views.PivotCalculatedItemsDialog.txtDelete": "Delete", + "SSE.Views.PivotCalculatedItemsDialog.txtItemsName": "Items Name", + "SSE.Views.PivotCalculatedItemsDialog.txtFormula": "Formula", + "SSE.Views.PivotInsertCalculatedItemDialog.txtTitle": "Insert Calculated Item in", + "SSE.Views.PivotInsertCalculatedItemDialog.txtItemName": "Item name", + "SSE.Views.PivotInsertCalculatedItemDialog.txtItem": "Item", + "SSE.Views.PivotInsertCalculatedItemDialog.txtFormula": "Formula", + "SSE.Views.PivotInsertCalculatedItemDialog.txtItems": "Items", + "SSE.Views.PivotInsertCalculatedItemDialog.txtDescription": "You can use Calculated Items for basic calculations between different items within a single field", + "SSE.Views.PivotInsertCalculatedItemDialog.txtReadMore": "Read more", + "SSE.Views.PivotInsertCalculatedItemDialog.txtInsertIntoFormula": "Insert into formula" + } \ No newline at end of file