]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Make table texts translatable - reported by Sergey Zhidkov
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 9 Jul 2021 18:00:29 +0000 (20:00 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Fri, 9 Jul 2021 18:00:29 +0000 (20:00 +0200)
23 files changed:
gui/baculum/protected/API/Lang/en/messages.mo
gui/baculum/protected/API/Lang/en/messages.po
gui/baculum/protected/API/Lang/pl/messages.mo
gui/baculum/protected/API/Lang/pl/messages.po
gui/baculum/protected/API/Lang/pt/messages.mo
gui/baculum/protected/API/Lang/pt/messages.po
gui/baculum/protected/API/Lang/ru/messages.mo
gui/baculum/protected/API/Lang/ru/messages.po
gui/baculum/protected/API/Layouts/Main.tpl
gui/baculum/protected/Common/Portlets/TableDefaults.php [new file with mode: 0644]
gui/baculum/protected/Common/Portlets/TableDefaults.tpl [new file with mode: 0644]
gui/baculum/protected/Web/Lang/en/messages.mo
gui/baculum/protected/Web/Lang/en/messages.po
gui/baculum/protected/Web/Lang/ja/messages.mo
gui/baculum/protected/Web/Lang/ja/messages.po
gui/baculum/protected/Web/Lang/pl/messages.mo
gui/baculum/protected/Web/Lang/pl/messages.po
gui/baculum/protected/Web/Lang/pt/messages.mo
gui/baculum/protected/Web/Lang/pt/messages.po
gui/baculum/protected/Web/Lang/ru/messages.mo
gui/baculum/protected/Web/Lang/ru/messages.po
gui/baculum/protected/Web/Layouts/Main.tpl
gui/baculum/protected/Web/Layouts/Wizard.tpl

index b3e13834449b16358c54e622643edd7319cca63b..5dd6c02695342e8ac2e81d0ca20b46506b24a451 100644 (file)
Binary files a/gui/baculum/protected/API/Lang/en/messages.mo and b/gui/baculum/protected/API/Lang/en/messages.mo differ
index 05cbdd01c0f0eb9f779b3274f459e42badf91e24..a4c21f978ed42f10bd02b5b000f878a732a1095d 100644 (file)
@@ -637,3 +637,40 @@ msgstr "Changer command test:"
 
 msgid "Changer command error"
 msgstr "Changer command error"
+
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
+
+msgid "Search:"
+msgstr "Search:"
+
index 16c8a880016f892f19d192878a5c2176707e0b7e..2d4d6ca5cefa2ac6ab6eee28bda31c9fa28c50dd 100644 (file)
Binary files a/gui/baculum/protected/API/Lang/pl/messages.mo and b/gui/baculum/protected/API/Lang/pl/messages.mo differ
index d8ae58a95932f526316008ee62d417b76274fafa..c38d3bbe5d1f74aeefce7d82802ecbb50b1d8ab7 100644 (file)
@@ -644,3 +644,38 @@ msgstr "Test komendy zmieniarki:"
 msgid "Changer command error"
 msgstr "Błąd komendy zmieniarki"
 
+msgid "Copy"
+msgstr "Kopiuj"
+
+msgid "Column visibility"
+msgstr "Widoczność kolumn"
+
+msgid "1 row selected"
+msgstr "Wybrano 1 wiersz"
+
+msgid "%d rows selected"
+msgstr "Wybrano %d wierszy"
+
+msgid "Show _MENU_ entries"
+msgstr "Pokaż _MENU_ wierszy"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Wiersze od _START_ do _END_ z _TOTAL_"
+
+msgid "First"
+msgstr "Pierwsza"
+
+msgid "Last"
+msgstr "Ostatnia"
+
+msgid "No matching records found"
+msgstr "Nie znaleziono pasujących wierszy"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "odfiltrowane z _MAX_ wszystkich wierszy"
+
+msgid "No data available in table"
+msgstr "Brak dostępnych danych w tabeli"
+
+msgid "Search:"
+msgstr "Szukaj:"
index bcbe274dca6c6cca478e16fbcd586afdaa7886ba..fe38f8f172ce3fb4a11b2d0966791a6ee1620844 100644 (file)
Binary files a/gui/baculum/protected/API/Lang/pt/messages.mo and b/gui/baculum/protected/API/Lang/pt/messages.mo differ
index c6e97796cab95857b55a667d7dcb237a63060707..4fde103a6bff5b68f05edd8bcea871e0ec9ab339 100644 (file)
@@ -644,3 +644,38 @@ msgstr "Teste de comando do trocador:"
 msgid "Changer command error"
 msgstr "Erro de comando do trocador"
 
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
+
+msgid "Search:"
+msgstr "Search:"
index 8746655010eff549a6963e088cb60efa82c37ebe..e5d215e314c7b14ebdafde0eb0253542ee811f4b 100644 (file)
Binary files a/gui/baculum/protected/API/Lang/ru/messages.mo and b/gui/baculum/protected/API/Lang/ru/messages.mo differ
index 2a6da35734cf1f6d7ec214f9af8de76bc0de5cd6..5df7f73292a7ac640df5cf4ea1a2380df998a0d9 100644 (file)
@@ -644,3 +644,38 @@ msgstr "Тест команды чейнджера:"
 msgid "Changer command error"
 msgstr "Чейнджер ошибка команды"
 
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
+
+msgid "Search:"
+msgstr "Search:"
index d7821667e69df4d3edff799f0187e08c385492ac..7ca7e4315860611fb2e5aa9b75886d447c4d1998 100644 (file)
@@ -17,6 +17,7 @@
                        <com:BClientScript ScriptUrl=<%~ ../../Common/JavaScript/buttons.colVis.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../../Common/JavaScript/dataTables.select.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../../Common/JavaScript/misc.js %> />
+                       <com:Application.Common.Portlets.TableDefaults />
                        <!-- Top container -->
                        <div class="w3-bar w3-top w3-black w3-large" style="z-index: 4">
                                <button type="button" class="w3-bar-item w3-button w3-hover-none w3-hover-text-light-grey" onclick="W3SideBar.open();"><i class="fa fa-bars"></i>  Menu</button>
diff --git a/gui/baculum/protected/Common/Portlets/TableDefaults.php b/gui/baculum/protected/Common/Portlets/TableDefaults.php
new file mode 100644 (file)
index 0000000..e045c33
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Bacula(R) - The Network Backup Solution
+ * Baculum   - Bacula web interface
+ *
+ * Copyright (C) 2013-2021 Kern Sibbald
+ *
+ * The main author of Baculum is Marcin Haba.
+ * The original author of Bacula is Kern Sibbald, with contributions
+ * from many others, a complete list can be found in the file AUTHORS.
+ *
+ * You may use this file and others of this release according to the
+ * license defined in the LICENSE file, which includes the Affero General
+ * Public License, v3.0 ("AGPLv3") and some additional permissions and
+ * terms pursuant to its AGPLv3 Section 7.
+ *
+ * This notice must be preserved when any source code is
+ * conveyed and/or propagated.
+ *
+ * Bacula(R) is a registered trademark of Kern Sibbald.
+ */
+
+Prado::using('Application.Common.Portlets.PortletTemplate');
+
+/**
+ * Table default options control.
+ *
+ * @author Marcin Haba <marcin.haba@bacula.pl>
+ * @category Control
+ * @package Baculum Common
+ */
+class TableDefaults extends PortletTemplate {
+}
diff --git a/gui/baculum/protected/Common/Portlets/TableDefaults.tpl b/gui/baculum/protected/Common/Portlets/TableDefaults.tpl
new file mode 100644 (file)
index 0000000..b6a0458
--- /dev/null
@@ -0,0 +1,29 @@
+<script>
+var TABLE_TRANSLATIONS = {
+       lengthMenu: '<%[ Show _MENU_ entries ]%>',
+       search: '<%[ Search: ]%>',
+       info: "<%[ Showing _START_ to _END_ of _TOTAL_ entries ]%>",
+       zeroRecords: '<%[ No matching records found ]%>',
+       infoFiltered: '(<%[ filtered from _MAX_ total entries ]%>)',
+       emptyTable: '<%[ No data available in table ]%>',
+       buttons: {
+               copy: '<%[ Copy ]%>',
+               colvis: '<%[ Column visibility ]%>'
+       },
+       select: {
+               rows: {
+                       _: '<%[ %d rows selected ]%>',
+                       1: '<%[ 1 row selected ]%>'
+               }
+       },
+       paginate: {
+               first: '<%[ First ]%>',
+               previous: '<%[ Previous ]%>',
+               next: '<%[ Next ]%>',
+               last: '<%[ Last ]%>'
+       }
+};
+$.extend(true, $.fn.dataTable.defaults, {
+       language: TABLE_TRANSLATIONS
+});
+</script>
index 741e68b627776cb6e7c32b237f26e0033de5bfca..5e57a3c5f16e1f9ab7eb59cce764e0ecd7398b4d 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/en/messages.mo and b/gui/baculum/protected/Web/Lang/en/messages.mo differ
index cfe53407db4449af621e6bd378b6661f4e3bd59e..6b43ae34931b32b747645426bc9168f0694c5c52 100644 (file)
@@ -3418,3 +3418,36 @@ msgstr "Jobs running"
 
 msgid "Jobs canceled"
 msgstr "Jobs canceled"
+
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
index 1e93d2ca56f307febf5419eef264035a01146443..126c05a7d22dedd8b0a247698d42150c0e6e6181 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/ja/messages.mo and b/gui/baculum/protected/Web/Lang/ja/messages.mo differ
index 2aa489a0b3ac1183d25c419614c8a096d002c97a..f47531b4f79ae9f000eecc99e989469b8709ec18 100644 (file)
@@ -3504,3 +3504,36 @@ msgstr "Jobs running"
 
 msgid "Jobs canceled"
 msgstr "Jobs canceled"
+
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
index 0f1329e8467cd7c073815af3b43cae0d7293f689..7f72335829068cc0bf1dbd53b2c1e7e78cd65035 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pl/messages.mo and b/gui/baculum/protected/Web/Lang/pl/messages.mo differ
index 284a0a93e925f724658068f876bd3725093e1915..b55509c7f19eb94612398e76c41a1c905199e5d0 100644 (file)
@@ -3428,3 +3428,36 @@ msgstr "Zadania uruchomione"
 
 msgid "Jobs canceled"
 msgstr "Zadania anulowane"
+
+msgid "Copy"
+msgstr "Kopiuj"
+
+msgid "Column visibility"
+msgstr "Widoczność kolumn"
+
+msgid "1 row selected"
+msgstr "Wybrano 1 wiersz"
+
+msgid "%d rows selected"
+msgstr "Wybrano %d wierszy"
+
+msgid "Show _MENU_ entries"
+msgstr "Pokaż _MENU_ wierszy"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Wiersze od _START_ do _END_ z _TOTAL_"
+
+msgid "First"
+msgstr "Pierwsza"
+
+msgid "Last"
+msgstr "Ostatnia"
+
+msgid "No matching records found"
+msgstr "Nie znaleziono pasujących wierszy"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "odfiltrowane z _MAX_ wszystkich wierszy"
+
+msgid "No data available in table"
+msgstr "Brak dostępnych danych w tabeli"
index 464bbd021241c7f521b8b0ea92cdda0fc909745b..450fb6a30181f9ef596a72b4a1998e862203a0d7 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pt/messages.mo and b/gui/baculum/protected/Web/Lang/pt/messages.mo differ
index c29be76d8d6351ae53cd241e60d394a53af133c9..41b15da43926f21d784a012f4f9c80a63dade04c 100644 (file)
@@ -3428,3 +3428,36 @@ msgstr "Jobs running"
 
 msgid "Jobs canceled"
 msgstr "Jobs canceled"
+
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
index daf5f1346399cf4a1c0acea16fda5c47523ade08..4e995a5ac4081defe06186e320e95d02017961ac 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/ru/messages.mo and b/gui/baculum/protected/Web/Lang/ru/messages.mo differ
index 2e813ffa7c96cb0da95430837e50a250f4efd5ae..2dff3a23f4f5de9748a52974abb9298e2b3767f0 100644 (file)
@@ -3428,3 +3428,35 @@ msgstr "Детали консоли"
 msgid "Configure console"
 msgstr "Настройка консоли"
 
+msgid "Copy"
+msgstr "Copy"
+
+msgid "Column visibility"
+msgstr "Column visibility"
+
+msgid "1 row selected"
+msgstr "1 row selected"
+
+msgid "%d rows selected"
+msgstr "%d rows selected"
+
+msgid "Show _MENU_ entries"
+msgstr "Show _MENU_ entries"
+
+msgid "Showing _START_ to _END_ of _TOTAL_ entries"
+msgstr "Showing _START_ to _END_ of _TOTAL_ entries"
+
+msgid "First"
+msgstr "First"
+
+msgid "Last"
+msgstr "Last"
+
+msgid "No matching records found"
+msgstr "No matching records found"
+
+msgid "filtered from _MAX_ total entries"
+msgstr "filtered from _MAX_ total entries"
+
+msgid "No data available in table"
+msgstr "No data available in table"
index 6dec2ea794348be25cc9d0d0808162f06c4195b5..f7c4f33c9a343d9def3abc9d35cbcb9a343c1100 100644 (file)
@@ -23,6 +23,7 @@
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/graph.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/statistics.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/gauge.js %> />
+                       <com:Application.Common.Portlets.TableDefaults />
                        <!-- Top container -->
                        <div class="w3-bar w3-top w3-black w3-large" style="z-index:4">
                                <button type="button" class="w3-bar-item w3-button w3-hover-none w3-hover-text-light-grey" onclick="W3SideBar.open();"><i class="fa fa-bars"></i>  Menu</button>
index 467daa8ae39bdeb7603f4ac5616794722afa077b..cac1670ab21ea96cb571b3bd56d4dbddead05eae 100644 (file)
@@ -24,6 +24,7 @@
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/tooltip.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/misc.js %> />
                        <com:BClientScript ScriptUrl=<%~ ../JavaScript/bacula-config.js %> />
+                       <com:Application.Common.Portlets.TableDefaults />
                        <!-- Top container -->
                                <com:TContentPlaceHolder ID="Wizard" />
                </com:TForm>