From bd90f18a87bb061300f56c8a224dff4de7c0633d Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Sun, 31 Oct 2021 23:16:03 +0100 Subject: [PATCH] force get translations from admin --- Application/Model/ActionBase.php | 1 + Application/Model/ExportBase.php | 3 ++- Application/Model/QueryBase.php | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Model/ActionBase.php b/Application/Model/ActionBase.php index 7044123..1285f34 100644 --- a/Application/Model/ActionBase.php +++ b/Application/Model/ActionBase.php @@ -29,6 +29,7 @@ abstract class ActionBase implements QueryBase protected $formElements = []; /** + * Ensure that the translations are equally available in the frontend and the backend * @return string */ public function getDescription() : string diff --git a/Application/Model/ExportBase.php b/Application/Model/ExportBase.php index c85a054..480bab2 100644 --- a/Application/Model/ExportBase.php +++ b/Application/Model/ExportBase.php @@ -36,6 +36,7 @@ abstract class ExportBase implements QueryBase protected $formElements = []; /** + * Ensure that the translations are equally available in the frontend and the backend * @return string */ public function getDescription() : string @@ -185,7 +186,7 @@ abstract class ExportBase implements QueryBase throw oxNew( Exceptions\TaskException::class, $this, - Registry::getLang()->translateString( 'D3_DATAWIZARD_ERR_NOEXPORTCONTENT' ) + Registry::getLang()->translateString( 'D3_DATAWIZARD_ERR_NOEXPORTCONTENT', null, true ) ); } diff --git a/Application/Model/QueryBase.php b/Application/Model/QueryBase.php index c34a8a3..51125f4 100644 --- a/Application/Model/QueryBase.php +++ b/Application/Model/QueryBase.php @@ -22,11 +22,13 @@ interface QueryBase public function run(); /** + * Ensure that the translations are equally available in the frontend and the backend * @return string */ public function getTitle() : string; /** + * Ensure that the translations are equally available in the frontend and the backend * @return string */ public function getDescription() : string;