Rename "Parameters" to "Arguments" and "Variables" to "Parameters" for consistency with the PG docs.

Per Susan Douglas.
This commit is contained in:
Dave Page 2016-04-14 20:11:55 +01:00
parent dc06f92bb3
commit e09aa90614
5 changed files with 11 additions and 11 deletions

View File

@ -308,16 +308,16 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
group: '{{ _('Security') }}', cell:'boolean', type: 'text', cell: 'string', group: '{{ _('Security') }}', cell:'boolean', type: 'text', cell: 'string',
mode: ['properties'] mode: ['properties']
},{ },{
id: 'arguments', label: '{{ _('Parameters') }}', cell: 'string', id: 'arguments', label: '{{ _('Arguments') }}', cell: 'string',
group: '{{ _('Parameters') }}', type: 'collection', canAdd: function(m){ group: '{{ _('Arguments') }}', type: 'collection', canAdd: function(m){
return m.isNew(); return m.isNew();
}, },
canDelete: true, model: ArgumentModel, mode: ['create', 'edit'], canDelete: true, model: ArgumentModel, mode: ['create', 'edit'],
columns: ['argtype', 'argmode', 'argname', 'argdefval'], columns: ['argtype', 'argmode', 'argname', 'argdefval'],
disabled: 'isDisabled' disabled: 'isDisabled'
},{ },{
id: 'variables', label: '{{ _('Variables') }}', type: 'collection', id: 'variables', label: '{{ _('Parameters') }}', type: 'collection',
group: '{{ _('Variables') }}', control: 'variable-collection', group: '{{ _('Parameters') }}', control: 'variable-collection',
model: pgAdmin.Browser.Node.VariableModel, model: pgAdmin.Browser.Node.VariableModel,
mode: ['edit', 'create'], canAdd: 'canVarAdd', canEdit: false, mode: ['edit', 'create'], canAdd: 'canVarAdd', canEdit: false,
canDelete: true, disabled: 'isDisabled' canDelete: true, disabled: 'isDisabled'

View File

@ -294,9 +294,9 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
editable: false, type: 'collection', group: '{{ _('Security') }}', mode: ['edit', 'create'], editable: false, type: 'collection', group: '{{ _('Security') }}', mode: ['edit', 'create'],
canAdd: true, canDelete: true, control: 'unique-col-collection', canAdd: true, canDelete: true, control: 'unique-col-collection',
},{ },{
id: 'variables', label: '{{ _('Variables') }}', type: 'collection', id: 'variables', label: '{{ _('Parameters') }}', type: 'collection',
model: pgAdmin.Browser.Node.VariableModel, editable: false, model: pgAdmin.Browser.Node.VariableModel, editable: false,
group: '{{ _('Variables') }}', mode: ['edit', 'create'], group: '{{ _('Parameters') }}', mode: ['edit', 'create'],
canAdd: true, canEdit: false, canDelete: true, hasRole: true, canAdd: true, canEdit: false, canDelete: true, hasRole: true,
control: Backform.VariableCollectionControl, node: 'role' control: Backform.VariableCollectionControl, node: 'role'
},{ },{

View File

@ -455,8 +455,8 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backform) {
return this.model.isNew() || (this.model.get('rolname') != d.label); return this.model.isNew() || (this.model.get('rolname') != d.label);
} }
},{ },{
id: 'variables', label: '{{ _('Variables') }}', type: 'collection', id: 'variables', label: '{{ _('Parameters') }}', type: 'collection',
group: '{{ _('Variables') }}', hasDatabase: true, url: 'variables', group: '{{ _('Parameters') }}', hasDatabase: true, url: 'variables',
model: pgBrowser.Node.VariableModel, control: 'variable-collection', model: pgBrowser.Node.VariableModel, control: 'variable-collection',
mode: [ 'edit', 'create'], canAdd: true, canDelete: true, mode: [ 'edit', 'create'], canAdd: true, canDelete: true,
url: "variables", disabled: 'readonly' url: "variables", disabled: 'readonly'

View File

@ -363,7 +363,7 @@
// TODO:: Do the i18n // TODO:: Do the i18n
_.extend(data, { _.extend(data, {
variable_label: "Variable Name", variable_label: "Parameter name",
add_label: "ADD", add_label: "ADD",
database_label: "Database", database_label: "Database",
role_label: "Role" role_label: "Role"

View File

@ -133,8 +133,8 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
id: 'description', label:'{{ _('Comment') }}', cell: 'string', id: 'description', label:'{{ _('Comment') }}', cell: 'string',
type: 'multiline' type: 'multiline'
},{ },{
id: 'spcoptions', label: '{{ _('Variables') }}', type: 'collection', id: 'spcoptions', label: '{{ _('Parameters') }}', type: 'collection',
group: "Variables", control: 'variable-collection', group: "Parameters", control: 'variable-collection',
model: pgAdmin.Browser.Node.VariableModel, model: pgAdmin.Browser.Node.VariableModel,
mode: ['edit', 'create'], canAdd: true, canEdit: false, mode: ['edit', 'create'], canAdd: true, canEdit: false,
canDelete: true canDelete: true