From 3c296faa5e50d732bfc4468ba2be1c4e5b19fdeb Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Jan 2024 23:34:18 +0000 Subject: [PATCH] update --- .../Application/QA/Controller/AppController.php | 12 ++++++------ Controller/BackendController.php | 8 ++++---- Models/PermissionCategory.php | 2 +- Theme/Backend/Lang/de.lang.php | 1 + Theme/Backend/Lang/en.lang.php | 1 + Theme/Backend/qa-question-create.tpl.php | 2 +- Theme/Backend/qa-question.tpl.php | 8 ++++---- 7 files changed, 18 insertions(+), 16 deletions(-) diff --git a/Admin/Install/Application/QA/Controller/AppController.php b/Admin/Install/Application/QA/Controller/AppController.php index 79c6ec7..b856fe0 100755 --- a/Admin/Install/Application/QA/Controller/AppController.php +++ b/Admin/Install/Application/QA/Controller/AppController.php @@ -47,7 +47,7 @@ final class AppController extends ModuleAbstract protected static array $dependencies = []; /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -67,7 +67,7 @@ final class AppController extends ModuleAbstract } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -87,7 +87,7 @@ final class AppController extends ModuleAbstract } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -107,7 +107,7 @@ final class AppController extends ModuleAbstract } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -127,7 +127,7 @@ final class AppController extends ModuleAbstract } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -147,7 +147,7 @@ final class AppController extends ModuleAbstract } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 9029c8a..dd8c3f1 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -39,7 +39,7 @@ use phpOMS\Views\View; final class BackendController extends Controller { /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -57,7 +57,7 @@ final class BackendController extends Controller } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -98,7 +98,7 @@ final class BackendController extends Controller } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response @@ -142,7 +142,7 @@ final class BackendController extends Controller } /** - * Routing end-point for application behaviour. + * Routing end-point for application behavior. * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response diff --git a/Models/PermissionCategory.php b/Models/PermissionCategory.php index 4f9e3fb..f5a0ea7 100755 --- a/Models/PermissionCategory.php +++ b/Models/PermissionCategory.php @@ -17,7 +17,7 @@ namespace Modules\QA\Models; use phpOMS\Stdlib\Base\Enum; /** - * Permision state enum. + * Permission category enum. * * @package Modules\QA\Models * @license OMS License 2.0 diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index fc76b3c..4d34b12 100755 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -15,6 +15,7 @@ declare(strict_types=1); return ['QA' => [ 'All' => 'Alle', 'Answer' => 'Antwort', + 'Answers' => 'Antworten', 'Question' => 'Frage', 'Vote' => 'Bewerten', 'Score' => 'Bewertung', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index c78a33f..3fd1fd0 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -15,6 +15,7 @@ declare(strict_types=1); return ['QA' => [ 'All' => 'All', 'Answer' => 'Answer', + 'Answers' => 'Answers', 'Question' => 'Question', 'Vote' => 'Vote', 'Score' => 'Score', diff --git a/Theme/Backend/qa-question-create.tpl.php b/Theme/Backend/qa-question-create.tpl.php index 8aeb471..6f500e0 100755 --- a/Theme/Backend/qa-question-create.tpl.php +++ b/Theme/Backend/qa-question-create.tpl.php @@ -63,7 +63,7 @@ echo $this->data['nav']->render();
printHtml($question->createdBy->account->name2); ?> printHtml($question->createdBy->account->name1); ?>
-
getHtml('Score') ?>: createdBy->account->id] ?? 0; ?>
+
getHtml('Score'); ?>: createdBy->account->id] ?? 0; ?>
createdBy->image->id > 0) : ?> diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php index e04c8cd..84669a8 100755 --- a/Theme/Backend/qa-question.tpl.php +++ b/Theme/Backend/qa-question.tpl.php @@ -63,7 +63,7 @@ echo $this->data['nav']->render();
getAnswerCount(); ?> - Answers + getHtml('Answers'); ?>
@@ -94,7 +94,7 @@ echo $this->data['nav']->render();
printHtml($question->createdBy->account->name2); ?> printHtml($question->createdBy->account->name1); ?>
-
getHtml('Score') ?>: createdBy->account->id] ?? 0; ?>
+
getHtml('Score'); ?>: createdBy->account->id] ?? 0; ?>
createdBy->image->id > 0) : ?> @@ -149,7 +149,7 @@ echo $this->data['nav']->render();
getVoteScore(); ?> - Score + getHtml('Score'); ?> request->header->account !== $answer->createdBy->account->id) : ?> render();
printHtml($answer->createdBy->account->name2); ?> printHtml($answer->createdBy->account->name1); ?>
-
Score: createdBy->account->id] ?? 0; ?>
+
getHtml('Score'); ?>: createdBy->account->id] ?? 0; ?>
createdBy->image->id > 0) : ?> <?= $this->getHtml('AccountImage', '0', '0'); ?>