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

Per Susan Douglas.
pull/3/head
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',
mode: ['properties']
},{
id: 'arguments', label: '{{ _('Parameters') }}', cell: 'string',
group: '{{ _('Parameters') }}', type: 'collection', canAdd: function(m){
id: 'arguments', label: '{{ _('Arguments') }}', cell: 'string',
group: '{{ _('Arguments') }}', type: 'collection', canAdd: function(m){
return m.isNew();
},
canDelete: true, model: ArgumentModel, mode: ['create', 'edit'],
columns: ['argtype', 'argmode', 'argname', 'argdefval'],
disabled: 'isDisabled'
},{
id: 'variables', label: '{{ _('Variables') }}', type: 'collection',
group: '{{ _('Variables') }}', control: 'variable-collection',
id: 'variables', label: '{{ _('Parameters') }}', type: 'collection',
group: '{{ _('Parameters') }}', control: 'variable-collection',
model: pgAdmin.Browser.Node.VariableModel,
mode: ['edit', 'create'], canAdd: 'canVarAdd', canEdit: false,
canDelete: true, disabled: 'isDisabled'

View File

@ -294,9 +294,9 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
editable: false, type: 'collection', group: '{{ _('Security') }}', mode: ['edit', 'create'],
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,
group: '{{ _('Variables') }}', mode: ['edit', 'create'],
group: '{{ _('Parameters') }}', mode: ['edit', 'create'],
canAdd: true, canEdit: false, canDelete: true, hasRole: true,
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);
}
},{
id: 'variables', label: '{{ _('Variables') }}', type: 'collection',
group: '{{ _('Variables') }}', hasDatabase: true, url: 'variables',
id: 'variables', label: '{{ _('Parameters') }}', type: 'collection',
group: '{{ _('Parameters') }}', hasDatabase: true, url: 'variables',
model: pgBrowser.Node.VariableModel, control: 'variable-collection',
mode: [ 'edit', 'create'], canAdd: true, canDelete: true,
url: "variables", disabled: 'readonly'

View File

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

View File

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