[DE] Refactoring control settings, add translation
This commit is contained in:
parent
68433e3cca
commit
db8a18486d
|
@ -51,7 +51,7 @@ define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
|
||||||
DE.Views.ControlSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
DE.Views.ControlSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
||||||
options: {
|
options: {
|
||||||
contentWidth: 310,
|
contentWidth: 310,
|
||||||
height: 412,
|
height: 392,
|
||||||
toggleGroup: 'control-adv-settings-group',
|
toggleGroup: 'control-adv-settings-group',
|
||||||
storageName: 'de-control-settings-adv-category'
|
storageName: 'de-control-settings-adv-category'
|
||||||
},
|
},
|
||||||
|
@ -344,6 +344,7 @@ define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
|
||||||
//for list controls
|
//for list controls
|
||||||
this.btnsCategory[2].setVisible(type == Asc.c_oAscContentControlSpecificType.ComboBox || type == Asc.c_oAscContentControlSpecificType.DropDownList);
|
this.btnsCategory[2].setVisible(type == Asc.c_oAscContentControlSpecificType.ComboBox || type == Asc.c_oAscContentControlSpecificType.DropDownList);
|
||||||
if (type == Asc.c_oAscContentControlSpecificType.ComboBox || type == Asc.c_oAscContentControlSpecificType.DropDownList) {
|
if (type == Asc.c_oAscContentControlSpecificType.ComboBox || type == Asc.c_oAscContentControlSpecificType.DropDownList) {
|
||||||
|
this.btnsCategory[2].setCaption(type == Asc.c_oAscContentControlSpecificType.ComboBox ? this.textCombobox : this.textDropDown);
|
||||||
var specProps = (type == Asc.c_oAscContentControlSpecificType.ComboBox) ? props.get_ComboBoxPr() : props.get_DropDownListPr();
|
var specProps = (type == Asc.c_oAscContentControlSpecificType.ComboBox) ? props.get_ComboBoxPr() : props.get_DropDownListPr();
|
||||||
if (specProps) {
|
if (specProps) {
|
||||||
var count = specProps.get_ItemsCount();
|
var count = specProps.get_ItemsCount();
|
||||||
|
@ -648,9 +649,10 @@ define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
|
||||||
textUp: 'Up',
|
textUp: 'Up',
|
||||||
textDown: 'Down',
|
textDown: 'Down',
|
||||||
textCombobox: 'Combo box',
|
textCombobox: 'Combo box',
|
||||||
|
textDropDown: 'Drop-down list',
|
||||||
textDisplayName: 'Display name',
|
textDisplayName: 'Display name',
|
||||||
textValue: 'Value',
|
textValue: 'Value',
|
||||||
textDate: 'Date Format',
|
textDate: 'Date format',
|
||||||
textLang: 'Language',
|
textLang: 'Language',
|
||||||
textFormat: 'Display the date like this',
|
textFormat: 'Display the date like this',
|
||||||
textCheckbox: 'Check box',
|
textCheckbox: 'Check box',
|
||||||
|
|
|
@ -638,43 +638,43 @@ define([
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
caption: this.textPlainControl,
|
caption: this.textPlainControl,
|
||||||
iconCls: 'mnu-control-plain',
|
// iconCls: 'mnu-control-plain',
|
||||||
value: 'plain'
|
value: 'plain'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textRichControl,
|
caption: this.textRichControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'rich'
|
value: 'rich'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textPictureControl,
|
caption: this.textPictureControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'picture'
|
value: 'picture'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textComboboxControl,
|
caption: this.textComboboxControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'combobox'
|
value: 'combobox'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textDropdownControl,
|
caption: this.textDropdownControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'dropdown'
|
value: 'dropdown'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textDateControl,
|
caption: this.textDateControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'date'
|
value: 'date'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
caption: this.textCheckboxControl,
|
caption: this.textCheckboxControl,
|
||||||
iconCls: 'mnu-control-rich',
|
// iconCls: 'mnu-control-rich',
|
||||||
value: 'checkbox'
|
value: 'checkbox'
|
||||||
},
|
},
|
||||||
{caption: '--'},
|
{caption: '--'},
|
||||||
{
|
{
|
||||||
caption: this.textRemoveControl,
|
caption: this.textRemoveControl,
|
||||||
iconCls: 'mnu-control-remove',
|
// iconCls: 'mnu-control-remove',
|
||||||
value: 'remove'
|
value: 'remove'
|
||||||
},
|
},
|
||||||
{caption: '--'},
|
{caption: '--'},
|
||||||
|
|
|
@ -1088,6 +1088,22 @@
|
||||||
"DE.Views.ControlSettingsDialog.textTitle": "Content Control Settings",
|
"DE.Views.ControlSettingsDialog.textTitle": "Content Control Settings",
|
||||||
"DE.Views.ControlSettingsDialog.txtLockDelete": "Content control cannot be deleted",
|
"DE.Views.ControlSettingsDialog.txtLockDelete": "Content control cannot be deleted",
|
||||||
"DE.Views.ControlSettingsDialog.txtLockEdit": "Contents cannot be edited",
|
"DE.Views.ControlSettingsDialog.txtLockEdit": "Contents cannot be edited",
|
||||||
|
"DE.Views.ControlSettingsDialog.strGeneral": "General",
|
||||||
|
"DE.Views.ControlSettingsDialog.textAdd": "Add",
|
||||||
|
"DE.Views.ControlSettingsDialog.textChange": "Edit",
|
||||||
|
"DE.Views.ControlSettingsDialog.textDelete": "Delete",
|
||||||
|
"DE.Views.ControlSettingsDialog.textUp": "Up",
|
||||||
|
"DE.Views.ControlSettingsDialog.textDown": "Down",
|
||||||
|
"DE.Views.ControlSettingsDialog.textCombobox": "Combo box",
|
||||||
|
"DE.Views.ControlSettingsDialog.textDropDown": "Drop-down list",
|
||||||
|
"DE.Views.ControlSettingsDialog.textDisplayName": "Display name",
|
||||||
|
"DE.Views.ControlSettingsDialog.textValue": "Value",
|
||||||
|
"DE.Views.ControlSettingsDialog.textDate": "Date format",
|
||||||
|
"DE.Views.ControlSettingsDialog.textLang": "Language",
|
||||||
|
"DE.Views.ControlSettingsDialog.textFormat": "Display the date like this",
|
||||||
|
"DE.Views.ControlSettingsDialog.textCheckbox": "Check box",
|
||||||
|
"DE.Views.ControlSettingsDialog.textChecked": "Checked symbol",
|
||||||
|
"DE.Views.ControlSettingsDialog.textUnchecked": "Unchecked symbol",
|
||||||
"DE.Views.CustomColumnsDialog.textColumns": "Number of columns",
|
"DE.Views.CustomColumnsDialog.textColumns": "Number of columns",
|
||||||
"DE.Views.CustomColumnsDialog.textSeparator": "Column divider",
|
"DE.Views.CustomColumnsDialog.textSeparator": "Column divider",
|
||||||
"DE.Views.CustomColumnsDialog.textSpacing": "Spacing between columns",
|
"DE.Views.CustomColumnsDialog.textSpacing": "Spacing between columns",
|
||||||
|
@ -2247,6 +2263,11 @@
|
||||||
"DE.Views.Toolbar.txtScheme9": "Foundry",
|
"DE.Views.Toolbar.txtScheme9": "Foundry",
|
||||||
"DE.Views.Toolbar.capBtnInsSymbol": "Symbol",
|
"DE.Views.Toolbar.capBtnInsSymbol": "Symbol",
|
||||||
"DE.Views.Toolbar.tipInsertSymbol": "Insert symbol",
|
"DE.Views.Toolbar.tipInsertSymbol": "Insert symbol",
|
||||||
|
"DE.Views.Toolbar.textPictureControl": "Picture",
|
||||||
|
"DE.Views.Toolbar.textComboboxControl": "Combo box",
|
||||||
|
"DE.Views.Toolbar.textCheckboxControl": "Check box",
|
||||||
|
"DE.Views.Toolbar.textDropdownControl": "Drop-down list",
|
||||||
|
"DE.Views.Toolbar.textDateControl": "Date",
|
||||||
"DE.Views.WatermarkSettingsDialog.textAuto": "Auto",
|
"DE.Views.WatermarkSettingsDialog.textAuto": "Auto",
|
||||||
"DE.Views.WatermarkSettingsDialog.textBold": "Bold",
|
"DE.Views.WatermarkSettingsDialog.textBold": "Bold",
|
||||||
"DE.Views.WatermarkSettingsDialog.textColor": "Text color",
|
"DE.Views.WatermarkSettingsDialog.textColor": "Text color",
|
||||||
|
|
Loading…
Reference in a new issue