Fix translation extraction for new client side translations, and update catalogs.

This commit is contained in:
Sarah McAlear
2017-03-28 15:21:49 -04:00
committed by Dave Page
parent 8745417926
commit 1d27341e21
17 changed files with 834 additions and 526 deletions

View File

@@ -1,6 +1,6 @@
define(
['jquery', 'alertify', 'pgadmin', 'sources/translate'],
function($, alertify, pgAdmin, t) {
['jquery', 'alertify', 'pgadmin', 'sources/gettext'],
function($, alertify, pgAdmin, gettext) {
pgAdmin = pgAdmin || window.pgAdmin || {};
/* Return back, this has been called more than once */
@@ -18,7 +18,7 @@ define(
},
setup: function() {
return {
buttons:[{ text: t("OK"), key: 27, className: "btn btn-primary" }],
buttons:[{ text: gettext("OK"), key: 27, className: "btn btn-primary" }],
options: {
modal: false,
resizable: true,
@@ -41,7 +41,7 @@ define(
var content = '';
$.get("{{ url_for('about.index') }}",
function(data) {
alertify.aboutDialog(t("About %(appname)s", {appname: "{{ config.APP_NAME }}"}), data).resizeTo(800, 450);
alertify.aboutDialog(gettext("About %(appname)s", {appname: "{{ config.APP_NAME }}"}), data).resizeTo(800, 450);
});
}
};