Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2022-10-19 17:04:26 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-10-20 14:54:53 +0300
commit9f4b92404d8ed11d0205c73b82b2b251ed59310a (patch)
tree22bb7a8f2d25cf28524b87905275a867ab2b90c6
parent237506d43f45cd2bd06a58b3741aa53657b1a5db (diff)
Make tag translations work by loading recognize translations
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--lib/Controller/PageController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index afc4887f..23e041d4 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -136,6 +136,11 @@ class PageController extends Controller {
Util::addScript(Application::APP_ID, 'photos-main');
Util::addStyle(Application::APP_ID, 'icons');
+ if ($this->appManager->isEnabledForUser('recognize') === true) {
+ // Allow auto-translation of tags
+ Util::addTranslations('recognize');
+ }
+
$response = new TemplateResponse(Application::APP_ID, 'main');
$policy = new ContentSecurityPolicy();