diff --git a/web/pgadmin/static/js/sqleditor/macro.js b/web/pgadmin/static/js/sqleditor/macro.js index b761002fc..b476cd6be 100644 --- a/web/pgadmin/static/js/sqleditor/macro.js +++ b/web/pgadmin/static/js/sqleditor/macro.js @@ -10,6 +10,7 @@ import gettext from 'sources/gettext'; import url_for from 'sources/url_for'; import $ from 'jquery'; +import _ from 'underscore'; import Alertify from 'pgadmin.alertifyjs'; import pgAdmin from 'sources/pgadmin'; import Backform from 'pgadmin.backform'; @@ -269,16 +270,16 @@ let MacroDialog = { var str = `
  • - Manage Macros... + ${gettext('Manage Macros...')}
  • `; _.each(macros, function(m) { if (m.name) { str += `
  • - - ` + m.name + ` - (` + m.key_label + `) + + ${_.escape(m.name)} + (${m.key_label})
  • `; } diff --git a/web/pgadmin/tools/datagrid/templates/datagrid/index.html b/web/pgadmin/tools/datagrid/templates/datagrid/index.html index 4970027e9..229b4d37e 100644 --- a/web/pgadmin/tools/datagrid/templates/datagrid/index.html +++ b/web/pgadmin/tools/datagrid/templates/datagrid/index.html @@ -395,7 +395,7 @@ {% for i in macros %}
  • - {{ _(i.name) }} + {{ _(i.name)|e }} ({{ i.key_label }})