diff options
author | Marcel Klehr <mklehr@gmx.net> | 2022-10-19 17:04:26 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-10-20 14:54:53 +0300 |
commit | 9f4b92404d8ed11d0205c73b82b2b251ed59310a (patch) | |
tree | 22bb7a8f2d25cf28524b87905275a867ab2b90c6 | |
parent | 237506d43f45cd2bd06a58b3741aa53657b1a5db (diff) |
Make tag translations work by loading recognize translations
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r-- | lib/Controller/PageController.php | 5 |
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(); |