Replace all occurrences of "can not" with "cannot".

This commit is contained in:
Jonas Thelemann
2017-04-05 13:38:14 +01:00
committed by Dave Page
parent 85db82c7f4
commit 65f21a8cd7
32 changed files with 59 additions and 59 deletions

View File

@@ -312,7 +312,7 @@ class ServerNode(PGChildNodeView):
"""Delete a server node in the settings database."""
servers = Server.query.filter_by(user_id=current_user.id, id=sid)
# TODO:: A server, which is connected, can not be deleted
# TODO:: A server, which is connected, cannot be deleted
if servers is None:
return make_json_response(
status=410,

View File

@@ -489,7 +489,7 @@ class DatabaseView(PGChildNodeView):
if 'datacl' in data:
data['datacl'] = parse_priv_to_db(data['datacl'], 'DATABASE')
# The below SQL will execute rest DMLs because we can not execute CREATE with any other
# The below SQL will execute rest DMLs because we cannot execute CREATE with any other
SQL = render_template(
"/".join([self.template_path, 'grant.sql']),
data=data, conn=self.conn

View File

@@ -30,7 +30,7 @@ from config import PG_DEFAULT_DRIVER
2) Catalog
We have created single file because catalog & schema has same
functionality, the only difference is we can not perform DDL/DML operations
functionality, the only difference is we cannot perform DDL/DML operations
on catalog, also - it allows us to share the same submodules for both
catalog, and schema modules.
@@ -906,13 +906,13 @@ class CatalogView(SchemaView):
Override this property for your own logic
* create(gid, sid, did, scid)
- Raise an error - we can not create a catalog.
- Raise an error - we cannot create a catalog.
* update(gid, sid, did, scid)
- This function will update the data for the selected catalog node
* delete(self, gid, sid, scid):
- Raise an error - we can not delete a catalog.
- Raise an error - we cannot delete a catalog.
* get_sql(data, scid)
- This function will generate sql from model data

View File

@@ -220,13 +220,13 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
errmsg;
if (_.isUndefined(this.get('attname')) || String(this.get('attname')).replace(/^\s+|\s+$/g, '') == '') {
err['name'] = '{{ _('Column Name can not be empty!') }}';
err['name'] = '{{ _('Column Name cannot be empty!') }}';
errmsg = errmsg || err['attname'];
}
if (_.isUndefined(this.get('datatype')) || String(this.get('datatype'))
.replace(/^\s+|\s+$/g, '') == '') {
err['basensp'] = '{{ _('Column Datatype can not be empty!') }}';
err['basensp'] = '{{ _('Column Datatype cannot be empty!') }}';
errmsg = errmsg || err['datatype'];
}
@@ -403,13 +403,13 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
errmsg;
if (_.isUndefined(this.get('conname')) || String(this.get('conname')).replace(/^\s+|\s+$/g, '') == '') {
err['conname'] = '{{ _('Constraint Name can not be empty!') }}';
err['conname'] = '{{ _('Constraint Name cannot be empty!') }}';
errmsg = errmsg || err['conname'];
}
if (_.isUndefined(this.get('consrc')) || String(this.get('consrc'))
.replace(/^\s+|\s+$/g, '') == '') {
err['consrc'] = '{{ _('Constraint Check can not be empty!') }}';
err['consrc'] = '{{ _('Constraint Check cannot be empty!') }}';
errmsg = errmsg || err['consrc'];
}

View File

@@ -32,7 +32,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
if (_.isNull(token) ||
_.isUndefined(token) ||
String(token).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Token can not be empty!') }}';
msg = '{{ _('Token cannot be empty!') }}';
this.errorModel.set('token',msg);
return msg;
}
@@ -40,7 +40,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
if (_.isNull(dictionary) ||
_.isUndefined(dictionary) ||
String(dictionary).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Dictionary name can not be empty!') }}';
msg = '{{ _('Dictionary name cannot be empty!') }}';
this.errorModel.set('dictname',msg);
return msg;
}

View File

@@ -25,13 +25,13 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
if (_.isUndefined(this.get('option')) ||
String(this.get('option')).replace(/^\s+|\s+$/g, '') == '') {
var msg = '{{ _('Option can not be empty!') }}';
var msg = '{{ _('Option cannot be empty!') }}';
this.errorModel.set('option',msg);
return msg;
}
if (_.isUndefined(this.get('value')) ||
String(this.get('value')).replace(/^\s+|\s+$/g, '') == '') {
var msg = '{{ _('Value can not be empty!') }}';
var msg = '{{ _('Value cannot be empty!') }}';
this.errorModel.set('value',msg);
return msg;
}

View File

@@ -70,7 +70,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
return false;
}
// Below will disable default value cell if argument mode is 'INOUT' or 'OUT' as
// user can not set default value for out parameters.
// user cannot set default value for out parameters.
if(!_.isUndefined(m.get('argmode')) && !_.isUndefined(this.get('name')) &&
this.get('name') == 'argdefval' &&
(m.get('argmode') == 'INOUT' || m.get('argmode') == 'OUT')) {

View File

@@ -342,7 +342,7 @@ class SequenceView(PGChildNodeView):
if 'relacl' in data:
data['relacl'] = parse_priv_to_db(data['relacl'], 'DATABASE')
# The SQL below will execute rest DMLs because we can not execute CREATE with any other
# The SQL below will execute rest DMLs because we cannot execute CREATE with any other
SQL = render_template("/".join([self.template_path, 'grant.sql']), data=data, conn=self.conn)
SQL = SQL.strip('\n').strip(' ')
if SQL and SQL != "":

View File

@@ -211,7 +211,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
if (_.isUndefined(this.get('seqowner'))
|| String(this.get('seqowner')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Owner can not be empty.') }}';
msg = '{{ _('Owner cannot be empty.') }}';
this.errorModel.set('seqowner', msg);
return msg;
}

View File

@@ -563,14 +563,14 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
if (_.isUndefined(this.get('name'))
|| String(this.get('name')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Column name can not be empty.') }}';
msg = '{{ _('Column name cannot be empty.') }}';
this.errorModel.set('name', msg);
return msg;
}
if (_.isUndefined(this.get('cltype'))
|| String(this.get('cltype')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Column type can not be empty.') }}';
msg = '{{ _('Column type cannot be empty.') }}';
this.errorModel.set('cltype', msg);
return msg;
}

View File

@@ -161,7 +161,7 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
errmsg;
if (_.isUndefined(this.get('consrc')) || String(this.get('consrc')).replace(/^\s+|\s+$/g, '') == '') {
err['consrc'] = '{{ _('Check can not be empty!') }}';
err['consrc'] = '{{ _('Check cannot be empty!') }}';
errmsg = errmsg || err['consrc'];
}

View File

@@ -602,7 +602,7 @@ class IndexesView(PGChildNodeView):
self.conn.execute_scalar("END;")
return internal_server_error(errormsg=res)
# If user chooses concurrent index then we can not run it along
# If user chooses concurrent index then we cannot run it along
# with other alter statements so we will separate alter index part
SQL = render_template("/".join([self.template_path,
'alter.sql']),

View File

@@ -158,7 +158,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
if (_.isUndefined(this.get('colname'))
|| String(this.get('colname')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Column Name can not be empty.') }}';
msg = '{{ _('Column Name cannot be empty.') }}';
this.errorModel.set('colname', msg);
return msg;
}
@@ -391,19 +391,19 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
if (_.isUndefined(this.get('name'))
|| String(this.get('name')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Name can not be empty.') }}';
msg = '{{ _('Name cannot be empty.') }}';
this.errorModel.set('name', msg);
return msg;
}
if (_.isUndefined(this.get('spcname'))
|| String(this.get('spcname')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Tablespace can not be empty.') }}';
msg = '{{ _('Tablespace cannot be empty.') }}';
this.errorModel.set('spcname', msg);
return msg;
}
if (_.isUndefined(this.get('amname'))
|| String(this.get('amname')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Access method can not be empty.') }}';
msg = '{{ _('Access method cannot be empty.') }}';
this.errorModel.set('amname', msg);
return msg;
}

View File

@@ -746,17 +746,17 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
if (_.isUndefined(name) || _.isNull(name) ||
String(name).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Table name can not be empty.') }}';
msg = '{{ _('Table name cannot be empty.') }}';
this.errorModel.set('name', msg);
return msg;
} else if (_.isUndefined(schema) || _.isNull(schema) ||
String(schema).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Table schema can not be empty.') }}';
msg = '{{ _('Table schema cannot be empty.') }}';
this.errorModel.set('schema', msg);
return msg;
} else if (_.isUndefined(relowner) || _.isNull(relowner) ||
String(relowner).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Table owner can not be empty.') }}';
msg = '{{ _('Table owner cannot be empty.') }}';
this.errorModel.set('relowner', msg);
return msg;
}

View File

@@ -479,13 +479,13 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
if(_.isUndefined(this.get('name'))
|| String(this.get('name')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Name can not be empty.') }}';
msg = '{{ _('Name cannot be empty.') }}';
this.errorModel.set('name', msg);
return msg;
}
if(_.isUndefined(this.get('tfunction'))
|| String(this.get('tfunction')).replace(/^\s+|\s+$/g, '') == '') {
msg = '{{ _('Trigger function can not be empty.') }}';
msg = '{{ _('Trigger function cannot be empty.') }}';
this.errorModel.set('tfunction', msg);
return msg;
}
@@ -505,7 +505,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
(_.isUndefined(this.get('prosrc'))
|| String(this.get('prosrc')).replace(/^\s+|\s+$/g, '') == ''))
{
msg = '{{ _('Trigger code can not be empty.') }}';
msg = '{{ _('Trigger code cannot be empty.') }}';
this.errorModel.set('prosrc', msg);
return msg;
}

View File

@@ -814,7 +814,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backgrid) {
} else if (_.has(changedAttrs, 'typtype') &&
(_.isUndefined(this.get('typtype'))
|| String(this.get('name')).replace(/^\s+|\s+$/g, '') == '')) {
msg = '{{ _('Type can not be empty.') }}';
msg = '{{ _('Type cannot be empty.') }}';
this.errorModel.set('typtype', msg);
} else if (this.get('typtype') == 'r' &&
_.has(changedAttrs, 'typname')
@@ -826,13 +826,13 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backgrid) {
_.has(changedAttrs, 'typinput')
&& (_.isUndefined(this.get('typinput'))
|| String(this.get('typinput')).replace(/^\s+|\s+$/g, '') == '')) {
msg = '{{ _('Input function can not be empty.') }}';
msg = '{{ _('Input function cannot be empty.') }}';
this.errorModel.set('typinput', msg);
} else if (this.get('typtype') == 'x' &&
_.has(changedAttrs, 'typoutput')
&& (_.isUndefined(this.get('typoutput'))
|| String(this.get('typoutput')).replace(/^\s+|\s+$/g, '') == '')) {
msg = '{{ _('Output function can not be empty.') }}';
msg = '{{ _('Output function cannot be empty.') }}';
this.errorModel.set('typoutput', msg);
}

View File

@@ -1235,13 +1235,13 @@ class MViewNode(ViewNode, VacuumSettings):
Override this property for your own logic
* create(gid, sid, did, scid)
- Raise an error - we can not create a material view.
- Raise an error - we cannot create a material view.
* update(gid, sid, did, scid)
- This function will update the data for the selected material node
* delete(self, gid, sid, scid):
- Raise an error - we can not delete a material view.
- Raise an error - we cannot delete a material view.
* getSQL(data, scid)
- This function will generate sql from model data

View File

@@ -54,7 +54,7 @@
switch(variable && variable.vartype) {
case "bool":
/*
* bool cell and variable can not be stateless (i.e undefined).
* bool cell and variable cannot be stateless (i.e undefined).
* It should be either true or false.
*/

View File

@@ -713,7 +713,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
}
if (!self.isNew() && 'id' in self.sessAttrs) {
err['id'] = '{{ _('The ID can not be changed.') }}';;
err['id'] = '{{ _('The ID cannot be changed.') }}';;
errmsg = err['id'];
} else {
self.errorModel.unset('id');