Flask-Babel 0.11+ compatibility. Fixes #1496

This commit is contained in:
Dave Page
2016-07-25 17:23:10 +01:00
parent 875360d1c8
commit 790b28fb61
11 changed files with 41 additions and 41 deletions

View File

@@ -159,7 +159,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
return false;
alertify.confirm(
S('{{ _('Are you sure you want to truncate table - %%s ?') }}').sprintf(d.label).value(),
S('{{ _('Are you sure you want to truncate table %s?') }}').sprintf(d.label).value(),
function (e) {
if (e) {
var data = d;
@@ -208,7 +208,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
return false;
alertify.confirm(
S('{{ _('Are you sure you want to reset table statistics - %%s ?') }}').sprintf(d.label).value(),
S('{{ _('Are you sure you want to reset table statistics for %s?') }}').sprintf(d.label).value(),
function (e) {
if (e) {
var data = d;

View File

@@ -110,7 +110,7 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
Alertify.confirm(
'{{ _('Disconnect the database') }}',
S('{{ _('Are you sure you want to disconnect the database - %%s ?') }}').sprintf(d.label).value(),
S('{{ _('Are you sure you want to disconnect the database - %s?') }}').sprintf(d.label).value(),
function(evt) {
var data = d;
$.ajax({