[SSE] Add translation for table styles
This commit is contained in:
parent
dafef113e1
commit
4b70e94c85
|
@ -1633,10 +1633,18 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiInitTableTemplates: function(images) {
|
onApiInitTableTemplates: function(images) {
|
||||||
|
var me = this;
|
||||||
var store = this.getCollection('TableTemplates');
|
var store = this.getCollection('TableTemplates');
|
||||||
if (store) {
|
if (store) {
|
||||||
var templates = [];
|
var templates = [];
|
||||||
_.each(images, function(item) {
|
_.each(images, function(item) {
|
||||||
|
var tip = item.asc_getDisplayName();
|
||||||
|
if (item.asc_getType()==0) {
|
||||||
|
var arr = tip.split(' '),
|
||||||
|
last = arr.pop();
|
||||||
|
arr = 'txtTable_' + arr.join('');
|
||||||
|
tip = me[arr] ? me[arr] + ' ' + last : tip;
|
||||||
|
}
|
||||||
templates.push({
|
templates.push({
|
||||||
name : item.asc_getName(),
|
name : item.asc_getName(),
|
||||||
caption : item.asc_getDisplayName(),
|
caption : item.asc_getDisplayName(),
|
||||||
|
@ -1644,13 +1652,12 @@ define([
|
||||||
imageUrl : item.asc_getImage(),
|
imageUrl : item.asc_getImage(),
|
||||||
allowSelected : true,
|
allowSelected : true,
|
||||||
selected : false,
|
selected : false,
|
||||||
tip : item.asc_getDisplayName()
|
tip : tip
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
store.reset(templates);
|
store.reset(templates);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.fillTableTemplates();
|
this.fillTableTemplates();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -3789,7 +3796,10 @@ define([
|
||||||
txtInvalidRange: 'ERROR! Invalid cells range',
|
txtInvalidRange: 'ERROR! Invalid cells range',
|
||||||
errorMaxRows: 'ERROR! The maximum number of data series per chart is 255.',
|
errorMaxRows: 'ERROR! The maximum number of data series per chart is 255.',
|
||||||
errorStockChart: 'Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.',
|
errorStockChart: 'Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.',
|
||||||
textPivot: 'Pivot Table'
|
textPivot: 'Pivot Table',
|
||||||
|
txtTable_TableStyleMedium: 'Table Style Medium',
|
||||||
|
txtTable_TableStyleDark: 'Table Style Dark',
|
||||||
|
txtTable_TableStyleLight: 'Table Style Light'
|
||||||
|
|
||||||
}, SSE.Controllers.Toolbar || {}));
|
}, SSE.Controllers.Toolbar || {}));
|
||||||
});
|
});
|
|
@ -1088,6 +1088,9 @@
|
||||||
"SSE.Controllers.Toolbar.txtSymbol_zeta": "Zeta",
|
"SSE.Controllers.Toolbar.txtSymbol_zeta": "Zeta",
|
||||||
"SSE.Controllers.Toolbar.warnLongOperation": "The operation you are about to perform might take rather much time to complete.<br>Are you sure you want to continue?",
|
"SSE.Controllers.Toolbar.warnLongOperation": "The operation you are about to perform might take rather much time to complete.<br>Are you sure you want to continue?",
|
||||||
"SSE.Controllers.Toolbar.warnMergeLostData": "Only the data from the upper-left cell will remain in the merged cell. <br>Are you sure you want to continue?",
|
"SSE.Controllers.Toolbar.warnMergeLostData": "Only the data from the upper-left cell will remain in the merged cell. <br>Are you sure you want to continue?",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleMedium": "Table Style Medium",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleDark": "Table Style Dark",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleLight": "Table Style Light",
|
||||||
"SSE.Controllers.Viewport.textFreezePanes": "Freeze Panes",
|
"SSE.Controllers.Viewport.textFreezePanes": "Freeze Panes",
|
||||||
"SSE.Controllers.Viewport.textHideFBar": "Hide Formula Bar",
|
"SSE.Controllers.Viewport.textHideFBar": "Hide Formula Bar",
|
||||||
"SSE.Controllers.Viewport.textHideGridlines": "Hide Gridlines",
|
"SSE.Controllers.Viewport.textHideGridlines": "Hide Gridlines",
|
||||||
|
|
|
@ -1087,6 +1087,9 @@
|
||||||
"SSE.Controllers.Toolbar.txtSymbol_zeta": "Дзета",
|
"SSE.Controllers.Toolbar.txtSymbol_zeta": "Дзета",
|
||||||
"SSE.Controllers.Toolbar.warnLongOperation": "Для завершения операции, которую вы собираетесь выполнить, может потребоваться довольно много времени.<br>Вы действительно хотите продолжить?",
|
"SSE.Controllers.Toolbar.warnLongOperation": "Для завершения операции, которую вы собираетесь выполнить, может потребоваться довольно много времени.<br>Вы действительно хотите продолжить?",
|
||||||
"SSE.Controllers.Toolbar.warnMergeLostData": "В объединенной ячейке останутся только данные из левой верхней ячейки.<br>Вы действительно хотите продолжить?",
|
"SSE.Controllers.Toolbar.warnMergeLostData": "В объединенной ячейке останутся только данные из левой верхней ячейки.<br>Вы действительно хотите продолжить?",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleMedium": "Стиль таблицы: средний",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleDark": "Стиль таблицы: темный",
|
||||||
|
"SSE.Controllers.Toolbar.txtTable_TableStyleLight": "Стиль таблицы: светлый",
|
||||||
"SSE.Controllers.Viewport.textFreezePanes": "Закрепить области",
|
"SSE.Controllers.Viewport.textFreezePanes": "Закрепить области",
|
||||||
"SSE.Controllers.Viewport.textHideFBar": "Скрыть строку формул",
|
"SSE.Controllers.Viewport.textHideFBar": "Скрыть строку формул",
|
||||||
"SSE.Controllers.Viewport.textHideGridlines": "Скрыть линии сетки",
|
"SSE.Controllers.Viewport.textHideGridlines": "Скрыть линии сетки",
|
||||||
|
|
Loading…
Reference in a new issue