added translations for all languages for DataTables

This commit is contained in:
dg9vh 2017-03-16 14:15:14 +00:00
parent b0c186a621
commit 8167b1cb73
11 changed files with 132 additions and 2 deletions

View file

@ -35,6 +35,7 @@ $totalLH = count($lastHeard);
<script>
$(document).ready(function(){
var lastHeardT = $('#lastHeard').dataTable( {
"language": <?php echo DATATABLESTRANSLATION; ?>,
"aaSorting": [[0,'desc']],
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
if (strpos($request,"index.php")> 0) {

View file

@ -41,6 +41,7 @@ $totalLH = count($lastHeard);
<script>
$(document).ready(function(){
var localTxT = $('#localTx').dataTable( {
"language": <?php echo DATATABLESTRANSLATION; ?>,
"aaSorting": [[0,'desc']],
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";

View file

@ -2,7 +2,7 @@
?>
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading"><?php _("YSFGateway-Infos"); ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-heading"><?php echo _("YSFGateway-Infos"); ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body">
<!-- Tabelle -->
<table class="table">
@ -64,6 +64,7 @@
<script>
$(document).ready(function(){
var ysfGatewaysT = $('#ysfGateways').dataTable( {
"language": <?php echo DATATABLESTRANSLATION; ?>,
"aaSorting": [[0,'asc']]
} );
});

View file

@ -3,4 +3,21 @@ define("LANG_NAME", "Danish");
define("LANG_LOCALE", "da_DK");
define("LANG", "da");
define("LANGCODE", "da");
define("DATATABLESTRANSLATION", '{
"sProcessing": "Henter...",
"sLengthMenu": "Vis _MENU_ linjer",
"sZeroRecords": "Ingen linjer matcher s&oslash;gningen",
"sInfo": "Viser _START_ til _END_ af _TOTAL_ linjer",
"sInfoEmpty": "Viser 0 til 0 af 0 linjer",
"sInfoFiltered": "(filtreret fra _MAX_ linjer)",
"sInfoPostFix": "",
"sSearch": "S&oslash;g:",
"sUrl": "",
"oPaginate": {
"sFirst": "F&oslash;rste",
"sPrevious": "Forrige",
"sNext": "N&aelig;ste",
"sLast": "Sidste"
}
}');
?>

View file

@ -3,4 +3,27 @@ define("LANG_NAME", "Deutsch");
define("LANG_LOCALE", "de_DE");
define("LANG", "de");
define("LANGCODE", "de");
define("DATATABLESTRANSLATION", '{
"sEmptyTable": "Keine Daten in der Tabelle vorhanden",
"sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen",
"sInfoEmpty": "0 bis 0 von 0 Einträgen",
"sInfoFiltered": "(gefiltert von _MAX_ Einträgen)",
"sInfoPostFix": "",
"sInfoThousands": ".",
"sLengthMenu": "_MENU_ Einträge anzeigen",
"sLoadingRecords": "Wird geladen...",
"sProcessing": "Bitte warten...",
"sSearch": "Suchen",
"sZeroRecords": "Keine Einträge vorhanden.",
"oPaginate": {
"sFirst": "Erste",
"sPrevious": "Zurück",
"sNext": "Nächste",
"sLast": "Letzte"
},
"oAria": {
"sSortAscending": ": aktivieren, um Spalte aufsteigend zu sortieren",
"sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
}
}');
?>

View file

@ -3,4 +3,27 @@ define("LANG_NAME", "English");
define("LANG_LOCALE", "en_GB");
define("LANG", "en");
define("LANGCODE", "en");
define("DATATABLESTRANSLATION", '{
"sEmptyTable": "No data available in table",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
"sInfoFiltered": "(filtered from _MAX_ total entries)",
"sInfoPostFix": "",
"sInfoThousands": ",",
"sLengthMenu": "Show _MENU_ entries",
"sLoadingRecords": "Loading...",
"sProcessing": "Processing...",
"sSearch": "Search:",
"sZeroRecords": "No matching records found",
"oPaginate": {
"sFirst": "First",
"sLast": "Last",
"sNext": "Next",
"sPrevious": "Previous"
},
"oAria": {
"sSortAscending": ": activate to sort column ascending",
"sSortDescending": ": activate to sort column descending"
}
}');
?>

View file

@ -3,4 +3,28 @@ define("LANG_NAME", "Spanish");
define("LANG_LOCALE", "es_ES");
define("LANG", "es");
define("LANGCODE", "es");
define("DATATABLESTRANSLATION", '{
"sProcessing": "Procesando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "No se encontraron resultados",
"sEmptyTable": "Ningún dato disponible en esta tabla",
"sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
"sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros",
"sInfoFiltered": "(filtrado de un total de _MAX_ registros)",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"sInfoThousands": ",",
"sLoadingRecords": "Cargando...",
"oPaginate": {
"sFirst": "Primero",
"sLast": "Último",
"sNext": "Siguiente",
"sPrevious": "Anterior"
},
"oAria": {
"sSortAscending": ": Activar para ordenar la columna de manera ascendente",
"sSortDescending": ": Activar para ordenar la columna de manera descendente"
}
}');
?>

View file

@ -3,4 +3,21 @@ define("LANG_NAME", "Português");
define("LANG_LOCALE", "pt_PT");
define("LANG", "pt");
define("LANGCODE", "pt");
define("DATATABLESTRANSLATION", '{
"sProcessing": "A processar...",
"sLengthMenu": "Mostrar _MENU_ registos",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registos",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registos",
"sInfoFiltered": "(filtrado de _MAX_ registos no total)",
"sInfoPostFix": "",
"sSearch": "Procurar:",
"sUrl": "",
"oPaginate": {
"sFirst": "Primeiro",
"sPrevious": "Anterior",
"sNext": "Seguinte",
"sLast": "Último"
}
}');
?>

View file

@ -3,4 +3,26 @@ define("LANG_NAME", "Русский");
define("LANG_LOCALE", "ru_RU");
define("LANG", "ru");
define("LANGCODE", "ru");
define("DATATABLESTRANSLATION", '{
"processing": "Подождите...",
"search": "Поиск:",
"lengthMenu": "Показать _MENU_ записей",
"info": "Записи с _START_ до _END_ из _TOTAL_ записей",
"infoEmpty": "Записи с 0 до 0 из 0 записей",
"infoFiltered": "(отфильтровано из _MAX_ записей)",
"infoPostFix": "",
"loadingRecords": "Загрузка записей...",
"zeroRecords": "Записи отсутствуют.",
"emptyTable": "В таблице отсутствуют данные",
"paginate": {
"first": "Первая",
"previous": "Предыдущая",
"next": "Следующая",
"last": "Последняя"
},
"aria": {
"sortAscending": ": активировать для сортировки столбца по возрастанию",
"sortDescending": ": активировать для сортировки столбца по убыванию"
}
}');
?>

View file

@ -137,5 +137,6 @@ echo '<!--Page generated in '.$total_time.' seconds.-->';
$(document).ready(function(){
var logT = $('#log').dataTable( {
"language": <?php echo DATATABLESTRANSLATION; ?>,
"aaSorting": [[1,'asc']]
} );}); </script>

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20170315-2 (".getGitVersion().")");
define("VERSION", "20170316-1 (".getGitVersion().")");
?>