From ed203095dc3f5127192528bbe47f08c7cd5b9fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Thu, 29 Sep 2022 19:20:10 +0200 Subject: [PATCH] rempalce template topic par helper translate --- core/class/template.class.php | 9 --------- core/module/config/view/backup/backup.js.php | 8 ++++---- core/module/config/view/backup/backup.php | 2 +- core/module/config/view/connect/connect.php | 4 ++-- core/module/config/view/index/index.js.php | 2 +- core/module/config/view/network/network.php | 4 ++-- core/module/config/view/restore/restore.php | 2 +- core/module/config/view/setup/setup.php | 4 ++-- core/module/config/view/social/social.php | 6 +++--- core/module/install/view/index/index.php | 2 +- .../install/view/postinstall/postinstall.php | 6 +++--- core/module/install/view/update/update.js.php | 8 ++++---- core/module/install/view/update/update.php | 18 +++++++++--------- core/module/maintenance/view/index/index.php | 2 +- core/module/page/view/edit/edit.js.php | 10 +++++----- .../plugin/view/dataImport/dataImport.php | 2 +- core/module/plugin/view/index/index.js.php | 4 ++-- core/module/plugin/view/index/index.php | 6 +++--- core/module/plugin/view/item/item.php | 8 ++++---- core/module/plugin/view/upload/upload.php | 2 +- core/module/theme/view/admin/admin.php | 4 ++-- core/module/theme/view/body/body.php | 2 +- core/module/theme/view/fontAdd/fontAdd.php | 2 +- core/module/theme/view/fontEdit/fontEdit.php | 2 +- core/module/theme/view/footer/footer.php | 12 ++++++------ core/module/theme/view/header/header.php | 16 ++++++++-------- core/module/theme/view/manage/manage.php | 8 ++++---- core/module/theme/view/menu/menu.php | 8 ++++---- core/module/theme/view/site/site.php | 8 ++++---- core/module/translate/view/add/add.php | 2 +- core/module/translate/view/copy/copy.php | 2 +- core/module/translate/view/index/index.js.php | 2 +- core/module/translate/view/index/index.php | 2 +- core/module/user/view/add/add.php | 16 ++++++++-------- core/module/user/view/edit/edit.php | 16 ++++++++-------- core/module/user/view/import/import.php | 2 +- core/module/user/view/index/index.js.php | 2 +- 37 files changed, 103 insertions(+), 112 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 755c1fe2..3b2a0ff3 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -3,15 +3,6 @@ class template { - /** - * retourne un texte traduit - */ - public static function topic($text) - { - $text = helper::translate($text); - return $text; - } - /** * Crée un bouton * @param string $nameId Nom et id du champ diff --git a/core/module/config/view/backup/backup.js.php b/core/module/config/view/backup/backup.js.php index 77aaee99..9095d251 100644 --- a/core/module/config/view/backup/backup.js.php +++ b/core/module/config/view/backup/backup.js.php @@ -15,9 +15,9 @@ $(document).ready(function () { //$("#configBackupSubmit").addClass("disabled").prop("disabled", true); e.preventDefault(); var url = "getUrl(0); ?>/backup"; - var message_success = ""; - var message_error = ""; - var message_title = ""; + var message_success = ""; + var message_error = ""; + var message_title = ""; $.ajax({ type: "POST", url: url, @@ -45,7 +45,7 @@ $(document).ready(function () { */ $("#configBackupSubmit").on("click", function () { if ($("input[name=configBackupOption]").is(':checked')) { - var message_warning = ""; + var message_warning = ""; return core.confirm(message_warning, function () { //$(location).attr("href", _this.attr("href")); $('body, .button').css('cursor', 'wait'); diff --git a/core/module/config/view/backup/backup.php b/core/module/config/view/backup/backup.php index 9f5809ee..55694dcb 100644 --- a/core/module/config/view/backup/backup.php +++ b/core/module/config/view/backup/backup.php @@ -18,7 +18,7 @@

- +

diff --git a/core/module/config/view/connect/connect.php b/core/module/config/view/connect/connect.php index 1dba83c0..e2f5a207 100644 --- a/core/module/config/view/connect/connect.php +++ b/core/module/config/view/connect/connect.php @@ -2,7 +2,7 @@
-

+

'left']); ?> @@ -91,7 +91,7 @@
-

+

'left']); ?> diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index 78328919..093e6f03 100644 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -17,7 +17,7 @@ $(document).ready(function () { */ $("#configBackupDelButton").on("click", function () { var _this = $(this); - var message_warning = ""; + var message_warning = ""; return core.confirm(message_warning, function () { $(location).attr("href", _this.attr("href")); }); diff --git a/core/module/config/view/network/network.php b/core/module/config/view/network/network.php index 1701f4d7..aa64c9e9 100644 --- a/core/module/config/view/network/network.php +++ b/core/module/config/view/network/network.php @@ -2,7 +2,7 @@
-

+

'left']); ?> @@ -37,7 +37,7 @@
-

+

'left']); ?> diff --git a/core/module/config/view/restore/restore.php b/core/module/config/view/restore/restore.php index ab0c6266..4e5e1442 100644 --- a/core/module/config/view/restore/restore.php +++ b/core/module/config/view/restore/restore.php @@ -19,7 +19,7 @@

- +

diff --git a/core/module/config/view/setup/setup.php b/core/module/config/view/setup/setup.php index a8e2abad..32db0980 100644 --- a/core/module/config/view/setup/setup.php +++ b/core/module/config/view/setup/setup.php @@ -2,7 +2,7 @@
-

+

'left']); ?> @@ -56,7 +56,7 @@

- + 'left']); ?> diff --git a/core/module/config/view/social/social.php b/core/module/config/view/social/social.php index aa4291b3..5b273b50 100644 --- a/core/module/config/view/social/social.php +++ b/core/module/config/view/social/social.php @@ -3,7 +3,7 @@

- + 'left']); ?> @@ -47,7 +47,7 @@

- +

@@ -69,7 +69,7 @@

- + 'left']); ?> diff --git a/core/module/install/view/index/index.php b/core/module/install/view/index/index.php index 0717b540..9a70f299 100644 --- a/core/module/install/view/index/index.php +++ b/core/module/install/view/index/index.php @@ -1,6 +1,6 @@

- +

diff --git a/core/module/install/view/postinstall/postinstall.php b/core/module/install/view/postinstall/postinstall.php index 6a175e61..a20c8a6f 100644 --- a/core/module/install/view/postinstall/postinstall.php +++ b/core/module/install/view/postinstall/postinstall.php @@ -1,9 +1,9 @@

- +

- +

@@ -50,7 +50,7 @@