mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Client-side translation for the About and Dashboard modules.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
define(
|
||||
['jquery', 'alertify', 'pgadmin'],
|
||||
function($, alertify, pgAdmin) {
|
||||
['jquery', 'alertify', 'pgadmin', 'sources/translate'],
|
||||
function($, alertify, pgAdmin, t) {
|
||||
pgAdmin = pgAdmin || window.pgAdmin || {};
|
||||
|
||||
/* Return back, this has been called more than once */
|
||||
@@ -18,7 +18,7 @@ define(
|
||||
},
|
||||
setup: function() {
|
||||
return {
|
||||
buttons:[{ text: "OK", key: 27, className: "btn btn-primary" }],
|
||||
buttons:[{ text: t("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('About {{ config.APP_NAME }}', data).resizeTo(800, 450);
|
||||
alertify.aboutDialog(t("About %(appname)s", {appname: "{{ config.APP_NAME }}"}), data).resizeTo(800, 450);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user