Skip to content

Commit

Permalink
UHF-9067: Add changes to daycare, high school, vocational school, pla…
Browse files Browse the repository at this point in the history
…yground and after school activity search result labels
  • Loading branch information
teroelonen committed Jan 9, 2024
1 parent a99342c commit 5f438e8
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@

<div class="unit-search__results">
{% if total_rows %}
<span class="unit-search__count-container">
<span class="unit-search__count">{{ total_rows }}</span>
{% trans with {'context': 'After-school activity search count'}%}location{% plural total_rows %}locations{% endtrans %}
</span>
<h3 class="unit-search__count-container">
{{ total_rows }} {% trans with {'context': 'After-school activity search count'}%}activity location{% plural total_rows %}activity locations{% endtrans %}
</h3>
{% endif %}

{% if header %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@
{{ attachment_before }}

<div class="unit-search__results" data-id-number="{{ dom_id }}">
<span class="unit-search__count-container">
<span class="unit-search__count">{{ total_rows }}</span>
{% trans with {'context': 'Daycare search count'}%}location{% plural total_rows %}locations{% endtrans %}
</span>
<h3 class="unit-search__count-container">
{{ total_rows }} {% trans with {'context': 'Daycare search count'}%}daycare centre{% plural total_rows %}daycare centres{% endtrans %}
</h3>

{% if header %}
{{ header }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@

<div class="unit-search__results" data-drupal-selector="tabbed-content" data-id-number="{{ dom_id }}">
<div class="unit-search__result-actions">
<span class="unit-search__count-container">
<span class="unit-search__count">{{ total_rows }}</span>
{% trans with {'context': 'High school search count'}%}general upper secondary school{% plural total_rows %}general upper secondary schools{% endtrans %}
</span>
<h3 class="unit-search__count-container">
{{ total_rows }} {% trans with {'context': 'High school search count'}%}general upper secondary school{% plural total_rows %}general upper secondary schools{% endtrans %}
</h3>
<div class="tabs tabs--unit-search"
role="tablist"
aria-label="{{ 'Toggle between list and map view'|t({}, {'context': 'Tab-list of unit-search'}) }}">
Expand All @@ -72,13 +71,13 @@
id="tab-1--{{ dom_id }}"
role="tab"
aria-selected="false"
aria-controls="tab-1__content--{{ dom_id }}">{{ 'Show results as a list'|t }}</button>
aria-controls="tab-1__content--{{ dom_id }}">{{ 'View as a list'|t }}</button>
<button class="tab tab--map"
data-drupal-selector="tab-2--{{ dom_id }}"
id="tab-2--{{ dom_id }}"
role="tab"
aria-selected="false"
aria-controls="tab-2__content--{{ dom_id }}">{{ 'Show results on a map'|t }}</button>
aria-controls="tab-2__content--{{ dom_id }}">{{ 'View in a map'|t }}</button>
</div>
</div>
<div class="tab__content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@

<div class="unit-search__results" data-id-number="{{ dom_id }}">
{% if total_rows %}
<span class="unit-search__count-container">
<span class="unit-search__count">{{ total_rows }}</span>
{% trans with {'context': 'Playground search count'}%}location{% plural total_rows %}locations{% endtrans %}
</span>
<h3 class="unit-search__count-container">
{{ total_rows }} {% trans with {'context': 'Playground search count'}%}playground or family house{% plural total_rows %}playgrounds or family houses{% endtrans %}
</h3>
{% endif %}

{% if header %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
{{ attachment_before }}

<div class="unit-search__results" data-id-number="{{ dom_id }}">
<span class="unit-search__count-container">
<span class="unit-search__count">{{ total_rows }}</span>
{% trans with {'context': 'Vocational school search count'}%}unit{% plural total_rows %}units{% endtrans %}
</span>
<h3 class="unit-search__count-container">
{{ total_rows }} {% trans with {'context': 'Vocational school search count'}%}unit{% plural total_rows %}units{% endtrans %}
</h3>

<div class="unit-search__result--list">
{{ rows }}
Expand Down
32 changes: 16 additions & 16 deletions public/themes/custom/hdbt_subtheme/translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ msgid_plural "units"
msgstr[0] "toimipaikka"
msgstr[1] "toimipaikkaa"

msgid "Show results on a map"
msgstr "Näytä tulokset kartalla"
msgid "View in a map"
msgstr "Näytä kartalla"

msgid "Show results as a list"
msgstr "Näytä tulokset listana"
msgid "View as a list"
msgstr "Näytä listana"

msgid "Open large version of the map"
msgstr "Avaa suurempi versio kartasta"

msgctxt "Daycare search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "toimipaikka"
msgstr[1] "toimipaikkaa"
msgid "daycare centre"
msgid_plural "daycare centres"
msgstr[0] "päiväkoti"
msgstr[1] "päiväkotia"

msgctxt "After-school activity search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "toimipaikka"
msgstr[1] "toimipaikkaa"
msgid "activity location"
msgid_plural "activity locations"
msgstr[0] "toimintapaikka"
msgstr[1] "toimintapaikkaa"

msgctxt "Playground search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "toimipaikka"
msgstr[1] "toimipaikkaa"
msgid "playground or family house"
msgid_plural "playgrounds or family houses"
msgstr[0] "leikkipuisto tai perhetalo"
msgstr[1] "leikkipuistoa tai perhetaloa"

msgctxt "Group news archive link"
msgid "All news"
Expand Down
32 changes: 16 additions & 16 deletions public/themes/custom/hdbt_subtheme/translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ msgid_plural "units"
msgstr[0] "enhet"
msgstr[1] "enheter"

msgid "Show results on a map"
msgstr "Visa resultat en karta"
msgid "View in a map"
msgstr "Visa på kartan"

msgid "Show results as a list"
msgstr "Visa resultat på en lista"
msgid "View as a list"
msgstr "Visa som lista"

msgid "Open large version of the map"
msgstr "Öppna den stora versionen av kartan"

msgctxt "Daycare search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "enhet"
msgstr[1] "enheter"
msgid "daycare centre"
msgid_plural "daycare centres"
msgstr[0] "daghem"
msgstr[1] "daghem"

msgctxt "After-school activity search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "enhet"
msgstr[1] "enheter"
msgid "activity location"
msgid_plural "activity locations"
msgstr[0] "verksamhetsställe"
msgstr[1] "verksamhetsställen"

msgctxt "Playground search count"
msgid "location"
msgid_plural "locations"
msgstr[0] "enhet"
msgstr[1] "enheter"
msgid "playground or family house"
msgid_plural "playgrounds or family houses"
msgstr[0] "lekpark eller familjehus"
msgstr[1] "lekparker eller familjehus"

msgctxt "Group news archive link"
msgid "All news"
Expand Down

0 comments on commit 5f438e8

Please sign in to comment.