From 115430585dc4476c067d0c3773699d28bb0d050f Mon Sep 17 00:00:00 2001 From: 22Alexandra Date: Sun, 28 May 2023 14:35:31 +0300 Subject: [PATCH] EWPP-3324: Add translations for the 'Collapse' string. --- modules/oe_theme_helper/translations/oe_theme_helper-bg.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-cs.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-da.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-de.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-el.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-es.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-et.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-fi.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-fr.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-ga.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-hr.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-hu.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-it.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-lt.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-lv.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-mt.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-nl.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-pl.po | 3 +++ .../oe_theme_helper/translations/oe_theme_helper-pt-pt.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-ro.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-sk.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-sl.po | 3 +++ modules/oe_theme_helper/translations/oe_theme_helper-sv.po | 3 +++ templates/patterns/gallery/gallery.ui_patterns.yml | 4 ++-- templates/patterns/gallery/pattern-gallery.html.twig | 6 +++--- tests/src/Kernel/Paragraphs/ParagraphsTest.php | 6 +++--- tests/src/Kernel/fixtures/rendering.yml | 4 ++-- 27 files changed, 79 insertions(+), 10 deletions(-) diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-bg.po b/modules/oe_theme_helper/translations/oe_theme_helper-bg.po index e8e98f38b1..7ffe2f4eb9 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-bg.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-bg.po @@ -620,3 +620,6 @@ msgstr "Излъчването на живо приключи, но проява msgid "@percentage% of the overall budget" msgstr "@percentage% от общия бюджет" + +msgid "Collapse" +msgstr "Свиване" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-cs.po b/modules/oe_theme_helper/translations/oe_theme_helper-cs.po index 26ac04854e..3860ec19f6 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-cs.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-cs.po @@ -620,3 +620,6 @@ msgstr "Živé vysílání bylo ukončeno, nicméně akce stále probíhá." msgid "@percentage% of the overall budget" msgstr "@percentage % celkového rozpočtu" + +msgid "Collapse" +msgstr "Sbalit" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-da.po b/modules/oe_theme_helper/translations/oe_theme_helper-da.po index 9d251b6dae..38852512ab 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-da.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-da.po @@ -620,3 +620,6 @@ msgstr "Livestreamingen er slut, men eventet kører stadig." msgid "@percentage% of the overall budget" msgstr "@percentage % af det samlede budget" + +msgid "Collapse" +msgstr "Skjul" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-de.po b/modules/oe_theme_helper/translations/oe_theme_helper-de.po index cfb6e35420..c172f60acf 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-de.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-de.po @@ -620,3 +620,6 @@ msgstr "Der Livestream ist beendet, aber die Veranstaltung läuft noch." msgid "@percentage% of the overall budget" msgstr "@percentage % der Gesamtmittel" + +msgid "Collapse" +msgstr "Einklappen" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-el.po b/modules/oe_theme_helper/translations/oe_theme_helper-el.po index f6b1f938a1..e151b52ef4 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-el.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-el.po @@ -620,3 +620,6 @@ msgstr "Η ζωντανή μετάδοση έληξε, αλλά η εκδήλω msgid "@percentage% of the overall budget" msgstr "@percentage % του συνολικού προϋπολογισμού" + +msgid "Collapse" +msgstr "Σύμπτυξη" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-es.po b/modules/oe_theme_helper/translations/oe_theme_helper-es.po index aca751e971..a03f96d248 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-es.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-es.po @@ -620,3 +620,6 @@ msgstr "Ha finalizado la transmisión en directo, pero el acto está en marcha." msgid "@percentage% of the overall budget" msgstr "@percentage% de la dotación presupuestaria global" + +msgid "Collapse" +msgstr "Contraer" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-et.po b/modules/oe_theme_helper/translations/oe_theme_helper-et.po index 6700e22495..a5c3bd815f 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-et.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-et.po @@ -620,3 +620,6 @@ msgstr "Otseülekanne on lõppenud, kuid üritus jätkub." msgid "@percentage% of the overall budget" msgstr "@percentage% kogueelarvest" + +msgid "Collapse" +msgstr "Ahenda" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-fi.po b/modules/oe_theme_helper/translations/oe_theme_helper-fi.po index 93cec79b91..d9e6455d71 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-fi.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-fi.po @@ -620,3 +620,6 @@ msgstr "Suora lähetys on päättynyt, mutta tapahtuma jatkuu edelleen." msgid "@percentage% of the overall budget" msgstr "@percentage % kokonaisbudjetista" + +msgid "Collapse" +msgstr "Supista" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-fr.po b/modules/oe_theme_helper/translations/oe_theme_helper-fr.po index 37025065d1..623463123c 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-fr.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-fr.po @@ -620,3 +620,6 @@ msgstr "La retransmission en direct est terminée, mais l’événement se pours msgid "@percentage% of the overall budget" msgstr "@percentage % du budget global" + +msgid "Collapse" +msgstr "Réduire" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-ga.po b/modules/oe_theme_helper/translations/oe_theme_helper-ga.po index 582ea80871..b6e8677b58 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-ga.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-ga.po @@ -620,3 +620,6 @@ msgstr "Tá an beoshruthú thart ach tá an imeacht fós ar siúl." msgid "@percentage% of the overall budget" msgstr "@percentage% den bhuiséad foriomlán" + +msgid "Collapse" +msgstr "Leacaigh" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-hr.po b/modules/oe_theme_helper/translations/oe_theme_helper-hr.po index fa7412838c..e9fb0c8f65 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-hr.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-hr.po @@ -620,3 +620,6 @@ msgstr "Prijenos uživo je završio, ali događaj još traje." msgid "@percentage% of the overall budget" msgstr "@percentage % ukupnog proračuna" + +msgid "Collapse" +msgstr "Sažmi" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-hu.po b/modules/oe_theme_helper/translations/oe_theme_helper-hu.po index f15c47e327..28880246d2 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-hu.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-hu.po @@ -620,3 +620,6 @@ msgstr "Az élő közvetítés befejeződött, de a rendezvény még tart." msgid "@percentage% of the overall budget" msgstr "A teljes költségvetés @percentage%-a" + +msgid "Collapse" +msgstr "Elrejtés" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-it.po b/modules/oe_theme_helper/translations/oe_theme_helper-it.po index b243458571..b2c6cad772 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-it.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-it.po @@ -620,3 +620,6 @@ msgstr "La trasmissione livestream è terminata, ma l'evento è ancora in corso. msgid "@percentage% of the overall budget" msgstr "@percentage% del bilancio complessivo" + +msgid "Collapse" +msgstr "Comprimi" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-lt.po b/modules/oe_theme_helper/translations/oe_theme_helper-lt.po index df04451cd6..1c957e8813 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-lt.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-lt.po @@ -620,3 +620,6 @@ msgstr "Tiesioginė transliacija baigėsi, tačiau renginys tęsiasi." msgid "@percentage% of the overall budget" msgstr "@percentage % bendro biudžeto" + +msgid "Collapse" +msgstr "Suskleisti" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-lv.po b/modules/oe_theme_helper/translations/oe_theme_helper-lv.po index 1c5fe8c69c..a442c469de 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-lv.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-lv.po @@ -620,3 +620,6 @@ msgstr "Tiešraide ir beigusies, bet pasākums turpinās." msgid "@percentage% of the overall budget" msgstr "@percentage % no kopējā budžeta" + +msgid "Collapse" +msgstr "Sakļaut" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-mt.po b/modules/oe_theme_helper/translations/oe_theme_helper-mt.po index 13767d5f5f..1386620641 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-mt.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-mt.po @@ -620,3 +620,6 @@ msgstr "Ix-xandira diretta fuq l-internet intemmet, iżda l-avveniment għadu g msgid "@percentage% of the overall budget" msgstr "@percentage% tal-baġit globali" + +msgid "Collapse" +msgstr "Ikkollassa" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-nl.po b/modules/oe_theme_helper/translations/oe_theme_helper-nl.po index 5c64785207..fac9b55577 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-nl.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-nl.po @@ -620,3 +620,6 @@ msgstr "De livestream is beëindigd, maar het evenement is nog gaande." msgid "@percentage% of the overall budget" msgstr "@percentage% van de totale begroting" + +msgid "Collapse" +msgstr "Inklappen" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-pl.po b/modules/oe_theme_helper/translations/oe_theme_helper-pl.po index 07dd5908e2..69eedd4a5c 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-pl.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-pl.po @@ -620,3 +620,6 @@ msgstr "Wydarzenie nadal trwa, ale nie jest już transmitowane na żywo." msgid "@percentage% of the overall budget" msgstr "@percentage% łącznego budżetu" + +msgid "Collapse" +msgstr "Zwiń" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-pt-pt.po b/modules/oe_theme_helper/translations/oe_theme_helper-pt-pt.po index e3f5bd593f..f17fbd40e0 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-pt-pt.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-pt-pt.po @@ -620,3 +620,6 @@ msgstr "A transmissão em direto terminou, mas o evento prossegue." msgid "@percentage% of the overall budget" msgstr "@percentage% do orçamento global" + +msgid "Collapse" +msgstr "Fechar" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-ro.po b/modules/oe_theme_helper/translations/oe_theme_helper-ro.po index 73e8de523b..be86b9e60e 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-ro.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-ro.po @@ -620,3 +620,6 @@ msgstr "Transmisia în direct s-a încheiat, dar evenimentul este în curs de de msgid "@percentage% of the overall budget" msgstr "@percentage% din bugetul total" + +msgid "Collapse" +msgstr "Restrângeți" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-sk.po b/modules/oe_theme_helper/translations/oe_theme_helper-sk.po index b26353fe8a..debf4f2c2c 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-sk.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-sk.po @@ -620,3 +620,6 @@ msgstr "Živé vysielanie sa skončilo, ale podujatie prebieha." msgid "@percentage% of the overall budget" msgstr "@percentage% celkového rozpočtu" + +msgid "Collapse" +msgstr "Zbaliť" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-sl.po b/modules/oe_theme_helper/translations/oe_theme_helper-sl.po index a64de9cccd..44e331b2e0 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-sl.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-sl.po @@ -620,3 +620,6 @@ msgstr "Prenos v živo se je končal, vendar dogodek še poteka." msgid "@percentage% of the overall budget" msgstr "@percentage % celotnega proračuna" + +msgid "Collapse" +msgstr "Skrči" diff --git a/modules/oe_theme_helper/translations/oe_theme_helper-sv.po b/modules/oe_theme_helper/translations/oe_theme_helper-sv.po index 420610f923..5998dadfa3 100644 --- a/modules/oe_theme_helper/translations/oe_theme_helper-sv.po +++ b/modules/oe_theme_helper/translations/oe_theme_helper-sv.po @@ -620,3 +620,6 @@ msgstr "Direktsändningen är slut, men evenemanget pågår fortfarande." msgid "@percentage% of the overall budget" msgstr "@percentage % av den totala budgeten" + +msgid "Collapse" +msgstr "Dölj" diff --git a/templates/patterns/gallery/gallery.ui_patterns.yml b/templates/patterns/gallery/gallery.ui_patterns.yml index 2daf3861a9..85107d2c9e 100644 --- a/templates/patterns/gallery/gallery.ui_patterns.yml +++ b/templates/patterns/gallery/gallery.ui_patterns.yml @@ -121,12 +121,12 @@ gallery: description: "Whether the 'See all' link is shown or all items are shown." preview: true escape: false - url: + footer_link_url: type: "Url" label: "URL" description: "Footer link url." preview: "http://example.com" - label: + footer_link_label: type: "text" label: "Link text" description: "Footer link text." diff --git a/templates/patterns/gallery/pattern-gallery.html.twig b/templates/patterns/gallery/pattern-gallery.html.twig index 15aaac43fc..0fbf1c6ac0 100644 --- a/templates/patterns/gallery/pattern-gallery.html.twig +++ b/templates/patterns/gallery/pattern-gallery.html.twig @@ -18,11 +18,11 @@ {% set _items = _items|merge([_item]) %} {% endfor %} -{% if url is not empty %} +{% if footer_link_url is not empty %} {% set footer_link = { 'link': { - 'label': label|default('Further media items'|t), - 'path': url, + 'label': footer_link_label|default('Further media items'|t), + 'path': footer_link_url, }, 'icon': { 'path': ecl_icon_path, diff --git a/tests/src/Kernel/Paragraphs/ParagraphsTest.php b/tests/src/Kernel/Paragraphs/ParagraphsTest.php index cdb1656b86..3ef66f3ab9 100644 --- a/tests/src/Kernel/Paragraphs/ParagraphsTest.php +++ b/tests/src/Kernel/Paragraphs/ParagraphsTest.php @@ -219,7 +219,7 @@ public function testListItem(): void { $picture_element = $crawler->filter('article.ecl-card picture.ecl-card__picture'); $this->assertCount(1, $picture_element); $this->assertStringContainsString( - file_url_transform_relative(file_create_url($image->getFileUri())), + \Drupal::service('file_url_generator')->generateString($image->getFileUri()), $picture_element->filter('img.ecl-card__image')->attr('src') ); @@ -281,7 +281,7 @@ public function testListItem(): void { $picture_element = $crawler->filter('article.ecl-content-item > picture.ecl-content-item__picture--left img.ecl-content-item__image'); $this->assertCount(1, $picture_element); $this->assertStringContainsString( - file_url_transform_relative(file_create_url($image->getFileUri())), + \Drupal::service('file_url_generator')->generateString($image->getFileUri()), $picture_element->attr('src') ); $this->assertEquals('Druplicon', $picture_element->attr('alt')); @@ -315,7 +315,7 @@ public function testListItem(): void { $picture_element = $crawler->filter('article.ecl-content-item > picture.ecl-content-item__picture--right img.ecl-content-item__image'); $this->assertCount(1, $picture_element); $this->assertStringContainsString( - file_url_transform_relative(file_create_url($image->getFileUri())), + \Drupal::service('file_url_generator')->generateString($image->getFileUri()), $picture_element->attr('src') ); $this->assertEquals('Druplicon', $picture_element->attr('alt')); diff --git a/tests/src/Kernel/fixtures/rendering.yml b/tests/src/Kernel/fixtures/rendering.yml index 9121fff8fe..27859de022 100644 --- a/tests/src/Kernel/fixtures/rendering.yml +++ b/tests/src/Kernel/fixtures/rendering.yml @@ -863,8 +863,8 @@ meta: 'Copyright © 2021, Author and Licence' source: 'https://loremflickr.com/800/600/lisbon' media_type: 'image' - url: 'http://example.com' - label: 'Further media items' + footer_link_url: 'http://example.com' + footer_link_label: 'Further media items' visible_items: 1 assertions: count: