From 40c7f7fc6bc2f1e1efed5f5f13e3eaf0e330cab6 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Mon, 11 Mar 2024 14:38:58 +0300 Subject: [PATCH] Update collection header Signed-off-by: Olga Bulat --- .../VCollectionHeader/VCollectionHeader.vue | 133 +++++---- frontend/src/components/VCollectionPage.vue | 2 +- .../components/VMediaInfo/VByLine/VByLine.vue | 255 +---------------- frontend/src/components/VScrollableLine.vue | 267 ++++++++++++++++++ frontend/src/locales/scripts/en.json5 | 17 +- frontend/test/locales/ar.json | 25 ++ 6 files changed, 396 insertions(+), 303 deletions(-) create mode 100644 frontend/src/components/VScrollableLine.vue diff --git a/frontend/src/components/VCollectionHeader/VCollectionHeader.vue b/frontend/src/components/VCollectionHeader/VCollectionHeader.vue index 71b667a342c..d121e0eee0b 100644 --- a/frontend/src/components/VCollectionHeader/VCollectionHeader.vue +++ b/frontend/src/components/VCollectionHeader/VCollectionHeader.vue @@ -1,13 +1,18 @@ - - diff --git a/frontend/src/components/VScrollableLine.vue b/frontend/src/components/VScrollableLine.vue new file mode 100644 index 00000000000..f49fcb292f3 --- /dev/null +++ b/frontend/src/components/VScrollableLine.vue @@ -0,0 +1,267 @@ + + + + + diff --git a/frontend/src/locales/scripts/en.json5 b/frontend/src/locales/scripts/en.json5 index 6a79aaab831..bd548d490a1 100644 --- a/frontend/src/locales/scripts/en.json5 +++ b/frontend/src/locales/scripts/en.json5 @@ -775,6 +775,11 @@ }, }, collection: { + heading: { + tag: "Tag", + creator: "Creator", + source: "Source", + }, link: { source: "Open source site", creator: "Open creator page", @@ -796,14 +801,14 @@ resultCountLabel: { creator: { audio: { - zero: "No audio files by this creator in {source}", - count: "{count} audio file by this creator in {source}|{count} audio files by this creator in {source}", - countMore: "Over {count} audio files by this creator in {source}", + zero: "No audio files by this creator.", + count: "{count} audio file by this creator.|{count} audio files by this creator.", + countMore: "Over {count} audio files by this creator.", }, image: { - zero: "No images by this creator in {source}", - count: "{count} image by this creator in {source}|{count} images by this creator in {source}", - countMore: "Over {count} images by this creator in {source}", + zero: "No images by this creator.", + count: "{count} image by this creator.|{count} images by this creator.", + countMore: "Over {count} images by this creator.", }, }, source: { diff --git a/frontend/test/locales/ar.json b/frontend/test/locales/ar.json index 2bdcd915e08..0f7677be5c4 100644 --- a/frontend/test/locales/ar.json +++ b/frontend/test/locales/ar.json @@ -701,6 +701,31 @@ "none": "لا توجد عمليات بحث حديثة لعرضها.", "disclaimer": "لا يقوم Openverse بتخزين عمليات البحث الأخيرة ، يتم الاحتفاظ بهذه المعلومات محليًا في متصفحك." }, + "collection": { + "heading": { + "tag": "الكلمات الدلالية", + "creator": "مبتدع", + "source": "منشأ" + }, + "link": { + "source": "موقع مفتوح المصدر", + "creator": "افتح صفحة المنشئ" + }, + "ariaLabel": { + "creator": { + "audio": "الملفات الصوتية بواسطة {creator}", + "image": "الصور عن طريق {creator}" + }, + "source": { + "audio": "ملفات صوتية من {source}", + "image": "الصور عن طريق {source}" + }, + "tag": { + "audio": "الملفات الصوتية مع العلامة {tag}", + "image": "الصور التي تحمل الوسم {tag}" + } + } + }, "unknownError": { "heading": "عفوًا ، يبدو أنه حدث خطأ ما. حاول مرة اخرى." }