mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -1,4 +1,4 @@
|
||||
define(['sources/gettext', 'alertify'], function (gettext, alertify) {
|
||||
define(['sources/translate', 'alertify'], function (t, alertify) {
|
||||
var clipboard = {
|
||||
copyTextToClipboard: function (text) {
|
||||
var textArea = document.createElement("textarea");
|
||||
@@ -50,8 +50,8 @@ define(['sources/gettext', 'alertify'], function (gettext, alertify) {
|
||||
document.execCommand('copy');
|
||||
} catch (err) {
|
||||
alertify.alert(
|
||||
gettext('Error'),
|
||||
gettext('Oops, unable to copy to clipboard'));
|
||||
t('Error'),
|
||||
t('Oops, unable to copy to clipboard'));
|
||||
}
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
|
||||
@@ -9,7 +9,7 @@ define(["translations"], function (translations) {
|
||||
* @param {String} text
|
||||
* @param {Object} substitutions
|
||||
*/
|
||||
return function gettext(text, substitutions) {
|
||||
return function translate(text, substitutions) {
|
||||
|
||||
var rawTranslation = translations[text] ? translations[text] : text;
|
||||
|
||||
Reference in New Issue
Block a user