Revert "Ensure client-side translations are correctly extracted into the message templates."

This reverts commit 82bd97aed0.

There are still issues extracting with these changes.
This commit is contained in:
Dave Page
2017-03-27 13:53:40 -04:00
parent 82bd97aed0
commit 95f43d59b8
9 changed files with 98 additions and 99 deletions

View File

@@ -1,8 +1,8 @@
define(
['jquery', 'alertify', 'pgadmin', 'underscore', 'backform', 'sources/gettext', 'pgadmin.backform'],
['jquery', 'alertify', 'pgadmin', 'underscore', 'backform', 'sources/translate', 'pgadmin.backform'],
// This defines the Preference/Options Dialog for pgAdmin IV.
function($, alertify, pgAdmin, _, Backform, gettext) {
function($, alertify, pgAdmin, _, Backform, t) {
pgAdmin = pgAdmin || window.pgAdmin || {};
/*
@@ -23,8 +23,8 @@ define(
// and reload the window
show: function() {
var obj = this;
alertify.confirm(gettext('Reset layout'),
gettext('Are you sure you want to reset the current layout? This will cause the application to reload and any un-saved data will be lost.'),
alertify.confirm(t('Reset layout'),
t('Are you sure you want to reset the current layout? This will cause the application to reload and any un-saved data will be lost.'),
function() {
var reloadingIndicator = $('<div id="reloading-indicator"></div>');
$('body').append(reloadingIndicator);