Skip to content

Commit

Permalink
[import] add measurement replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky committed Dec 20, 2024
1 parent f4d572e commit 19a6c4b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lang/cs/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
'vp=' => 'výška s paspartou ',
'vp.=' => 'výška s paspartou ',
'vr=' => 'výška s rámem ',
'rv.=' => 'výška s rámem ',
'rš.=' => 'šířka s rámem ',
'v-cm=' => 'výška ',
'š-cm=' => 'šířka ',
],
'untitled' => 'bez názvu',
'authority_roles' => [
Expand Down
4 changes: 4 additions & 0 deletions lang/en/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@
'vp=' => 'height with mount ',
'vp.=' => 'height with mount ',
'vr=' => 'height with frame ',
'rv.=' => 'height with frame ',
'rš.=' => 'width with frame ',
'v-cm=' => 'height ',
'š-cm=' => 'width ',
],
'untitled' => 'untitled',
'authority_roles' => [
Expand Down
4 changes: 4 additions & 0 deletions lang/sk/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@
'vp=' => 'výška s paspartou ',
'vp.=' => 'výška s paspartou ',
'vr=' => 'výška s rámom ',
'rv.=' => 'výška s rámom ',
'rš.=' => 'šírka s rámom ',
'v-cm=' => 'výška ',
'š-cm=' => 'šírka ',
],
'untitled' => 'bez názvu',
'authority_roles' => [
Expand Down
6 changes: 3 additions & 3 deletions tests/Importers/MmpImporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public function testImport()
$this->assertEquals(null, $item->translate('sk')->topic);
$this->assertEquals('obraz náboženský', $item->translate('cs')->topic);
$this->assertEquals(null, $item->translate('en')->topic);
$this->assertEquals('', $item->translate('sk')->measurement);
$this->assertEquals('', $item->translate('cs')->measurement);
$this->assertEquals('', $item->translate('en')->measurement);
$this->assertEquals('výška s rámom 31cm; šírka s rámom 21,5cm; výška 24,5cm; šírka 14,5cm', $item->translate('sk')->measurement);
$this->assertEquals('výška s rámem 31cm; šířka s rámem 21,5cm; výška 24,5cm; šířka 14,5cm', $item->translate('cs')->measurement);
$this->assertEquals('height with frame 31cm; width with frame 21,5cm; height 24,5cm; width 14,5cm', $item->translate('en')->measurement);
}

private function importData(array $data = []): ImportRecord
Expand Down

0 comments on commit 19a6c4b

Please sign in to comment.