From 79bf69407b8a53d427b93b74ca2e2bd8b582c3bc Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Wed, 11 Dec 2024 13:22:40 +0100 Subject: [PATCH] Add translations as part of PR #1573 See: https://github.com/danskernesdigitalebibliotek/dpl-react/pull/1573/ --- .../dpl_react_apps/src/Controller/DplReactAppsController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php index b40ec6143..9d884c3fa 100644 --- a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php +++ b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php @@ -386,6 +386,8 @@ public function work(string $wid): array { 'ok-button-text' => $this->t('Ok', [], ['context' => 'Work Page']), 'online-limit-month-audiobook-info-text' => $this->t('You have borrowed @count out of @limit possible audio-books this month', [], ['context' => 'Work Page']), 'online-limit-month-ebook-info-text' => $this->t('You have borrowed @count out of @limit possible e-books this month', [], ['context' => 'Work Page']), + 'online-material-player-text' => $this->t('Listen to @materialType', [], ['context' => 'Work Page']), + 'online-material-reader-text' => $this->t('Read @materialType', [], ['context' => 'Work Page']), 'online-limit-month-info-text' => $this->t('You have borrowed @count out of @limit possible e-books this month', [], ['context' => 'Work Page']), 'online-material-teaser-text' => $this->t('Try @materialType', [], ['context' => 'Work Page']), 'open-order-not-owned-ill-loc-text' => $this->t('Your material has been ordered from another library', [], ['context' => 'Work Page']), @@ -544,4 +546,4 @@ public function reader(Request $request): array { } -} +} \ No newline at end of file