Skip to content

Commit

Permalink
Translations and a test data for a one resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
siiriylonen committed Jan 14, 2025
1 parent 20fe5f0 commit a14dd13
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions local/languages/finna/en-gb.ini
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ place_id_type_mjr = "Ancient Relics Register"
place_id_type_rpr = "Built Heritage Register"
Place of Origin = "Place of Origin"
Place of Storage = "Place of storage"
Play recording = "Play recording"
Playing Time = "Playing Time"
Polytechnic Libraries = "University of applied sciences libraries"
Post Comment = "to post a comment."
Expand Down
1 change: 1 addition & 0 deletions local/languages/finna/fi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ place_id_type_mjr = "muinaisjäännösrekisteri"
place_id_type_rpr = "rakennusperintörekisteri"
Place of Origin = "Luontipaikka"
Place of Storage = "Säilytyspaikka"
Play recording = "Toista äänite"
Playing Time = "Kesto"
Polytechnic Libraries = "AMK-kirjastot"
Post Comment = "lisätäksesi kommentin."
Expand Down
1 change: 1 addition & 0 deletions local/languages/finna/sv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ place_type_id_mjr = "fornminnesregistret"
place_type_id_rpr = "byggnadsminnesregistret"
Place of Origin = "Tillkomstort"
Place of Storage = "Bevarandeplats"
Play recording = "Spela upp inspelning"
Playing Time = "Speltid"
Polytechnic Libraries = "Yrkeshögskolornas bibliotek"
Post Comment = "att posta kommentar."
Expand Down
9 changes: 9 additions & 0 deletions module/Finna/tests/fixtures/lido/lido_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,15 @@
<resourceDescription type="displayLink">VideoTesti.mp4</resourceDescription>
<resourceRepresentation type="preview_video">
<linkResource formatResource="mp4">https://linkkivideoon.fi</linkResource>
<resourceMeasurementsSet>
<measurementType lang="fi">koko</measurementType>
<measurementType lang="en">size</measurementType>
<measurementType lang="sv">storlek</measurementType>
<measurementUnit lang="fi">tavua</measurementUnit>
<measurementUnit lang="en">byte</measurementUnit>
<measurementUnit lang="sv">byte</measurementUnit>
<measurementValue>74576596</measurementValue>
</resourceMeasurementsSet>
</resourceRepresentation>
</resourceSet>
<resourceSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ public static function getRepresentationsData(): array
'type' => 'video/mp4',
],
'resourceName' => 'VideoTesti.mp4',
'data' => [],
'data' => [
'size' => [
'unit' => 'byte',
'value' => '74576596',
],
],
],
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
</div>
<div class="audio-accordion-item">
<a class="play" tabindex="0" aria-label="Toista äänite">
<a class="play" tabindex="0" aria-label="<?=$this->transEsc('Play recording')?>">
<?=$this->icon('audio-play') ?>
</a>
<div class="audio-player-wrapper hide">
Expand Down

0 comments on commit a14dd13

Please sign in to comment.