First round of string review and cleanup.

This commit is contained in:
Karen Blatchley
2016-05-06 13:53:48 +01:00
committed by Dave Page
parent 894002b06d
commit 949e536bae
60 changed files with 1165 additions and 793 deletions

View File

@@ -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

View File

@@ -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');