mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Some minor gettext and format fixes.
This commit is contained in:
parent
7493649893
commit
8254e9f030
@ -378,7 +378,7 @@ class EventTriggerView(PGChildNodeView):
|
||||
status=400,
|
||||
success=0,
|
||||
errormsg=gettext(
|
||||
"Could not find the required parameter {}.".format(err))
|
||||
"Could not find the required parameter {}.").format(err)
|
||||
)
|
||||
try:
|
||||
sql = render_template(
|
||||
|
@ -737,7 +737,7 @@ class IndexConstraintView(PGChildNodeView):
|
||||
|
||||
return make_json_response(
|
||||
success=1,
|
||||
info=_("{0} dropped.".format(self.node_label)),
|
||||
info=_("{0} dropped.").format(self.node_label),
|
||||
data={
|
||||
'id': cid,
|
||||
'sid': sid,
|
||||
|
@ -425,7 +425,7 @@ define('pgadmin.node.server', [
|
||||
Alertify.dialog('changeServerPassword' ,function factory() {
|
||||
return {
|
||||
main: function(params) {
|
||||
var title = gettext('Change Password ');
|
||||
var title = gettext('Change Password');
|
||||
this.set('title', title);
|
||||
this.user_name = params.user.name;
|
||||
},
|
||||
|
@ -910,7 +910,7 @@ class Filemanager(object):
|
||||
Filemanager.check_access_permission(dir, path)
|
||||
except Exception as e:
|
||||
res = {
|
||||
'Error': gettext(u"Error: {0}".format(e)),
|
||||
'Error': gettext(u"Error: {0}").format(e),
|
||||
'Code': 0
|
||||
}
|
||||
return res
|
||||
@ -1131,7 +1131,7 @@ class Filemanager(object):
|
||||
path, name))
|
||||
except Exception as e:
|
||||
res = {
|
||||
'Error': gettext(u"Error: {0}".format(e)),
|
||||
'Error': gettext(u"Error: {0}").format(e),
|
||||
'Code': 0
|
||||
}
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user