Some minor gettext and format fixes.

This commit is contained in:
Libor M 2020-04-16 12:55:19 +05:30 committed by Akshay Joshi
parent 7493649893
commit 8254e9f030
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -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;
},

View File

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