Browse code

Multi language badges for file vault

Benjamin Roth authored on22/10/2025 15:07:12
Showing3 changed files
... ...
@@ -18,3 +18,5 @@ $GLOBALS['TL_LANG']['CTE'][SecureDownloadsController::TYPE][1] = 'Sichere Downlo
18 18
  */
19 19
 $GLOBALS['TL_LANG']['MSC']['gotoPage'] = 'Zur Seite "%s"';
20 20
 $GLOBALS['TL_LANG']['MSC']['edit'] = 'Bearbeiten';
21
+$GLOBALS['TL_LANG']['MSC']['dl_new'] = 'Neu';
22
+$GLOBALS['TL_LANG']['MSC']['dl_opened'] = 'Geöffnet';
... ...
@@ -13,4 +13,6 @@
13 13
  */
14 14
 $GLOBALS['TL_LANG']['MSC']['gotoPage'] = 'Open page "%s"';
15 15
 $GLOBALS['TL_LANG']['MSC']['edit'] = 'Edit';
16
+$GLOBALS['TL_LANG']['MSC']['dl_new'] = 'New';
17
+$GLOBALS['TL_LANG']['MSC']['dl_opened'] = 'Opened';
16 18
 
... ...
@@ -18,9 +18,9 @@
18 18
                             <span class="file-date">{{ file.mtime|date("d.m.Y") }}</span>
19 19
                             <span class="file-size">({{ file.filesize }})</span>
20 20
                             {% if file.opened == 0 %}
21
-                                <span class="badge badge-new">New</span>
21
+                                <span class="badge badge-new">{{ 'MSC.dl_new'|trans([], 'contao_default') }}</span>
22 22
                             {% else %}
23
-                                <span class="file-opened">✓ Opened</span>
23
+                                <span class="file-opened">✓ {{ 'MSC.dl_opened'|trans([], 'contao_default') }}</span>
24 24
                             {% endif %}
25 25
                         </span>
26 26
                     </span>