[SSE] For bug 50888: refactoring, add translation
This commit is contained in:
parent
10c3f591e4
commit
f40e692155
|
@ -155,8 +155,9 @@ define([
|
|||
editable: false,
|
||||
data: [
|
||||
{ value: Asc.c_oAscShowDataAs.Normal, displayValue: this.txtNormal },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfTotal, displayValue: this.txtPercentOfGrand },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfCol, displayValue: this.txtPercentOfCol },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfRow, displayValue: this.txtPercentOfRow },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfRow, displayValue: this.txtPercentOfTotal },
|
||||
{ value: Asc.c_oAscShowDataAs.Percent, displayValue: this.txtPercent },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfParentRow, displayValue: this.txtPercentOfParentRow },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfParentCol, displayValue: this.txtPercentOfParentCol },
|
||||
|
@ -164,7 +165,7 @@ define([
|
|||
{ value: Asc.c_oAscShowDataAs.Difference, displayValue: this.txtDifference },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentDiff, displayValue: this.txtPercentDiff },
|
||||
{ value: Asc.c_oAscShowDataAs.RunTotal, displayValue: this.txtRunTotal },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfTotal, displayValue: this.txtPercentOfTotal },
|
||||
{ value: Asc.c_oAscShowDataAs.PercentOfRunningTotal, displayValue: this.txtPercentOfRunTotal },
|
||||
{ value: Asc.c_oAscShowDataAs.RankAscending, displayValue: this.txtRankAscending },
|
||||
{ value: Asc.c_oAscShowDataAs.RankDescending, displayValue: this.txtRankDescending },
|
||||
{ value: Asc.c_oAscShowDataAs.Index, displayValue: this.txtIndex }
|
||||
|
@ -232,7 +233,7 @@ define([
|
|||
this.cmbBaseField.setData(data);
|
||||
this.cmbBaseField.setValue(field.asc_getBaseField(), '');
|
||||
this.cmbBaseField.setDisabled(show_as === c_oAscShowDataAs.Normal || show_as === c_oAscShowDataAs.PercentOfTotal || show_as === c_oAscShowDataAs.PercentOfRow ||
|
||||
show_as === c_oAscShowDataAs.PercentOfCol || show_as === c_oAscShowDataAs.PercentOfParentRow || show_as === c_oAscShowDataAs.Index);
|
||||
show_as === c_oAscShowDataAs.PercentOfCol || show_as === c_oAscShowDataAs.PercentOfParentRow || show_as === c_oAscShowDataAs.PercentOfParentCol || show_as === c_oAscShowDataAs.Index);
|
||||
|
||||
data = [];
|
||||
var baseitems = this.pivot_names[field.asc_getBaseField()].asc_getBaseItemObject(this.cache_names[field.asc_getBaseField()]);
|
||||
|
@ -240,8 +241,8 @@ define([
|
|||
data.push({value: item["baseItem"], displayValue: index===0 ? me.textPrev : (index===1 ? me.textNext : item["name"])});
|
||||
});
|
||||
this.cmbBaseItem.setData(data);
|
||||
this.cmbBaseItem.setDisabled(show_as !== c_oAscShowDataAs.Difference && show_as !== c_oAscShowDataAs.Percent && show_as !== c_oAscShowDataAs.PercentDiff);
|
||||
this.cmbBaseItem.setValue((show_as === c_oAscShowDataAs.Difference || show_as === c_oAscShowDataAs.Percent || show_as === c_oAscShowDataAs.PercentDiff) ? field.asc_getBaseItem() : '', '');
|
||||
this.cmbBaseItem.setDisabled(data.length<1 || show_as !== c_oAscShowDataAs.Difference && show_as !== c_oAscShowDataAs.Percent && show_as !== c_oAscShowDataAs.PercentDiff);
|
||||
this.cmbBaseItem.setValue((data.length>0) && (show_as === c_oAscShowDataAs.Difference || show_as === c_oAscShowDataAs.Percent || show_as === c_oAscShowDataAs.PercentDiff) ? field.asc_getBaseItem() : '', '');
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -281,9 +282,9 @@ define([
|
|||
onShowAsSelect: function(combo, record) {
|
||||
var show_as = record.value;
|
||||
this.cmbBaseField.setDisabled(show_as === c_oAscShowDataAs.Normal || show_as === c_oAscShowDataAs.PercentOfTotal || show_as === c_oAscShowDataAs.PercentOfRow ||
|
||||
show_as === c_oAscShowDataAs.PercentOfCol || show_as === c_oAscShowDataAs.PercentOfParentRow || show_as === c_oAscShowDataAs.Index);
|
||||
show_as === c_oAscShowDataAs.PercentOfCol || show_as === c_oAscShowDataAs.PercentOfParentRow || show_as === c_oAscShowDataAs.PercentOfParentCol || show_as === c_oAscShowDataAs.Index);
|
||||
|
||||
this.cmbBaseItem.setDisabled(show_as !== c_oAscShowDataAs.Difference && show_as !== c_oAscShowDataAs.Percent && show_as !== c_oAscShowDataAs.PercentDiff);
|
||||
this.cmbBaseItem.setDisabled(this.cmbBaseItem.store.length<1 || show_as !== c_oAscShowDataAs.Difference && show_as !== c_oAscShowDataAs.Percent && show_as !== c_oAscShowDataAs.PercentDiff);
|
||||
this.cmbBaseItem.setValue((show_as === c_oAscShowDataAs.Difference || show_as === c_oAscShowDataAs.Percent || show_as === c_oAscShowDataAs.PercentDiff) && this.cmbBaseItem.store.length>0 ?
|
||||
this.cmbBaseItem.store.at(0).get('value') : '', '');
|
||||
},
|
||||
|
@ -298,7 +299,8 @@ define([
|
|||
});
|
||||
this.cmbBaseItem.setData(data);
|
||||
var show_as = this.cmbShowAs.getValue();
|
||||
this.cmbBaseItem.setValue((show_as === c_oAscShowDataAs.Difference || show_as === c_oAscShowDataAs.Percent || show_as === c_oAscShowDataAs.PercentDiff) && this.cmbBaseItem.store.length>0 ?
|
||||
this.cmbBaseItem.setDisabled(data.length<1 || show_as !== c_oAscShowDataAs.Difference && show_as !== c_oAscShowDataAs.Percent && show_as !== c_oAscShowDataAs.PercentDiff);
|
||||
this.cmbBaseItem.setValue((show_as === c_oAscShowDataAs.Difference || show_as === c_oAscShowDataAs.Percent || show_as === c_oAscShowDataAs.PercentDiff) && data.length>0 ?
|
||||
this.cmbBaseItem.store.at(0).get('value') : '', '');
|
||||
},
|
||||
|
||||
|
@ -324,13 +326,14 @@ define([
|
|||
txtVar: 'Var',
|
||||
txtVarp: 'Varp',
|
||||
txtNormal: 'No calculation',
|
||||
txtDifference: 'The difference from',
|
||||
txtDifference: 'Difference from',
|
||||
txtPercent: '% of',
|
||||
txtPercentDiff: '% difference from',
|
||||
txtRunTotal: 'Running total in',
|
||||
txtPercentOfRow: '% of total',
|
||||
txtPercentOfRunTotal: '% running total in',
|
||||
txtPercentOfCol: '% of column total',
|
||||
txtPercentOfTotal: '% of row total',
|
||||
txtPercentOfGrand: '% of grand total',
|
||||
txtIndex: 'Index',
|
||||
txtByField: '%1 of %2',
|
||||
txtPercentOfParentRow: '% of parent row total',
|
||||
|
|
|
@ -3900,16 +3900,16 @@
|
|||
"SSE.Views.ValueFieldSettingsDialog.txtCount": "Count",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtCountNums": "Count numbers",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtCustomName": "Custom name",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtDifference": "The difference from",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtDifference": "Difference from",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtIndex": "Index",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtMax": "Max",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtMin": "Min",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtNormal": "No calculation",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercent": "Percent of",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentDiff": "Percent difference from",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfCol": "Percent of column",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfRow": "Percent of total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfTotal": "Percent of row",
|
||||
"del_SSE.Views.ValueFieldSettingsDialog.txtPercentOfRow": "Percent of total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfTotal": "% of row total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercent": "% of",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentDiff": "% difference from",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfCol": "% of column total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtProduct": "Product",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtRunTotal": "Running total in",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtShowAs": "Show values as",
|
||||
|
@ -3920,6 +3920,15 @@
|
|||
"SSE.Views.ValueFieldSettingsDialog.txtSummarize": "Summarize value field by",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtVar": "Var",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtVarp": "Varp",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfParentRow": "% of parent row total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfParentCol": "% of parent column total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfParent": "% of parent total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtRankAscending": "Rank smallest to largest",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtRankDescending": "Rank largest to smallest",
|
||||
"SSE.Views.ValueFieldSettingsDialog.textPrev": "(previous)",
|
||||
"SSE.Views.ValueFieldSettingsDialog.textNext": "(next)",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfGrand": "% of grand total",
|
||||
"SSE.Views.ValueFieldSettingsDialog.txtPercentOfRunTotal": "% running total in",
|
||||
"SSE.Views.ViewManagerDlg.closeButtonText": "Close",
|
||||
"SSE.Views.ViewManagerDlg.guestText": "Guest",
|
||||
"SSE.Views.ViewManagerDlg.lockText": "Locked",
|
||||
|
|
Loading…
Reference in a new issue