mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
First round of string review and cleanup.
This commit is contained in:
committed by
Dave Page
parent
894002b06d
commit
949e536bae
@@ -255,7 +255,7 @@ class TablespaceView(PGChildNodeView):
|
||||
status=410,
|
||||
success=0,
|
||||
errormsg=gettext(
|
||||
"Couldn't find the required parameter (%s)." %
|
||||
"Could not find the required parameter (%s)." %
|
||||
required_args[arg]
|
||||
)
|
||||
)
|
||||
@@ -365,7 +365,7 @@ class TablespaceView(PGChildNodeView):
|
||||
|
||||
if len(rset['rows']) != 1:
|
||||
return gone(
|
||||
errormsg=gettext("Couldn't the tablespace in the server!")
|
||||
errormsg=gettext("Could not find the tablespace on the server.")
|
||||
)
|
||||
|
||||
# drop tablespace
|
||||
|
||||
@@ -161,12 +161,12 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
||||
if (_.has(changedAttrs, 'name') &&
|
||||
(_.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);
|
||||
} else if (_.has(changedAttrs, 'spclocation') &&
|
||||
(_.isUndefined(this.get('spclocation'))
|
||||
|| String(this.get('spclocation')).replace(/^\s+|\s+$/g, '') == '')) {
|
||||
msg = '{{ _('Location can not be empty!') }}';
|
||||
msg = '{{ _('Location cannot be empty.') }}';
|
||||
this.errorModel.set('spclocation', msg);
|
||||
} else {
|
||||
this.errorModel.unset('name');
|
||||
|
||||
Reference in New Issue
Block a user