Skip to content

Commit a7b67f4

Browse files
committed
Updated twig files to english, and added translation
1 parent 5617c96 commit a7b67f4

4 files changed

Lines changed: 67 additions & 15 deletions

File tree

web/themes/custom/hoeringsportal/templates/components/project-timeline-card.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
} %}
2828

2929
{% set status_labels = {
30-
completed: 'now'|date('Y-m-d') == item.date ? 'I dag'|t : 'Afsluttet'|t,
31-
current: 'I dag'|t,
32-
upcoming: 'Kommende'|t,
30+
completed: 'now'|date('Y-m-d') == item.date ? 'Today'|t : 'Finished'|t,
31+
current: 'Today'|t,
32+
upcoming: 'Upcoming'|t,
3333
note: 'Note'|t,
3434
} %}
3535

@@ -94,7 +94,7 @@
9494
{% if item.link %}
9595
<footer class="project-timeline-card__footer">
9696
<a href="{{ item.link }}" class="project-timeline-card__link">
97-
{{ item.linkText|default('Læs mere'|t) }}
97+
{{ item.linkText|default('Read more'|t) }}
9898
<svg class="project-timeline-card__link-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
9999
<path d="M6 12l4-4-4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
100100
</svg>

web/themes/custom/hoeringsportal/templates/components/project-timeline-mini-nav.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99
#}
1010
<nav class="project-timeline-mini-nav" aria-label="{{ 'Timeline navigation'|t }}" data-mini-nav>
11-
{# Vertical "TIDSLINJE" label at top #}
12-
<span class="project-timeline-mini-nav__header">{{ 'Tidslinje'|t }}</span>
11+
{# Vertical "TIMELINE" label at top #}
12+
<span class="project-timeline-mini-nav__header">{{ 'Timeline'|t }}</span>
1313

1414
<ul class="project-timeline-mini-nav__list">
1515
{% for item in items %}
@@ -28,9 +28,9 @@
2828
{% endfor %}
2929
</ul>
3030

31-
{# "I dag" indicator at bottom #}
31+
{# "Today" indicator at bottom #}
3232
<div class="project-timeline-mini-nav__today">
3333
<span class="project-timeline-mini-nav__today-dot" aria-hidden="true"></span>
34-
<span class="project-timeline-mini-nav__today-label">{{ 'I dag'|t }}</span>
34+
<span class="project-timeline-mini-nav__today-label">{{ 'Today'|t }}</span>
3535
</div>
3636
</nav>

web/themes/custom/hoeringsportal/templates/components/timeline.html.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
<div class="container">
2727
<div class="project-timeline__header">
2828
<div class="project-timeline__header-content">
29-
<h2 class="project-timeline__title">{{ title|default('Projektets tidslinje'|t) }}</h2>
29+
<h2 class="project-timeline__title">{{ title|default('Project timeline'|t) }}</h2>
3030
{% if description is not empty %}
3131
<p class="project-timeline__description">{{ description }}</p>
3232
{% else %}
33-
<p class="project-timeline__description">{{ 'Følg med i inddragelsesprocessen og se hvordan dit input former fremtidens projekt.'|t }}</p>
33+
<p class="project-timeline__description">{{ 'Follow the engagement process and see how your input shapes the future project.'|t }}</p>
3434
{% endif %}
3535
</div>
3636

@@ -45,7 +45,7 @@
4545
data-view="vertical"
4646
>
4747
<span class="project-timeline__view-icon" aria-hidden="true">↕</span>
48-
<span class="project-timeline__view-text">{{ 'Vertikal'|t }}</span>
48+
<span class="project-timeline__view-text">{{ 'Vertical'|t }}</span>
4949
</button>
5050
<button
5151
type="button"
@@ -56,7 +56,7 @@
5656
data-view="horizontal"
5757
>
5858
<span class="project-timeline__view-icon" aria-hidden="true">↔</span>
59-
<span class="project-timeline__view-text">{{ 'Horisontal'|t }}</span>
59+
<span class="project-timeline__view-text">{{ 'Horizontal'|t }}</span>
6060
</button>
6161
</div>
6262
</div>
@@ -104,7 +104,7 @@
104104
</button>
105105
<div class="project-timeline__horizontal-label">
106106
{% if item.is_today_marker|default(false) %}
107-
<span class="project-timeline__horizontal-month">{{ 'I dag'|t }}</span>
107+
<span class="project-timeline__horizontal-month">{{ 'Today'|t }}</span>
108108
{% else %}
109109
<span class="project-timeline__horizontal-month">{{ item.date|date('M') }}</span>
110110
<span class="project-timeline__horizontal-year">{{ item.date|date('Y') }}</span>

web/themes/custom/hoeringsportal/translations/hoeringsportal.da.po

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
msgid ""
44
msgstr ""
55
"Project-Id-Version: PROJECT VERSION\n"
6-
"POT-Creation-Date: 2026-01-08 08:39+0100\n"
7-
"PO-Revision-Date: 2026-01-08 08:39+0100\n"
6+
"POT-Creation-Date: 2026-01-27 10:41+0100\n"
7+
"PO-Revision-Date: 2026-01-27 10:41+0100\n"
88
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
99
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
1010
"MIME-Version: 1.0\n"
@@ -207,6 +207,13 @@ msgstr "Slut"
207207
msgid "First upcoming"
208208
msgstr "Næste kommende"
209209

210+
msgid ""
211+
"Follow the engagement process and see how your input shapes the future "
212+
"project."
213+
msgstr ""
214+
"Følg med i inddragelsesprocessen og se hvordan dit input former "
215+
"fremtidens projekt."
216+
210217
msgid "From"
211218
msgstr "Fra"
212219

@@ -243,6 +250,12 @@ msgstr "Høringssvar (@count)"
243250
msgid "Home"
244251
msgstr "Hjem"
245252

253+
msgid "Horizontal"
254+
msgstr "Horisontal"
255+
256+
msgid "Horizontal timeline carousel"
257+
msgstr "Horisontal tidslinje karrusel"
258+
246259
msgid "I have red the terms and give my consent"
247260
msgstr "Jeg har læst betingelserne og giver mit samtykke"
248261

@@ -300,6 +313,9 @@ msgstr "Navn"
300313
msgid "Next"
301314
msgstr "Næste"
302315

316+
msgid "Next item"
317+
msgstr "Næste element"
318+
303319
msgid "Next page"
304320
msgstr "Næste side"
305321

@@ -316,6 +332,9 @@ msgstr ""
316332
msgid "Not yet validated"
317333
msgstr "Endnu ikke valideret"
318334

335+
msgid "Note"
336+
msgstr "Note"
337+
319338
msgid "Note! Hearing deadline has passed."
320339
msgstr "Note! Hørings tidsfristen er forbi."
321340

@@ -362,6 +381,9 @@ msgstr "Pinterest"
362381
msgid "Previous"
363382
msgstr "Forrige"
364383

384+
msgid "Previous item"
385+
msgstr "Forrige element"
386+
365387
msgid "Previous page"
366388
msgstr "Forrige side"
367389

@@ -398,6 +420,9 @@ msgstr "Initiativ tilbagekaldt"
398420
msgid "Project start"
399421
msgstr "Initiativ start"
400422

423+
msgid "Project timeline"
424+
msgstr "Projektets tidslinje"
425+
401426
msgid "Proposals"
402427
msgstr "Forslag"
403428

@@ -407,6 +432,9 @@ msgstr "Forslag modtaget"
407432
msgid "Public meeting"
408433
msgstr "Borgermøde"
409434

435+
msgid "Read more"
436+
msgstr "Læs mere"
437+
410438
msgid "Read the entire decision"
411439
msgstr "Læs hele afgørelsen"
412440

@@ -525,12 +553,27 @@ msgstr ""
525553
msgid "Time"
526554
msgstr "Tid"
527555

556+
msgid "Timeline"
557+
msgstr "Tidslinje"
558+
559+
msgid "Timeline navigation"
560+
msgstr "Tidslinje navigation"
561+
562+
msgid "Timeline status legend"
563+
msgstr "Tidslinje status legende"
564+
565+
msgid "Timeline view options"
566+
msgstr "Tidslinje visningsmuligheder"
567+
528568
msgid "To"
529569
msgstr "Til"
530570

531571
msgid "To: @to"
532572
msgstr "Til: @to"
533573

574+
msgid "Today"
575+
msgstr "I dag"
576+
534577
msgid "Try with less words or to phrase it differently"
535578
msgstr "Prøv med færre ord eller at formulere det anderledes"
536579

@@ -558,6 +601,12 @@ msgstr "Valider med NemID"
558601
msgid "Validated with NemID"
559602
msgstr "Valideret med NemID"
560603

604+
msgid "Vertical"
605+
msgstr "Vertikal"
606+
607+
msgid "Vertical timeline view"
608+
msgstr "Vertikal tidslinje visning"
609+
561610
msgid "View all proposals"
562611
msgstr "Se alle forslag"
563612

@@ -594,6 +643,9 @@ msgstr "‹‹"
594643
msgid "››"
595644
msgstr "››"
596645

646+
msgid "✓ Finished"
647+
msgstr "✓ Afsluttet"
648+
597649
msgctxt "comment"
598650
msgid "(edited)"
599651
msgstr "(redigeret)"

0 commit comments

Comments
 (0)