Skip to content

Commit 03f8d86

Browse files
committed
Add translation and improve a11y
1 parent ed94902 commit 03f8d86

File tree

7 files changed

+65
-10
lines changed

7 files changed

+65
-10
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2+
<xliff version="1.0">
3+
<file source-language="en" datatype="plaintext" original="messages" date="2014-07-17T12:47:06Z"
4+
product-name="filecollection_gallery">
5+
<header/>
6+
<body>
7+
<trans-unit id="pagination_first">
8+
<source>First</source>
9+
<target>Erste</target>
10+
</trans-unit>
11+
<trans-unit id="pagination_last">
12+
<source>Last</source>
13+
<target>Letzte</target>
14+
</trans-unit>
15+
<trans-unit id="pagination_previous">
16+
<source>&lt;</source>
17+
</trans-unit>
18+
<trans-unit id="pagination_next">
19+
<source>&gt;</source>
20+
</trans-unit>
21+
<trans-unit id="back_to_gallery_selection">
22+
<source>Back to gallery selection</source>
23+
<target>Zurück zur Galerie-Auswahl</target>
24+
</trans-unit>
25+
26+
<trans-unit id="error.noGallerySelected">
27+
<source>No gallery selected</source>
28+
</trans-unit>
29+
<trans-unit id="btn.download">
30+
<source>Download</source>
31+
<target>Herunterladen</target>
32+
</trans-unit>
33+
<trans-unit id="btn.download_image">
34+
<source>Download image "%s"</source>
35+
<target>Das Bild "%s" herunterladen</target>
36+
</trans-unit>
37+
<trans-unit id="btn.maximize">
38+
<source>Maximize in lightbox</source>
39+
<target>Maximiere in einer Lightbox</target>
40+
</trans-unit>
41+
42+
<trans-unit id="image.download.alt">
43+
<source>Download</source>
44+
<target>Herunterladen</target>
45+
</trans-unit>
46+
</body>
47+
</file>
48+
</xliff>

Resources/Private/Language/locallang.xlf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
22
<xliff version="1.0">
33
<file source-language="en" datatype="plaintext" original="messages" date="2014-07-17T12:47:06Z"
4-
product-name="sf-filecollection-gallery">
4+
product-name="filecollection_gallery">
55
<header/>
66
<body>
77
<trans-unit id="pagination_first">
@@ -26,9 +26,16 @@
2626
<trans-unit id="btn.download">
2727
<source>Download</source>
2828
</trans-unit>
29+
<trans-unit id="btn.download_image">
30+
<source>Download image "%s"</source>
31+
</trans-unit>
2932
<trans-unit id="btn.maximize">
3033
<source>Maximize in lightbox</source>
3134
</trans-unit>
35+
36+
<trans-unit id="image.download.alt">
37+
<source>Download</source>
38+
</trans-unit>
3239
</body>
3340
</file>
3441
</xliff>

Resources/Private/Language/locallang_be.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
22
<xliff version="1.0">
3-
<file source-language="en" datatype="plaintext" original="messages" date="2014-07-17T12:47:06Z" product-name="sf-filecollection-gallery">
3+
<file source-language="en" datatype="plaintext" original="messages" date="2014-07-17T12:47:06Z" product-name="filecollection_gallery">
44
<header/>
55
<body>
66
<trans-unit id="flexforms_tab.settings">

Resources/Private/Partials/Gallery.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ <h2>{galleryListName}</h2>
2929
<f:image class="fc-gallery__item__thumbnail" image="{mediaItem}" maxWidth="{settings.mobile.image.maxWidth}" />
3030

3131
<f:if condition="{settings.downloadButton}">
32-
<f:link.file class="fc-gallery__download-btn" download="1" file="{mediaItem}">
33-
<f:image loading="lazy" title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Languages/locallang.xlf:btn.download')}" src="EXT:filecollection_gallery/Resources/Public/Images/download-solid.svg" />
32+
<f:link.file aria-label="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download_image', arguments: '{0:mediaItem.properties.title}')}" class="fc-gallery__download-btn" download="1" file="{mediaItem}">
33+
<f:image alt="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:image.download.alt')}" loading="lazy" title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Languages/locallang.xlf:btn.download')}" src="EXT:filecollection_gallery/Resources/Public/Images/download-solid.svg" />
3434
</f:link.file>
3535
</f:if>
3636

@@ -59,8 +59,8 @@ <h2>{galleryListName}</h2>
5959
</div>
6060
</a>
6161
<f:if condition="{settings.downloadButton}">
62-
<f:link.file title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download')}" class="fc-gallery__download-btn" download="1" file="{mediaItem}">
63-
<f:image title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download')}" src="EXT:filecollection_gallery/Resources/Public/Images/download-solid.svg" />
62+
<f:link.file aria-label="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download_image', arguments: '{0:mediaItem.properties.title}')}" title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download')}" class="fc-gallery__download-btn" download="1" file="{mediaItem}">
63+
<f:image alt="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:image.download.alt')}" title="{f:translate(key: 'LLL:EXT:filecollection_gallery/Resources/Private/Language/locallang.xlf:btn.download')}" src="EXT:filecollection_gallery/Resources/Public/Images/download-solid.svg" />
6464
</f:link.file>
6565
</f:if>
6666

Resources/Private/Templates/Gallery/ListFromFolder.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2>{galleryFolderName}</h2>
1717
<f:for each="{paginatedObject}" as="object">
1818
<f:if condition="{settings.enableLightbox}">
1919
<f:then>
20-
<div class="sf-filecollection-gallery-image-container">
20+
<div class="filecollection_gallery-image-container">
2121
<a rel="{settings.lightbox}" class="{settings.lightbox}" title="{object.properties.title}"
2222
href="{f:uri.image(src:'{object.uid}', treatIdAsReference:0, maxWidth:'{settings.image.lightboxWidth}')}">
2323
<f:image image="{object}" width="{settings.image.width}" height="{settings.image.height}"
@@ -32,7 +32,7 @@ <h2>{galleryFolderName}</h2>
3232
</div>
3333
</f:then>
3434
<f:else>
35-
<div class="sf-filecollection-gallery-image-container">
35+
<div class="filecollection_gallery-image-container">
3636
<f:image image="{object}" width="{settings.image.width}" height="{settings.image.height}" alt="{object.properties.alternative}"
3737
title="{object.properties.title}"/>
3838
<f:if condition="{object.properties.description}">

Resources/Private/Templates/Gallery/Nested.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<f:section name="main">
66
<f:if condition="{imageItems}">
77
<f:for each="{paginatedObject}" as="object">
8-
<div class="sf-filecollection-gallery-image-container">
8+
<div class="filecollection_gallery-image-container">
99
<f:link.action action="list" arguments="{galleryUID : object.galleryUID}" title="{object.properties.title}">
1010
<f:image image="{object}" width="{settings.image.width}" height="{settings.image.height}"
1111
alt="{object.properties.alternative}"

Resources/Private/Templates/Gallery/NestedFromFolder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<f:section name="main">
66
<f:if condition="{imageItems}">
77
<f:for each="{paginatedObject}" as="object">
8-
<div class="sf-filecollection-gallery-image-container">
8+
<div class="filecollection_gallery-image-container">
99
<f:link.action action="listFromFolder" arguments="{galleryFolder: object.galleryFolder, galleryUID: object.galleryUID}" title="{object.properties.title}">
1010
<f:image image="{object}" width="{settings.image.width}" height="{settings.image.height}"
1111
alt="{object.properties.alternative}"

0 commit comments

Comments
 (0)