diff --git a/Issue_template.txt b/Issue_template.txt new file mode 100644 index 0000000..2030cdc --- /dev/null +++ b/Issue_template.txt @@ -0,0 +1,3 @@ +Please post support requests and questions in the DataTables forums at https://datatables.net/forums. Support requests posted here will be closed. The intention of this request is to allow all questions to be located in a single, searchable, location. + +When you post your question in the DataTables forums, please ensure that you include a link to the page showing the issue so it can be debugged. diff --git a/api/columns().order().js b/api/columns().order().js index 46b6488..f169848 100644 --- a/api/columns().order().js +++ b/api/columns().order().js @@ -38,7 +38,7 @@ $.fn.dataTable.Api.register( 'columns().order()', function ( dir ) { var a = []; for ( var i=0, ien=columns.length ; i= page_info.start && row_position < page_info.end ) { - // Return row object - return this; - } - // Find page number - var page_to_display = Math.floor( row_position / this.table().page.len() ); - // Go to that page - this.table().page( page_to_display ); - // Return row object - return this; + var page_info = this.table().page.info(); + // Get row index + var new_row_index = this.index(); + // Row position + var row_position = this.table() + .rows({ search: 'applied' })[0] + .indexOf(new_row_index); + // Already on right page ? + if ((row_position >= page_info.start && row_position < page_info.end) || row_position < 0) { + // Return row object + return this; + } + // Find page number + var page_to_display = Math.floor(row_position / this.table().page.len()); + // Go to that page + this.table().page(page_to_display); + // Return row object + return this; }); diff --git a/buttons/button.download.js b/buttons/button.download.js index 36de995..3620965 100644 --- a/buttons/button.download.js +++ b/buttons/button.download.js @@ -43,7 +43,7 @@ name = ''; } - if ($.isPlainObject(data) || $.isArray(data)) { + if ($.isPlainObject(data) || Array.isArray(data)) { $.each(data, function(idx, val) { if (name === '') { flattenJson(val, idx, flattened); diff --git a/dataRender/datetime.js b/dataRender/datetime.js index a619431..c866f97 100644 --- a/dataRender/datetime.js +++ b/dataRender/datetime.js @@ -106,6 +106,10 @@ $.fn.dataTable.render.moment = function ( from, to, locale ) { } return function ( d, type, row ) { + if (! d) { + return type === 'sort' || type === 'type' ? 0 : d; + } + var m = window.moment( d, from, locale, true ); // Order and type get a number value from Moment, everything else diff --git a/dataRender/hyperLink.js b/dataRender/hyperLink.js new file mode 100644 index 0000000..9ddd6d8 --- /dev/null +++ b/dataRender/hyperLink.js @@ -0,0 +1,141 @@ +/** + * This data rendering helper method can be useful when a hyperLink with custom + * anchorText has to rendered. The data for the column is still fully searchable and sortable, based on the hyperLink value, + * and sortable, based on the hyperLink value, but during display in webpage is rendered with custom placeholder + * + * It accepts four parameters: + * + * 1. 'anchorText' - type string - (optional - default `Click Here`) - The custom placeholder to display + * 2. 'location' - type string - (optional - default `newTab`) + * takes two values 'newTab' and 'popup' + * 3. 'width' - type integer - (optional - default `600`) + * The custom width of popup to display. + * Value is utilised on when 'location' is given as 'popup'. + * 4. 'height' - type integer - (optional - default `400`) + * The custom heigth of popup to display. + * Value is utilised on when 'location' is given as 'popup'. + * + * @name hyperLink + * @summary Displays url data in hyperLink with custom plcaeholder + * @author [Lokesh Babu] + * @requires DataTables 1.10+ + * + * + * @example + * // Display the hyperlink with 'Click Here', which open hyperlink in new Tab or new Window based on Browser setting + * $('#example').DataTable( { + * columnDefs: [ { + * targets: 1, + * render: $.fn.dataTable.render.hyperLink() + * } ] + * } ); + * + * @example + * // Display the hyperlink with 'Download', which open hyperlink in new Tab or new Window based on Browser setting + * $('#example').DataTable( { + * columnDefs: [ { + * targets: 2, + * render: $.fn.dataTable.render.hyperLink( 'Download' ) + * } ] + * } ); + * + * @example + * // Display the hyperlink with 'Download', which open hyperlink in popup + * // with size 600as width and 400 as height + * $('#example').DataTable( { + * columnDefs: [ { + * targets: 2, + * render: $.fn.dataTable.render.hyperLink( 'Download', 'popup' ) + * } ] + * } ); + * + * @example + * // Display the hyperlink with 'Download', which open hyperlink in popup + * // with size 1000 width and 500 as height + * $('#example').DataTable( { + * columnDefs: [ { + * targets: 2, + * render: $.fn.dataTable.render.hyperLink( 'Download', 'popup' , 1000, 500) + * } ] + * } ); + */ + +jQuery.fn.dataTable.render.hyperLink = function ( + anchorText, + location, + width, + height +) { + validateAndReturnDefaultIfFailed = function (item, defaultValue) { + if (typeof item === "number") { + return item; + } + + if (typeof item === "string") { + return parseInt(item) ? item : defaultValue; + } + + return defaultValue; + }; + + var anchorText = anchorText || "Click Here"; + var location = location || "newTab"; + var width = validateAndReturnDefaultIfFailed(width, "600"); + var height = validateAndReturnDefaultIfFailed(height, "400"); + + return function (data, type, row) { + // restriction only for table display rendering + if (type !== "display") { + return data; + } + + var url = data; + + try { + url = new URL(data); + + switch (location) { + case "newTab": + return ( + '' + + anchorText + + "" + ); + case "popup": + return ( + '" + + anchorText + + "" + ); + default: + return ( + '' + + anchorText + + "" + ); + } + } catch (e) { + return url; + } + }; +}; diff --git a/features/conditionalPageLength/dataTables.conditionalPageLength.js b/features/conditionalPageLength/dataTables.conditionalPageLength.js new file mode 100644 index 0000000..cc68d78 --- /dev/null +++ b/features/conditionalPageLength/dataTables.conditionalPageLength.js @@ -0,0 +1,109 @@ +/** + * @summary ConditionalPageLength + * @description Hide the page length control when the amount of pages is <= 1 + * @version 1.0.0 + * @file dataTables.conditionalPageLength.js + * @author Garrett Hyder (https://github.com/garretthyder) + * @contact garrett.m.hyder@gmail.com + * @copyright Copyright 2020 Garrett Hyder + * + * License MIT - http://datatables.net/license/mit + * + * This feature plugin for DataTables hides the page length control when the amount + * of pages is <= 1. The control can either appear / disappear or fade in / out. + * + * Based off conditionalPaging by Matthew Hasbach (https://github.com/mjhasbach) + * Reference: https://github.com/DataTables/Plugins/blob/master/features/conditionalPaging/dataTables.conditionalPaging.js + * + * @example + * $('#myTable').DataTable({ + * conditionalPageLength: true + * }); + * + * @example + * $('#myTable').DataTable({ + * conditionalPageLength: { + * style: 'fade', + * speed: 500 // optional + * } + * }); + * + * Conditionally hide the Page Length options that are less than the current result size. + * @example + * $('#myTable').DataTable({ + * conditionalPageLength: { + * conditionalOptions: true + * } + * }); + */ + +(function(window, document, $) { + $(document).on('init.dt', function(e, dtSettings) { + if ( e.namespace !== 'dt' ) { + return; + } + + var options = dtSettings.oInit.conditionalPageLength || $.fn.dataTable.defaults.conditionalPageLength, + lengthMenu = dtSettings.aLengthMenu || $.fn.dataTable.defaults.lengthMenu, + lengthMenuValues = Array.isArray(lengthMenu[0]) ? lengthMenu[0] : lengthMenu; + + lengthMenuValues = lengthMenuValues.filter(function(n) { return n > 0 }); + var smallestLength = Math.min.apply(Math, lengthMenuValues); + + if ($.isPlainObject(options) || options === true) { + var config = $.isPlainObject(options) ? options : {}, + api = new $.fn.dataTable.Api(dtSettings), + speed = 'slow', + conditionalPageLength = function(e) { + var $paging = $(api.table().container()).find('div.dataTables_length'), + pages = api.page.info().pages, + size = api.rows({search:'applied'}).count(); + + if (e instanceof $.Event) { + if (pages <= 1 && size <= smallestLength) { + if (config.style === 'fade') { + $paging.stop().fadeTo(speed, 0); + } + else { + $paging.css('visibility', 'hidden'); + } + } + else { + if (config.style === 'fade') { + $paging.stop().fadeTo(speed, 1); + } + else { + $paging.css('visibility', ''); + } + } + } + else if (pages <= 1 && size <= smallestLength) { + if (config.style === 'fade') { + $paging.css('opacity', 0); + } + else { + $paging.css('visibility', 'hidden'); + } + } + + if (config.conditionalOptions) { + $paging.find('select option').each(function(index) { + if ($(this).attr('value') > size) { + $(this).hide(); + } else { + $(this).show(); + } + }); + } + }; + + if ( config.speed !== undefined ) { + speed = config.speed; + } + + conditionalPageLength(); + + api.on('draw.dt', conditionalPageLength); + } + }); +})(window, document, jQuery); \ No newline at end of file diff --git a/features/lengthLinks/dataTables.lengthLinks.js b/features/lengthLinks/dataTables.lengthLinks.js index 51a4690..8304eaf 100644 --- a/features/lengthLinks/dataTables.lengthLinks.js +++ b/features/lengthLinks/dataTables.lengthLinks.js @@ -58,8 +58,8 @@ $.fn.dataTable.LengthLinks = function ( inst ) { } var menu = settings.aLengthMenu; - var lang = menu.length===2 && $.isArray(menu[0]) ? menu[1] : menu; - var lens = menu.length===2 && $.isArray(menu[0]) ? menu[0] : menu; + var lang = menu.length===2 && Array.isArray(menu[0]) ? menu[1] : menu; + var lens = menu.length===2 && Array.isArray(menu[0]) ? menu[0] : menu; var out = $.map( lens, function (el, i) { return el == api.page.len() ? diff --git a/features/searchHighlight/dataTables.searchHighlight.js b/features/searchHighlight/dataTables.searchHighlight.js index d814f23..7d212cb 100644 --- a/features/searchHighlight/dataTables.searchHighlight.js +++ b/features/searchHighlight/dataTables.searchHighlight.js @@ -46,9 +46,9 @@ function highlight( body, table ) table.columns().every( function () { var column = this; column.nodes().flatten().to$().unhighlight({ className: 'column_highlight' }); - column.nodes().flatten().to$().highlight( $.trim( column.search() ).split(/\s+/), { className: 'column_highlight' } ); + column.nodes().flatten().to$().highlight( column.search().trim().split(/\s+/), { className: 'column_highlight' } ); } ); - body.highlight( $.trim( table.search() ).split(/\s+/) ); + body.highlight( table.search().trim().split(/\s+/) ); } } diff --git a/i18n/Afrikaans.lang b/i18n/Afrikaans.lang index ac35b40..bec4a2f 100644 --- a/i18n/Afrikaans.lang +++ b/i18n/Afrikaans.lang @@ -3,6 +3,7 @@ * @name Afrikaans * @anchor Afrikaans * @author Ajoft Software + * @lcid af */ { @@ -10,7 +11,6 @@ "sInfo": "uitstalling _START_ to _END_ of _TOTAL_ inskrywings", "sInfoEmpty": "uitstalling 0 to 0 of 0 inskrywings", "sInfoFiltered": "(gefiltreer uit _MAX_ totaal inskrywings)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "uitstal _MENU_ inskrywings", "sLoadingRecords": "laai...", diff --git a/i18n/Albanian.lang b/i18n/Albanian.lang index f231398..e2cf6e5 100644 --- a/i18n/Albanian.lang +++ b/i18n/Albanian.lang @@ -3,6 +3,7 @@ * @name Albanian * @anchor Albanian * @author Besnik Belegu + * @lcid sq */ { @@ -10,7 +11,6 @@ "sInfo": "Duke treguar _START_ deri _END_ prej _TOTAL_ reshtave", "sInfoEmpty": "Duke treguar 0 deri 0 prej 0 reshtave", "sInfoFiltered": "(të filtruara nga gjithësej _MAX_ reshtave)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Shiko _MENU_ reshta", "sLoadingRecords": "Duke punuar...", diff --git a/i18n/Amharic.lang b/i18n/Amharic.lang index b5ba4bb..7c0c1ea 100644 --- a/i18n/Amharic.lang +++ b/i18n/Amharic.lang @@ -3,6 +3,7 @@ * @name Amharic * @anchor Amharic * @author veduket + * @lcid am */ { @@ -10,7 +11,6 @@ "sInfo": "ከጠቅላላው _TOTAL_ ዝርዝሮች ውስጥ ከ _START_ እስከ _END_ ያሉት ዝርዝር", "sInfoEmpty": "ከጠቅላላው 0 ዝርዝሮች ውስጥ ከ 0 እስከ 0 ያሉት ዝርዝር", "sInfoFiltered": "(ከጠቅላላው _MAX_ የተመረጡ ዝርዝሮች)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "የዝርዝሮች ብዛት _MENU_", "sLoadingRecords": "በማቅረብ ላይ...", diff --git a/i18n/Arabic.lang b/i18n/Arabic.lang index e1e9ae9..c29f19b 100644 --- a/i18n/Arabic.lang +++ b/i18n/Arabic.lang @@ -3,6 +3,7 @@ * @name Arabic * @anchor Arabic * @author Ossama Khayat + * @lcid ar */ { @@ -14,9 +15,7 @@ "sInfo": "إظهار _START_ إلى _END_ من أصل _TOTAL_ مدخل", "sInfoEmpty": "يعرض 0 إلى 0 من أصل 0 سجل", "sInfoFiltered": "(منتقاة من مجموع _MAX_ مُدخل)", - "sInfoPostFix": "", "sSearch": "ابحث:", - "sUrl": "", "oPaginate": { "sFirst": "الأول", "sPrevious": "السابق", @@ -26,5 +25,27 @@ "oAria": { "sSortAscending": ": تفعيل لترتيب العمود تصاعدياً", "sSortDescending": ": تفعيل لترتيب العمود تنازلياً" + }, + "select": { + "rows": { + "_": "%d قيمة محددة", + "0": "", + "1": "1 قيمة محددة" + } + }, + "buttons": { + "print": "طباعة", + "colvis": "الأعمدة الظاهرة", + "copy": "نسخ إلى الحافظة", + "copyTitle": "نسخ", + "copyKeys": "زر ctrl أو \u2318 + C من الجدول
ليتم نسخها إلى الحافظة

للإلغاء اضغط على الرسالة أو اضغط على زر الخروج.", + "copySuccess": { + "_": "%d قيمة نسخت", + "1": "1 قيمة نسخت" + }, + "pageLength": { + "-1": "اظهار الكل", + "_": "إظهار %d أسطر" + } } } diff --git a/i18n/Armenian.lang b/i18n/Armenian.lang index a7f6e16..4e217e2 100644 --- a/i18n/Armenian.lang +++ b/i18n/Armenian.lang @@ -3,6 +3,7 @@ * @name Armenian * @anchor Armenian * @author Levon Levonyan + * @lcid hy */ { @@ -15,7 +16,6 @@ "sInfo": "Ցուցադրված են _START_-ից _END_ արդյունքները ընդհանուր _TOTAL_-ից", "sInfoEmpty": "Արդյունքներ գտնված չեն", "sInfoFiltered": "(ֆիլտրվել է ընդհանուր _MAX_ արդյունքներից)", - "sInfoPostFix": "", "sSearch": "Փնտրել", "oPaginate": { "sFirst": "Առաջին էջ", diff --git a/i18n/Azerbaijan.lang b/i18n/Azerbaijan.lang index 9d681f4..b356232 100644 --- a/i18n/Azerbaijan.lang +++ b/i18n/Azerbaijan.lang @@ -3,6 +3,7 @@ * @name Azerbaijan * @anchor Azerbaijan * @author H.Huseyn + * @lcid az_az */ { @@ -10,7 +11,6 @@ "sInfo": " _TOTAL_ Nəticədən _START_ - _END_ Arası Nəticələr", "sInfoEmpty": "Nəticə Yoxdur", "sInfoFiltered": "( _MAX_ Nəticə İçindən Tapılanlar)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Səhifədə _MENU_ Nəticə Göstər", "sLoadingRecords": "Yüklənir...", diff --git a/i18n/Bangla.lang b/i18n/Bangla.lang index ee27458..cdc142b 100644 --- a/i18n/Bangla.lang +++ b/i18n/Bangla.lang @@ -3,6 +3,7 @@ * @name Bangla * @anchor Bangla * @author Md. Khaled Ben Islam + * @lcid bn */ { @@ -12,9 +13,7 @@ "sInfo": "_TOTAL_ টা এন্ট্রির মধ্যে _START_ থেকে _END_ পর্যন্ত দেখানো হচ্ছে", "sInfoEmpty": "কোন এন্ট্রি খুঁজে পাওয়া যায় নাই", "sInfoFiltered": "(মোট _MAX_ টা এন্ট্রির মধ্যে থেকে বাছাইকৃত)", - "sInfoPostFix": "", "sSearch": "অনুসন্ধান:", - "sUrl": "", "oPaginate": { "sFirst": "প্রথমটা", "sPrevious": "আগেরটা", diff --git a/i18n/Basque.lang b/i18n/Basque.lang index 96df1a8..3e2dabf 100644 --- a/i18n/Basque.lang +++ b/i18n/Basque.lang @@ -3,6 +3,7 @@ * @name Basque * @anchor Basque * @author Xabi Pico + * @lcid eu */ { @@ -13,9 +14,7 @@ "sInfo": "_START_ -etik _END_ -erako erregistroak erakusten, guztira _TOTAL_ erregistro", "sInfoEmpty": "0tik 0rako erregistroak erakusten, guztira 0 erregistro", "sInfoFiltered": "(guztira _MAX_ erregistro iragazten)", - "sInfoPostFix": "", "sSearch": "Aurkitu:", - "sUrl": "", "sInfoThousands": ",", "sLoadingRecords": "Abiarazten...", "oPaginate": { diff --git a/i18n/Belarusian.lang b/i18n/Belarusian.lang index 2869e40..ab81ca7 100644 --- a/i18n/Belarusian.lang +++ b/i18n/Belarusian.lang @@ -3,17 +3,16 @@ * @name Belarusian * @anchor Belarusian * @author vkachurka +* @lcid be */ { - "sProcessing": "Пачакайце...", - "sLengthMenu": "Паказваць _MENU_ запісаў", - "sZeroRecords": "Запісы адсутнічаюць.", - "sInfo": "Запісы з _START_ па _END_ з _TOTAL_ запісаў", - "sInfoEmpty": "Запісы з 0 па 0 з 0 запісаў", + "sProcessing": "Пачакайце...", + "sLengthMenu": "Паказваць _MENU_ запісаў", + "sZeroRecords": "Запісы адсутнічаюць.", + "sInfo": "Запісы з _START_ па _END_ з _TOTAL_ запісаў", + "sInfoEmpty": "Запісы з 0 па 0 з 0 запісаў", "sInfoFiltered": "(адфільтравана з _MAX_ запісаў)", - "sInfoPostFix": "", - "sSearch": "Пошук:", - "sUrl": "", + "sSearch": "Пошук:", "oPaginate": { "sFirst": "Першая", "sPrevious": "Папярэдняя", @@ -21,7 +20,7 @@ "sLast": "Апошняя" }, "oAria": { - "sSortAscending": ": актываваць для сартавання слупка па ўзрастанні", + "sSortAscending": ": актываваць для сартавання слупка па ўзрастанні", "sSortDescending": ": актываваць для сартавання слупка па змяншэнні" } -} +} \ No newline at end of file diff --git a/i18n/Bulgarian.lang b/i18n/Bulgarian.lang index bde4c40..4872f59 100644 --- a/i18n/Bulgarian.lang +++ b/i18n/Bulgarian.lang @@ -3,6 +3,7 @@ * @name Bulgarian * @anchor Bulgarian * @author Rostislav Stoyanov, Oliwier Thomas + * @lcid bg */ { @@ -12,9 +13,7 @@ "sInfo": "Показване на резултати от _START_ до _END_ от общо _TOTAL_", "sInfoEmpty": "Показване на резултати от 0 до 0 от общо 0", "sInfoFiltered": "(филтрирани от общо _MAX_ резултата)", - "sInfoPostFix": "", "sSearch": "Търсене:", - "sUrl": "", "oPaginate": { "sFirst": "Първа", "sPrevious": "Предишна", diff --git a/i18n/Catalan.lang b/i18n/Catalan.lang index e7b997c..4186f26 100644 --- a/i18n/Catalan.lang +++ b/i18n/Catalan.lang @@ -2,23 +2,50 @@ * Catalan translation * @name Catalan * @anchor Catalan - * @author Sergi + * @author Sergi, Oriol Roselló Castells + * @lcid ca */ - { - "sProcessing": "Processant...", - "sLengthMenu": "Mostra _MENU_ registres", - "sZeroRecords": "No s'han trobat registres.", - "sInfo": "Mostrant de _START_ a _END_ de _TOTAL_ registres", - "sInfoEmpty": "Mostrant de 0 a 0 de 0 registres", - "sInfoFiltered": "(filtrat de _MAX_ total registres)", - "sInfoPostFix": "", - "sSearch": "Filtrar:", - "sUrl": "", - "oPaginate": { - "sFirst": "Primer", - "sPrevious": "Anterior", - "sNext": "Següent", - "sLast": "Últim" - } + "sProcessing": "Processant...", + "sLengthMenu": "Mostra _MENU_ registres", + "sZeroRecords": "No s'han trobat registres", + "sEmptyTable": "No hi ha registres disponible en aquesta taula", + "sInfo": "Mostrant del _START_ al _END_ d'un total de _TOTAL_ registres", + "sInfoEmpty": "No hi ha registres disponibles", + "sInfoFiltered": "(filtrat de _MAX_ registres)", + "sSearch": "Cerca:", + "sInfoThousands": ".", + "sDecimal": ",", + "sLoadingRecords": "Carregant...", + "oPaginate": { + "sFirst": "Primer", + "sPrevious": "Anterior", + "sNext": "Següent", + "sLast": "Últim" + }, + "oAria": { + "sSortAscending": ": Activa per ordenar la columna de manera ascendent", + "sSortDescending": ": Activa per ordenar la columna de manera descendent" + }, + "buttons": { + "print": "Imprimeix", + "copy": "Copia", + "colvis": "Columnes", + "copyTitle": "Copia al portapapers", + "copySuccess": { + "_": "%d files copiades", + "1": "1 fila copiada" + }, + "pageLength": { + "-1": "Mostra totes les files", + "_": "Mostra %d files" + } + }, + "select": { + "rows": { + "_": "%d files seleccionades", + "0": "Cap fila seleccionada", + "1": "1 fila seleccionada" + } + } } diff --git a/i18n/Chinese-traditional.lang b/i18n/Chinese-traditional.lang index ae748d2..02702be 100644 --- a/i18n/Chinese-traditional.lang +++ b/i18n/Chinese-traditional.lang @@ -4,26 +4,26 @@ * @anchor Chinese (traditional) * @author GimmeRank Affiliate * @author Peter Dave Hello + * @lcid zh_Hant */ { - "processing":   "處理中...", + "processing": "處理中...", "loadingRecords": "載入中...", - "lengthMenu":   "顯示 _MENU_ 項結果", - "zeroRecords":  "沒有符合的結果", - "info":         "顯示第 _START_ 至 _END_ 項結果,共 _TOTAL_ 項", - "infoEmpty":    "顯示第 0 至 0 項結果,共 0 項", + "lengthMenu": "顯示 _MENU_ 項結果", + "zeroRecords": "沒有符合的結果", + "info": "顯示第 _START_ 至 _END_ 項結果,共 _TOTAL_ 項", + "infoEmpty": "顯示第 0 至 0 項結果,共 0 項", "infoFiltered": "(從 _MAX_ 項結果中過濾)", - "infoPostFix":  "", - "search":       "搜尋:", + "search": "搜尋:", "paginate": { - "first":    "第一頁", + "first": "第一頁", "previous": "上一頁", - "next":     "下一頁", - "last":     "最後一頁" + "next": "下一頁", + "last": "最後一頁" }, "aria": { - "sortAscending": ": 升冪排列", + "sortAscending": ": 升冪排列", "sortDescending": ": 降冪排列" } -} +} \ No newline at end of file diff --git a/i18n/Chinese.lang b/i18n/Chinese.lang index 648a7e0..81a48ce 100644 --- a/i18n/Chinese.lang +++ b/i18n/Chinese.lang @@ -3,6 +3,7 @@ * @name Chinese * @anchor Chinese * @author Chi Cheng + * @lcid zh */ { @@ -12,9 +13,7 @@ "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项", "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项", "sInfoFiltered": "(由 _MAX_ 项结果过滤)", - "sInfoPostFix": "", "sSearch": "搜索:", - "sUrl": "", "sEmptyTable": "表中数据为空", "sLoadingRecords": "载入中...", "sInfoThousands": ",", diff --git a/i18n/Croatian.lang b/i18n/Croatian.lang index 77214ee..bd29564 100644 --- a/i18n/Croatian.lang +++ b/i18n/Croatian.lang @@ -3,6 +3,7 @@ * @name Croatian * @anchor Croatian * @author Predrag Mušić and _hrvoj3e_ + * @lcid hr */ { @@ -10,7 +11,6 @@ "sInfo": "Prikazano _START_ do _END_ od _TOTAL_ rezultata", "sInfoEmpty": "Prikazano 0 do 0 od 0 rezultata", "sInfoFiltered": "(filtrirano iz _MAX_ ukupnih rezultata)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Prikaži _MENU_ rezultata po stranici", "sLoadingRecords": "Dohvaćam...", diff --git a/i18n/Czech.lang b/i18n/Czech.lang index f2cbd4b..7c8866b 100644 --- a/i18n/Czech.lang +++ b/i18n/Czech.lang @@ -3,6 +3,7 @@ * @name Czech * @anchor Czech * @author Magerio + * @lcid cs */ { @@ -10,7 +11,6 @@ "sInfo": "Zobrazuji _START_ až _END_ z celkem _TOTAL_ záznamů", "sInfoEmpty": "Zobrazuji 0 až 0 z 0 záznamů", "sInfoFiltered": "(filtrováno z celkem _MAX_ záznamů)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLengthMenu": "Zobraz záznamů _MENU_", "sLoadingRecords": "Načítám...", diff --git a/i18n/Danish.lang b/i18n/Danish.lang index 1d98cc5..2d6ff0f 100644 --- a/i18n/Danish.lang +++ b/i18n/Danish.lang @@ -3,6 +3,7 @@ * @name Danish * @anchor Danish * @author Werner Knudsen + * @lcid da */ { @@ -12,9 +13,7 @@ "sInfo": "Viser _START_ til _END_ af _TOTAL_ linjer", "sInfoEmpty": "Viser 0 til 0 af 0 linjer", "sInfoFiltered": "(filtreret fra _MAX_ linjer)", - "sInfoPostFix": "", "sSearch": "Søg:", - "sUrl": "", "oPaginate": { "sFirst": "Første", "sPrevious": "Forrige", diff --git a/i18n/Dutch.lang b/i18n/Dutch.lang index 5b95976..fff692a 100644 --- a/i18n/Dutch.lang +++ b/i18n/Dutch.lang @@ -3,6 +3,7 @@ * @name Dutch * @anchor Dutch * @author Erwin Kerk and ashwin + * @lcid nl_nl */ { @@ -12,7 +13,6 @@ "sInfo": "_START_ tot _END_ van _TOTAL_ resultaten", "sInfoEmpty": "Geen resultaten om weer te geven", "sInfoFiltered": " (gefilterd uit _MAX_ resultaten)", - "sInfoPostFix": "", "sSearch": "Zoeken:", "sEmptyTable": "Geen resultaten aanwezig in de tabel", "sInfoThousands": ".", diff --git a/i18n/English.lang b/i18n/English.lang index 5fa998a..1add0cd 100644 --- a/i18n/English.lang +++ b/i18n/English.lang @@ -3,28 +3,131 @@ * @name English * @anchor English * @author Allan Jardine + * @lcid en-gb */ { - "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" + "emptyTable": "No data available in table", + "info": "Showing _START_ to _END_ of _TOTAL_ entries", + "infoEmpty": "Showing 0 to 0 of 0 entries", + "infoFiltered": "(filtered from _MAX_ total entries)", + "infoThousands": ",", + "lengthMenu": "Show _MENU_ entries", + "loadingRecords": "Loading...", + "processing": "Processing...", + "search": "Search:", + "zeroRecords": "No matching records found", + "thousands": ",", + "paginate": { + "first": "First", + "last": "Last", + "next": "Next", + "previous": "Previous" }, - "oAria": { - "sSortAscending": ": activate to sort column ascending", - "sSortDescending": ": activate to sort column descending" + "aria": { + "sortAscending": ": activate to sort column ascending", + "sortDescending": ": activate to sort column descending" + }, + "autoFill": { + "cancel": "Cancel", + "fill": "Fill all cells with %d", + "fillHorizontal": "Fill cells horizontally", + "fillVertical": "Fill cells vertically" + }, + "buttons": { + "collection": "Collection ", + "colvis": "Column Visibility", + "colvisRestore": "Restore visibility", + "copy": "Copy", + "copyKeys": "Press ctrl or u2318 + C to copy the table data to your system clipboard.

To cancel, click this message or press escape.", + "copySuccess": { + "1": "Copied 1 row to clipboard", + "_": "Copied %d rows to clipboard" + }, + "copyTitle": "Copy to Clipboard", + "csv": "CSV", + "excel": "Excel", + "pageLength": { + "-1": "Show all rows", + "1": "Show 1 row", + "_": "Show %d rows" + }, + "pdf": "PDF", + "print": "Print" + }, + "searchBuilder": { + "add": "Add Condition", + "button": { + "0": "Search Builder", + "_": "Search Builder (%d)" + }, + "clearAll": "Clear All", + "condition": "Condition", + "conditions": { + "date": { + "after": "After", + "before": "Before", + "between": "Between", + "empty": "Empty", + "equals": "Equals", + "not": "Not", + "notBetween": "Not Between", + "notEmpty": "Not Empty" + }, + "moment": { + "after": "After", + "before": "Before", + "between": "Between", + "empty": "Empty", + "equals": "Equals", + "not": "Not", + "notBetween": "Not Between", + "notEmpty": "Not Empty" + }, + "number": { + "between": "Between", + "empty": "Empty", + "equals": "Equals", + "gt": "Greater Than", + "gte": "Greater Than Equal To", + "lt": "Less Than", + "lte": "Less Than Equal To", + "not": "Not", + "notBetween": "Not Between", + "notEmpty": "Not Empty" + }, + "string": { + "contains": "Contains", + "empty": "Empty", + "endsWith": "Ends With", + "equals": "Equals", + "not": "Not", + "notEmpty": "Not Empty", + "startsWith": "Starts With" + } + }, + "data": "Data", + "deleteTitle": "Delete filtering rule", + "leftTitle": "Outdent Criteria", + "logicAnd": "And", + "logicOr": "Or", + "rightTitle": "Indent Criteria", + "title": { + "0": "Search Builder", + "_": "Search Builder (%d)" + }, + "value": "Value" + }, + "searchPanes": { + "clearMessage": "Clear All", + "collapse": { + "0": "SearchPanes", + "_": "SearchPanes (%d)" + }, + "count": "{total}", + "countFiltered": "{shown} ({total})", + "emptyPanes": "No SearchPanes", + "loadMessage": "Loading SearchPanes", + "title": "Filters Active - %d" } } \ No newline at end of file diff --git a/i18n/Esperanto.lang b/i18n/Esperanto.lang index 7535164..479b55f 100644 --- a/i18n/Esperanto.lang +++ b/i18n/Esperanto.lang @@ -3,6 +3,7 @@ * @name Esperanto * @anchor Esperanto * @author Mia Nordentoft + * @lcid eo */ { @@ -10,7 +11,6 @@ "sInfo": "Montras _START_ ĝis _END_ el _TOTAL_ vicoj", "sInfoEmpty": "Montras 0 ĝis 0 el 0 vicoj", "sInfoFiltered": "(filtrita el entute _MAX_ vicoj)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Montri _MENU_ vicojn", "sLoadingRecords": "Ŝarĝas ...", diff --git a/i18n/Estonian.lang b/i18n/Estonian.lang index 0263fe5..e311f34 100644 --- a/i18n/Estonian.lang +++ b/i18n/Estonian.lang @@ -3,6 +3,7 @@ * @name Estonian * @anchor Estonian * @author Janek Todoruk + * @lcid et */ { @@ -12,7 +13,6 @@ "sInfo": "Kuvatud: _TOTAL_ kirjet (_START_-_END_)", "sInfoEmpty": "Otsinguvasteid ei leitud", "sInfoFiltered": " - filteeritud _MAX_ kirje seast.", - "sInfoPostFix": "Kõik kuvatud kirjed põhinevad reaalsetel tulemustel.", "sSearch": "Otsi kõikide tulemuste seast:", "oPaginate": { "sFirst": "Algus", diff --git a/i18n/Filipino.lang b/i18n/Filipino.lang index 30b4bf7..9092c94 100644 --- a/i18n/Filipino.lang +++ b/i18n/Filipino.lang @@ -3,6 +3,7 @@ * @name Filipino * @anchor Filipino * @author Citi360 + * @lcid fil */ { @@ -12,9 +13,7 @@ "sInfo": "Ipinapakita ang _START_ sa _END_ ng _TOTAL_ entries", "sInfoEmpty": "Ipinapakita ang 0-0 ng 0 entries", "sInfoFiltered": "(na-filter mula _MAX_ kabuuang entries)", - "sInfoPostFix": "", "sSearch": "Paghahanap:", - "sUrl": "", "oPaginate": { "sFirst": "Unang", "sPrevious": "Nakaraan", diff --git a/i18n/Finnish.lang b/i18n/Finnish.lang index 4b9fef4..fbf3648 100644 --- a/i18n/Finnish.lang +++ b/i18n/Finnish.lang @@ -5,6 +5,7 @@ * @author Seppo Äyräväinen * @author Viktors Cvetkovs * @author Niko Granö + * @lcid fi */ { @@ -12,7 +13,6 @@ "sInfo": "Näytetään rivit _START_ - _END_ (yhteensä _TOTAL_ )", "sInfoEmpty": "Näytetään 0 - 0 (yhteensä 0)", "sInfoFiltered": "(suodatettu _MAX_ tuloksen joukosta)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Näytä kerralla _MENU_ riviä", "sLoadingRecords": "Ladataan...", diff --git a/i18n/French.lang b/i18n/French.lang index 28ae313..f8eefcd 100644 --- a/i18n/French.lang +++ b/i18n/French.lang @@ -3,6 +3,7 @@ * @name French * @anchor French * @author schizophrene + * @lcid fr_fr */ { @@ -10,7 +11,6 @@ "sInfo": "Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments", "sInfoEmpty": "Affichage de l'élément 0 à 0 sur 0 élément", "sInfoFiltered": "(filtré à partir de _MAX_ éléments au total)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Afficher _MENU_ éléments", "sLoadingRecords": "Chargement...", diff --git a/i18n/Galician.lang b/i18n/Galician.lang index 96b2771..bf7eb1e 100644 --- a/i18n/Galician.lang +++ b/i18n/Galician.lang @@ -4,6 +4,7 @@ * @anchor Galician * @author Emilio * @author Xosé Antonio Rubal López + * @lcid gl */ { @@ -14,9 +15,7 @@ "sInfo": "Mostrando rexistros do _START_ ao _END_ dun total de _TOTAL_ rexistros", "sInfoEmpty": "Mostrando rexistros do 0 ao 0 dun total de 0 rexistros", "sInfoFiltered": "(filtrado dun total de _MAX_ rexistros)", - "sInfoPostFix": "", "sSearch": "Buscar:", - "sUrl": "", "sInfoThousands": ",", "sLoadingRecords": "Cargando...", "oPaginate": { diff --git a/i18n/Georgian.lang b/i18n/Georgian.lang index 2f34875..dc4568b 100644 --- a/i18n/Georgian.lang +++ b/i18n/Georgian.lang @@ -3,6 +3,7 @@ * @name Georgian * @anchor Georgian * @author Mikheil Nadareishvili, updated by Mirza Brunjadze + * @lcid ka */ { @@ -10,7 +11,6 @@ "sInfo": "ნაჩვენებია ჩანაწერები _START_–დან _END_–მდე, _TOTAL_ ჩანაწერიდან", "sInfoEmpty": "ნაჩვენებია ჩანაწერები 0–დან 0–მდე, 0 ჩანაწერიდან", "sInfoFiltered": "(გაფილტრული შედეგი _MAX_ ჩანაწერიდან)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "აჩვენე _MENU_ ჩანაწერი", "sLoadingRecords": "იტვირთება...", diff --git a/i18n/German.lang b/i18n/German.lang index 3cfdc5f..d0b028d 100644 --- a/i18n/German.lang +++ b/i18n/German.lang @@ -5,6 +5,7 @@ * @author Joerg Holz * @author DJmRek - Markus Bergt * @author OSWorX https://osworx.net + * @lcid de_de */ { @@ -12,7 +13,6 @@ "sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen", "sInfoEmpty": "Keine Daten vorhanden", "sInfoFiltered": "(gefiltert von _MAX_ Einträgen)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "_MENU_ Einträge anzeigen", "sLoadingRecords": "Wird geladen ..", @@ -32,7 +32,6 @@ "select": { "rows": { "_": "%d Zeilen ausgewählt", - "0": "", "1": "1 Zeile ausgewählt" } }, diff --git a/i18n/Greek.lang b/i18n/Greek.lang index 9d4f83a..37c7660 100644 --- a/i18n/Greek.lang +++ b/i18n/Greek.lang @@ -4,6 +4,7 @@ * @anchor Greek * @author Abraam Ziogas * @author Leonidas Arvanitis + * @lcid el */ { @@ -12,7 +13,6 @@ "sInfo": "Εμφανίζονται _START_ έως _END_ από _TOTAL_ εγγραφές", "sInfoEmpty": "Εμφανίζονται 0 έως 0 από 0 εγγραφές", "sInfoFiltered": "(φιλτραρισμένες από _MAX_ συνολικά εγγραφές)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Δείξε _MENU_ εγγραφές", "sLoadingRecords": "Φόρτωση...", @@ -20,7 +20,6 @@ "sSearch": "Αναζήτηση:", "sSearchPlaceholder": "Αναζήτηση", "sThousands": ".", - "sUrl": "", "sZeroRecords": "Δεν βρέθηκαν εγγραφές που να ταιριάζουν", "oPaginate": { "sFirst": "Πρώτη", diff --git a/i18n/Gujarati.lang b/i18n/Gujarati.lang index c41cbb3..68a4a08 100644 --- a/i18n/Gujarati.lang +++ b/i18n/Gujarati.lang @@ -4,6 +4,7 @@ * @anchor Gujarati * @author Apoto * @author Mr Cloud Hosting + * @lcid gu */ { @@ -11,7 +12,6 @@ "sInfo": "કુલ _TOTAL_ માંથી _START_ થી _END_ પ્રવેશો દર્શાવે છે", "sInfoEmpty": "કુલ 0 પ્રવેશ માંથી 0 થી 0 બતાવી રહ્યું છે", "sInfoFiltered": "(_MAX_ કુલ પ્રવેશો માંથી ફિલ્ટર)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "બતાવો _MENU_ પ્રવેશો", "sLoadingRecords": "લોડ કરી રહ્યું છે ...", diff --git a/i18n/Hebrew.lang b/i18n/Hebrew.lang index 72a8df6..41611b2 100644 --- a/i18n/Hebrew.lang +++ b/i18n/Hebrew.lang @@ -3,6 +3,7 @@ * @name Hebrew * @anchor Hebrew * @author Neil Osman (WW3) + * @lcid he */ { @@ -13,9 +14,7 @@ "info": "_START_ עד _END_ מתוך _TOTAL_ רשומות" , "infoEmpty": "0 עד 0 מתוך 0 רשומות", "infoFiltered": "(מסונן מסך _MAX_ רשומות)", - "infoPostFix": "", "search": "חפש:", - "url": "", "paginate": { "first": "ראשון", "previous": "קודם", diff --git a/i18n/Hindi.lang b/i18n/Hindi.lang index 8013e88..cce6f91 100644 --- a/i18n/Hindi.lang +++ b/i18n/Hindi.lang @@ -3,6 +3,7 @@ * @name Hindi * @anchor Hindi * @author Outshine Solutions + * @lcid hi */ { @@ -12,9 +13,7 @@ "sInfo": "_START_ to _END_ of _TOTAL_ प्रविष्टियां दिखा रहे हैं", "sInfoEmpty": "0 में से 0 से 0 प्रविष्टियां दिखा रहे हैं", "sInfoFiltered": "(_MAX_ कुल प्रविष्टियों में से छठा हुआ)", - "sInfoPostFix": "", "sSearch": "खोजें:", - "sUrl": "", "oPaginate": { "sFirst": "प्रथम", "sPrevious": "पिछला", diff --git a/i18n/Hungarian.lang b/i18n/Hungarian.lang index 0953d5f..368c7c2 100644 --- a/i18n/Hungarian.lang +++ b/i18n/Hungarian.lang @@ -3,6 +3,7 @@ * @name Hungarian * @anchor Hungarian * @author Adam Maschek, Lajos Cseppentő, Márk Matus + * @lcid hu */ { @@ -10,7 +11,6 @@ "sInfo": "Találatok: _START_ - _END_ Összesen: _TOTAL_", "sInfoEmpty": "Nulla találat", "sInfoFiltered": "(_MAX_ összes rekord közül szűrve)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLengthMenu": "_MENU_ találat oldalanként", "sLoadingRecords": "Betöltés...", @@ -30,7 +30,6 @@ "select": { "rows": { "_": "%d sor kiválasztva", - "0": "", "1": "1 sor kiválasztva" } }, diff --git a/i18n/Icelandic.lang b/i18n/Icelandic.lang index e17feb0..1b21c48 100644 --- a/i18n/Icelandic.lang +++ b/i18n/Icelandic.lang @@ -3,6 +3,7 @@ * @name Icelandic * @anchor Icelandic * @author Finnur Kolbeinsson + * @lcid is */ { @@ -10,7 +11,6 @@ "sInfo": "Sýni _START_ til _END_ af _TOTAL_ færslum", "sInfoEmpty": "Sýni 0 til 0 af 0 færslum", "sInfoFiltered": "(síað út frá _MAX_ færslum)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Sýna _MENU_ færslur", "sLoadingRecords": "Hleð...", diff --git a/i18n/Indonesian-Alternative.lang b/i18n/Indonesian-Alternative.lang index 1db780b..0a43ff1 100644 --- a/i18n/Indonesian-Alternative.lang +++ b/i18n/Indonesian-Alternative.lang @@ -3,6 +3,7 @@ * @name Indonesian * @anchor Indonesian * @author Landung Wahana + * @lcid id_alt */ { @@ -12,9 +13,7 @@ "sInfo": "Tampilan _START_ sampai _END_ dari _TOTAL_ entri", "sInfoEmpty": "Tampilan 0 hingga 0 dari 0 entri", "sInfoFiltered": "(disaring dari _MAX_ entri keseluruhan)", - "sInfoPostFix": "", "sSearch": "Cari:", - "sUrl": "", "oPaginate": { "sFirst": "Awal", "sPrevious": "Balik", diff --git a/i18n/Indonesian.lang b/i18n/Indonesian.lang index 2db32a6..313fbb6 100644 --- a/i18n/Indonesian.lang +++ b/i18n/Indonesian.lang @@ -2,24 +2,90 @@ * Indonesian translation * @name Indonesian * @anchor Indonesian - * @author Cipto Hadi + * @author Cipto Hadi, Ardeman + * @lcid id */ { - "sEmptyTable": "Tidak ada data yang tersedia pada tabel ini", - "sProcessing": "Sedang memproses...", - "sLengthMenu": "Tampilkan _MENU_ entri", - "sZeroRecords": "Tidak ditemukan data yang sesuai", - "sInfo": "Menampilkan _START_ sampai _END_ dari _TOTAL_ entri", - "sInfoEmpty": "Menampilkan 0 sampai 0 dari 0 entri", - "sInfoFiltered": "(disaring dari _MAX_ entri keseluruhan)", - "sInfoPostFix": "", - "sSearch": "Cari:", - "sUrl": "", - "oPaginate": { - "sFirst": "Pertama", - "sPrevious": "Sebelumnya", - "sNext": "Selanjutnya", - "sLast": "Terakhir" + "emptyTable": "Tidak ada data yang tersedia pada tabel ini", + "info": "Menampilkan _START_ sampai _END_ dari _TOTAL_ entri", + "infoEmpty": "Menampilkan 0 sampai 0 dari 0 entri", + "infoFiltered": "(disaring dari _MAX_ entri keseluruhan)", + "infoThousands": "'", + "lengthMenu": "Tampilkan _MENU_ entri", + "loadingRecords": "Sedang memuat...", + "processing": "Sedang memproses...", + "search": "Cari:", + "zeroRecords": "Tidak ditemukan data yang sesuai", + "thousands": "'", + "paginate": { + "first": "Pertama", + "last": "Terakhir", + "next": "Selanjutnya", + "previous": "Sebelumnya" + }, + "aria": { + "sortAscending": ": aktifkan untuk mengurutkan kolom ke atas", + "sortDescending": ": aktifkan untuk mengurutkan kolom menurun" + }, + "autoFill": { + "cancel": "Batalkan", + "fill": "Isi semua sel dengan %d", + "fillHorizontal": "Isi sel secara horizontal", + "fillVertical": "Isi sel secara vertikal" + }, + "buttons": { + "collection": "Kumpulan ", + "colvis": "Visibilitas Kolom", + "colvisRestore": "Kembalikan visibilitas", + "copy": "Salin", + "copyKeys": "Tekan ctrl atau u2318 + C untuk menyalin tabel ke papan klip.

To membatalkan, klik pesan ini atau tekan esc.", + "copySuccess": { + "1": "1 baris disalin ke papan klip", + "_": "%d baris disalin ke papan klip" + }, + "copyTitle": "Salin ke Papan klip", + "csv": "CSV", + "excel": "Excel", + "pageLength": { + "-1": "Tampilkan semua baris", + "1": "Tampilkan 1 baris", + "_": "Tampilkan %d baris" + }, + "pdf": "PDF", + "print": "Cetak" + }, + "searchBuilder": { + "add": "Tambah Kondisi", + "button": { + "0": "Cari Builder", + "_": "Cari Builder (%d)" + }, + "clearAll": "Bersihkan Semua", + "condition": "Kondisi", + "data": "Data", + "deleteTitle": "Hapus filter", + "leftTitle": "Ke Kiri", + "logicAnd": "Dan", + "logicOr": "Atau", + "rightTitle": "Ke Kanan", + "title": { + "0": "Cari Builder", + "_": "Cari Builder (%d)" + }, + "value": "Nilai" + }, + "searchPanes": { + "clearMessage": "Bersihkan Semua", + "collapse": { + "0": "SearchPanes", + "_": "SearchPanes (%d)" + }, + "count": "{total}", + "countFiltered": "{shown} ({total})", + "emptyPanes": "Tidak Ada SearchPanes", + "loadMessage": "Memuat SearchPanes", + "title": "Filter Aktif - %d" } } + diff --git a/i18n/Irish.lang b/i18n/Irish.lang index 7f69db9..fe379c2 100644 --- a/i18n/Irish.lang +++ b/i18n/Irish.lang @@ -3,6 +3,7 @@ * @name Irish * @anchor Irish * @author Lets Be Famous Journal + * @lcid ga */ { @@ -12,9 +13,7 @@ "sInfo": "_START_ Showing a _END_ na n-iontrálacha _TOTAL_", "sInfoEmpty": "Showing 0-0 na n-iontrálacha 0", "sInfoFiltered": "(scagtha ó _MAX_ iontrálacha iomlán)", - "sInfoPostFix": "", "sSearch": "Cuardaigh:", - "sUrl": "", "oPaginate": { "sFirst": "An Chéad", "sPrevious": "Roimhe Seo", diff --git a/i18n/Italian.lang b/i18n/Italian.lang index 8992544..7f43afe 100644 --- a/i18n/Italian.lang +++ b/i18n/Italian.lang @@ -3,6 +3,7 @@ * @name Italian * @anchor Italian * @author Nicola Zecchin & Giulio Quaresima + * @lcid it_it */ { @@ -10,7 +11,6 @@ "sInfo": "Vista da _START_ a _END_ di _TOTAL_ elementi", "sInfoEmpty": "Vista da 0 a 0 di 0 elementi", "sInfoFiltered": "(filtrati da _MAX_ elementi totali)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Visualizza _MENU_ elementi", "sLoadingRecords": "Caricamento...", diff --git a/i18n/Japanese.lang b/i18n/Japanese.lang index 5aa6d36..8e14719 100644 --- a/i18n/Japanese.lang +++ b/i18n/Japanese.lang @@ -3,6 +3,7 @@ * @name Japanese * @anchor Japanese * @author yusuke and Seigo ISHINO + * @lcid ja */ { @@ -10,7 +11,6 @@ "sInfo": " _TOTAL_ 件中 _START_ から _END_ まで表示", "sInfoEmpty": " 0 件中 0 から 0 まで表示", "sInfoFiltered": "(全 _MAX_ 件より抽出)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "_MENU_ 件表示", "sLoadingRecords": "読み込み中...", diff --git a/i18n/Kannada.lang b/i18n/Kannada.lang new file mode 100644 index 0000000..244405e --- /dev/null +++ b/i18n/Kannada.lang @@ -0,0 +1,30 @@ +/** + * Kannada translation + * @name Kannada + * @anchor Kannada + * @author Rakesh Gattapur + * @lcid kn + */ + +{ + "sEmptyTable": "ಕೋಷ್ಟಕದಲ್ಲಿ ಯಾವುದೇ ಡೇಟಾ ಲಭ್ಯವಿಲ್ಲ", + "sInfo": "ಒಟ್ಟು _TOTAL_ ಎಂಟ್ರಿಗಳಲ್ಲಿ _START_ ರಿಂದ _END_ ವರೆಗು ತೋರಿಸಲಾಗುತ್ತಿದೆ", + "sInfoEmpty": "ಒಟ್ಟು 0 ಎಂಟ್ರಿಗಳಲ್ಲಿ 0 ರಿಂದ 0 ವರೆಗು ತೋರಿಸಲಾಗುತ್ತಿದೆ", + "sInfoFiltered": "(ಒಟ್ಟು _MAX_ ಎಂಟ್ರಿ ಗಳಿಂದ ಫಿಲ್ಟರ್ ಮಾಡಲಾಗಿದೆ)", + "sInfoThousands": ",", + "sLengthMenu": "_MENU_ ಎಂಟ್ರಿಗಳು ತೋರಿಸು", + "sLoadingRecords": "ಲೋಡ್ ಆಗುತ್ತಿದೆ...", + "sProcessing": "ಸಂಸ್ಕರಿಸಲಾಗುತ್ತಿದೆ...", + "sSearch": "ಹುಡುಕಿ:", + "sZeroRecords": "ಯಾವುದೇ ಹೊಂದಾಣಿಕೆಯ ದಾಖಲೆಗಳು ಇಲ್ಲ", + "oPaginate": { + "sFirst": "ಪ್ರಥಮ", + "sLast": "ಅಂತಿಮ", + "sNext": "ಮುಂದಿನದು", + "sPrevious": "ಹಿಂದಿನದು" + }, + "oAria": { + "sSortAscending": ": ಕಾಲಂ ಅನ್ನು ಆರೋಹಣವಾಗಿ ವಿಂಗಡಿಸಲು ಸಕ್ರಿಯಗೊಳಿಸಿ", + "sSortDescending": ": ಕಾಲಂ ಅನ್ನು ಅವರೋಹಣವಾಗಿ ವಿಂಗಡಿಸಲು ಸಕ್ರಿಯಗೊಳಿಸಿ" + } +} \ No newline at end of file diff --git a/i18n/Kazakh.lang b/i18n/Kazakh.lang index e78b3de..4f0c025 100644 --- a/i18n/Kazakh.lang +++ b/i18n/Kazakh.lang @@ -3,6 +3,7 @@ * @name Kazakh * @anchor Kazakh * @author Talgat Uspanov + * @lcid kk */ { "processing": "Күте тұрыңыз...", @@ -11,7 +12,6 @@ "info": "_TOTAL_ жазбалары бойынша _START_ бастап _END_ дейінгі жазбалар", "infoEmpty": "0 жазбалары бойынша 0 бастап 0 дейінгі жазбалар", "infoFiltered": "(_MAX_ жазбасынан сұрыпталды)", - "infoPostFix": "", "loadingRecords": "Жазбалар жүктемесі...", "zeroRecords": "Жазбалар жоқ", "emptyTable": "Кестеде деректер жоқ", diff --git a/i18n/Khmer.lang b/i18n/Khmer.lang index 7cdff1b..38f4c68 100644 --- a/i18n/Khmer.lang +++ b/i18n/Khmer.lang @@ -3,6 +3,7 @@ * @name Khmer * @anchor Khmer * @author Sokunthearith Makara + * @lcid km */ { @@ -10,7 +11,6 @@ "sInfo": "បង្ហាញជួរទី _START_ ដល់ទី _END_ ក្នុងចំណោម _TOTAL_ ជួរ", "sInfoEmpty": "បង្ហាញជួរទី 0 ដល់ទី 0 ក្នុងចំណោម 0 ជួរ", "sInfoFiltered": "(បានចម្រាញ់ចេញពីទិន្នន័យសរុប _MAX_ ជួរ)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "បង្ហាញ _MENU_ ជួរ", "sLoadingRecords": "កំពុងផ្ទុក...", diff --git a/i18n/Korean.lang b/i18n/Korean.lang index 9a04c01..72cf7fd 100644 --- a/i18n/Korean.lang +++ b/i18n/Korean.lang @@ -3,6 +3,7 @@ * @name Korean * @anchor Korean * @author WonGoo Lee + * @lcid ko */ { @@ -10,7 +11,6 @@ "sInfo": "_START_ - _END_ / _TOTAL_", "sInfoEmpty": "0 - 0 / 0", "sInfoFiltered": "(총 _MAX_ 개)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "페이지당 줄수 _MENU_", "sLoadingRecords": "읽는중...", diff --git a/i18n/Kurdish.lang b/i18n/Kurdish.lang index 33b2ed6..8f1213a 100644 --- a/i18n/Kurdish.lang +++ b/i18n/Kurdish.lang @@ -3,6 +3,7 @@ * @name Kurdish * @anchor Kurdish * @author Aram Rafeq + * @lcid ku */ { @@ -14,9 +15,7 @@ "sInfo": "نیشاندانی _START_ لە _END_ کۆی _TOTAL_ تۆمار", "sInfoEmpty": "نیشاندانی 0 لە 0 لە کۆی 0 تۆمار", "sInfoFiltered": "(پاڵێوراوە لە کۆی _MAX_ تۆمار)", - "sInfoPostFix": "", "sSearch": "گەران:", - "sUrl": "", "oPaginate": { "sFirst": "یەکەم", "sPrevious": "پێشوو", diff --git a/i18n/Kyrgyz.lang b/i18n/Kyrgyz.lang index b04b909..ed3a855 100644 --- a/i18n/Kyrgyz.lang +++ b/i18n/Kyrgyz.lang @@ -2,6 +2,7 @@ * @name Kyrgyz * @anchor Kyrgyz * @author Nursultan Turdaliev and _tynar_ + * @lcid ky */ { @@ -9,7 +10,6 @@ "sInfo": "Жалпы _TOTAL_ саптын ичинен _START_-саптан _END_-сапка чейинкилер", "sInfoEmpty": "Жалпы 0 саптын ичинен 0-саптан 0-сапка чейинкилер", "sInfoFiltered": "(жалпы _MAX_ саптан фильтрленди)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLengthMenu": "_MENU_ саптан көрсөт", "sLoadingRecords": "Жүктөлүүдө...", diff --git a/i18n/Lao.lang b/i18n/Lao.lang index ca62992..2c63903 100644 --- a/i18n/Lao.lang +++ b/i18n/Lao.lang @@ -3,13 +3,13 @@ * @name Lao * @anchor Lao * @author Jumbo Liemphachanh + * @lcid lo */ { "sEmptyTable": "ບໍ່ພົບຂໍ້ມູນໃນຕາຕະລາງ", "sInfo": "ສະແດງ _START_ ເຖິງ _END_ ຈາກ _TOTAL_ ແຖວ", "sInfoEmpty": "ສະແດງ 0 ເຖິງ 0 ຈາກ 0 ແຖວ", "sInfoFiltered": "(ກັ່ນຕອງຂໍ້ມູນ _MAX_ ທຸກແຖວ)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "ສະແດງ _MENU_ ແຖວ", "sLoadingRecords": "ກຳລັງໂຫຼດຂໍ້ມູນ...", diff --git a/i18n/Latvian.lang b/i18n/Latvian.lang index d923245..cd10240 100644 --- a/i18n/Latvian.lang +++ b/i18n/Latvian.lang @@ -3,6 +3,7 @@ * @name Latvian * @anchor Latvian * @author Oskars Podans, Ruslans Jermakovičs and Edgars + * @lcid lv */ { "processing": "Uzgaidiet ...", @@ -11,7 +12,6 @@ "info": "Parādīti _START_ līdz _END_ no _TOTAL_ ierakstiem", "infoEmpty": "Nav ierakstu", "infoFiltered": "(atlasīts no pavisam _MAX_ ierakstiem)", - "infoPostFix": "", "loadingRecords": "Notiek ielāde ...", "zeroRecords": "Nav atrasti vaicājumam atbilstoši ieraksti", "emptyTable": "Tabulā nav datu", diff --git a/i18n/Lithuanian.lang b/i18n/Lithuanian.lang index 61d188c..e53233c 100644 --- a/i18n/Lithuanian.lang +++ b/i18n/Lithuanian.lang @@ -4,6 +4,7 @@ * @anchor Lithuanian * @author Kęstutis Morkūnas * @author Algirdas Brazas + * @lcid lt */ { @@ -11,14 +12,12 @@ "sInfo": "Rodomi įrašai nuo _START_ iki _END_ iš _TOTAL_ įrašų", "sInfoEmpty": "Rodomi įrašai nuo 0 iki 0 iš 0", "sInfoFiltered": "(atrinkta iš _MAX_ įrašų)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLengthMenu": "Rodyti _MENU_ įrašus", "sLoadingRecords": "Įkeliama...", "sProcessing": "Apdorojama...", "sSearch": "Ieškoti:", "sThousands": " ", - "sUrl": "", "sZeroRecords": "Įrašų nerasta", "oPaginate": { diff --git a/i18n/Macedonian.lang b/i18n/Macedonian.lang index 38e1f56..1260413 100644 --- a/i18n/Macedonian.lang +++ b/i18n/Macedonian.lang @@ -3,6 +3,7 @@ * @name Macedonian * @anchor Macedonian * @author Bojan Petkovski + * @lcid mk */ { @@ -14,9 +15,7 @@ "sInfo": "Прикажани _START_ до _END_ од _TOTAL_ записи", "sInfoEmpty": "Прикажани 0 до 0 од 0 записи", "sInfoFiltered": "(филтрирано од вкупно _MAX_ записи)", - "sInfoPostFix": "", "sSearch": "Барај", - "sUrl": "", "oPaginate": { "sFirst": "Почетна", "sPrevious": "Претходна", diff --git a/i18n/Malay.lang b/i18n/Malay.lang index b4b76a5..4401525 100644 --- a/i18n/Malay.lang +++ b/i18n/Malay.lang @@ -3,6 +3,7 @@ * @name Malay * @anchor Malay * @author Mohamad Zharif + * @lcid ms */ { @@ -10,7 +11,6 @@ "sInfo": "Paparan dari _START_ hingga _END_ dari _TOTAL_ rekod", "sInfoEmpty": "Paparan 0 hingga 0 dari 0 rekod", "sInfoFiltered": "(Ditapis dari jumlah _MAX_ rekod)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Papar _MENU_ rekod", "sLoadingRecords": "Diproses...", diff --git a/i18n/Mongolian.lang b/i18n/Mongolian.lang index 22618a0..5ad9e06 100644 --- a/i18n/Mongolian.lang +++ b/i18n/Mongolian.lang @@ -3,6 +3,7 @@ * @name Mongolian * @anchor Mongolian * @author Batmandakh Erdenebileg + * @lcid mn */ { @@ -10,7 +11,6 @@ "sInfo": "Нийт _TOTAL_ бичлэгээс _START_ - _END_ харуулж байна", "sInfoEmpty": "Тохирох үр дүн алга", "sInfoFiltered": "(нийт _MAX_ бичлэгээс шүүв)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Дэлгэцэд _MENU_ бичлэг харуулна", "sLoadingRecords": "Ачааллаж байна...", @@ -20,8 +20,8 @@ "oPaginate": { "sFirst": "Эхнийх", "sLast": "Сүүлийнх", - "sNext": "Өмнөх", - "sPrevious": "Дараах" + "sNext": "Дараах", + "sPrevious": "Өмнөх" }, "oAria": { "sSortAscending": ": цагаан толгойн дарааллаар эрэмбэлэх", diff --git a/i18n/Nepali.lang b/i18n/Nepali.lang index 40166b4..b5f8da1 100644 --- a/i18n/Nepali.lang +++ b/i18n/Nepali.lang @@ -3,6 +3,7 @@ * @name Nepali * @anchor Nepali * @author Bishwo Adhikari + * @lcid ne */ { @@ -10,13 +11,11 @@ "sInfo": "_TOTAL_ रेकर्ड मध्य _START_ देखि _END_ रेकर्ड देखाउंदै", "sInfoEmpty": "0 मध्य 0 देखि 0 रेकर्ड देखाउंदै", "sInfoFiltered": "(_MAX_ कुल रेकर्डबाट छनौट गरिएको)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": " _MENU_ रेकर्ड देखाउने ", "sLoadingRecords": "लोड हुँदैछ...", "sProcessing": "प्रगति हुदैंछ ...", "sSearch": "खोजी:", - "sUrl": "", "sZeroRecords": "कुनै मिल्ने रेकर्ड फेला परेन", "oPaginate": { "sFirst": "प्रथम", diff --git a/i18n/Norwegian-Bokmal.lang b/i18n/Norwegian-Bokmal.lang index c8426bf..8dd185e 100644 --- a/i18n/Norwegian-Bokmal.lang +++ b/i18n/Norwegian-Bokmal.lang @@ -4,6 +4,7 @@ * @anchor Norwegian-Bokmal * @author Petter Ekrann * @author Vegard Johannessen + * @lcid no_nb */ { @@ -11,14 +12,12 @@ "sInfo": "Viser _START_ til _END_ av _TOTAL_ linjer", "sInfoEmpty": "Viser 0 til 0 av 0 linjer", "sInfoFiltered": "(filtrert fra _MAX_ totalt antall linjer)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLoadingRecords": "Laster...", "sLengthMenu": "Vis _MENU_ linjer", "sLoadingRecords": "Laster...", "sProcessing": "Laster...", "sSearch": "Søk:", - "sUrl": "", "sZeroRecords": "Ingen linjer matcher søket", "oPaginate": { "sFirst": "Første", diff --git a/i18n/Norwegian-Nynorsk.lang b/i18n/Norwegian-Nynorsk.lang index fd51313..dfa4d5a 100644 --- a/i18n/Norwegian-Nynorsk.lang +++ b/i18n/Norwegian-Nynorsk.lang @@ -3,6 +3,7 @@ * @name Norwegian-Nynorsk * @anchor Norwegian-Nynorsk * @author Andreas-Johann Østerdal Ulvestad + * @lcid no_no */ @@ -11,14 +12,12 @@ "sInfo": "Syner _START_ til _END_ av _TOTAL_ linjer", "sInfoEmpty": "Syner 0 til 0 av 0 linjer", "sInfoFiltered": "(filtrert frå _MAX_ totalt antal linjer)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLoadingRecords": "Lastar...", "sLengthMenu": "Syn _MENU_ linjer", "sLoadingRecords": "Lastar...", "sProcessing": "Lastar...", "sSearch": "Søk:", - "sUrl": "", "sZeroRecords": "Inga linjer treff på søket", "oPaginate": { "sFirst": "Fyrste", diff --git a/i18n/Pashto.lang b/i18n/Pashto.lang index 7fdbd9f..1357e0d 100644 --- a/i18n/Pashto.lang +++ b/i18n/Pashto.lang @@ -3,6 +3,7 @@ * @name Pashto * @anchor Pashto * @author MBrig | Muhammad Nasir Rahimi + * @lcid ps */ { @@ -10,7 +11,6 @@ "sInfo": "د _START_ څخه تر _END_ پوري، له ټولو _TOTAL_ څخه", "sInfoEmpty": "د 0 څخه تر 0 پوري، له ټولو 0 څخه", "sInfoFiltered": "(لټول سوي له ټولو _MAX_ څخه)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "_MENU_ کتاره وښايه", "sLoadingRecords": "منتظر اوسئ...", diff --git a/i18n/Persian.lang b/i18n/Persian.lang index 4dbf275..2eb413d 100644 --- a/i18n/Persian.lang +++ b/i18n/Persian.lang @@ -4,6 +4,7 @@ * @anchor Persian * @author Ehsan Chavoshi * @author Mohammad Babazadeh + * @lcid fa */ { @@ -11,7 +12,6 @@ "sInfo": "نمایش _START_ تا _END_ از _TOTAL_ ردیف", "sInfoEmpty": "نمایش 0 تا 0 از 0 ردیف", "sInfoFiltered": "(فیلتر شده از _MAX_ ردیف)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "نمایش _MENU_ ردیف", "sLoadingRecords": "در حال بارگزاری...", diff --git a/i18n/Polish.lang b/i18n/Polish.lang index 26988d4..eca4832 100644 --- a/i18n/Polish.lang +++ b/i18n/Polish.lang @@ -4,6 +4,7 @@ * @anchor Polish * @author Tomasz Kowalski * @author Michał Grzelak + * @lcid pl */ { @@ -13,7 +14,6 @@ "info": "Pozycje od _START_ do _END_ z _TOTAL_ łącznie", "infoEmpty": "Pozycji 0 z 0 dostępnych", "infoFiltered": "(filtrowanie spośród _MAX_ dostępnych pozycji)", - "infoPostFix": "", "loadingRecords": "Wczytywanie...", "zeroRecords": "Nie znaleziono pasujących pozycji", "emptyTable": "Brak danych", diff --git a/i18n/Portuguese-Brasil.lang b/i18n/Portuguese-Brasil.lang index af80805..e8661a1 100644 --- a/i18n/Portuguese-Brasil.lang +++ b/i18n/Portuguese-Brasil.lang @@ -3,6 +3,7 @@ * @name Portuguese Brasil * @anchor Portuguese Brasil * @author Julio Cesar Viana Palma + * @lcid pt_br */ { @@ -10,7 +11,6 @@ "sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros", "sInfoEmpty": "Mostrando 0 até 0 de 0 registros", "sInfoFiltered": "(Filtrados de _MAX_ registros)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "_MENU_ resultados por página", "sLoadingRecords": "Carregando...", diff --git a/i18n/Portuguese.lang b/i18n/Portuguese.lang index f490c6c..2809ac2 100644 --- a/i18n/Portuguese.lang +++ b/i18n/Portuguese.lang @@ -3,6 +3,7 @@ * @name Portuguese * @anchor Portuguese * @author Nuno Felicio + * @lcid pt_pt */ { @@ -14,9 +15,7 @@ "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", diff --git a/i18n/Punjabi.lang b/i18n/Punjabi.lang new file mode 100644 index 0000000..207eb44 --- /dev/null +++ b/i18n/Punjabi.lang @@ -0,0 +1,30 @@ +/** + * Punjabi translation ( pa, pa-Guru, pa-IN ) + * @name Punjabi + * @anchor Punjabi + * @author Jagjeet Singh + * @lcid pa + */ + +{ + "sEmptyTable": "ਸੂਚੀ ਵਿੱਚ ਕੋਈ ਕਤਾਰ ਉਪਲਬਧ ਨਹੀਂ ਹੈ", + "sInfo": "_TOTAL_ ਵਿੱਚੋਂ _START_ ਤੋਂ _END_ ਐਂਟਰੀਆਂ ਦਿੱਖ ਰਹੀਆਂ ਹਨ", + "sInfoEmpty": "0 ਵਿੱਚੋਂ 0 ਤੋਂ 0 ਕਤਾਰਾਂ ਦਿੱਖ ਰਹੀਆਂ ਹਨ", + "sInfoFiltered": "(ਕੁੱਲ _MAX_ ਵਿਚੋਂ ਛਾਂਟੀਆਂ ਗਈਆਂ ਕਤਾਰਾਂ)", + "sInfoThousands": ",", + "sLengthMenu": "ਕੁੱਲ _MENU_ ਕਤਾਰਾਂ", + "sLoadingRecords": "ਸੂਚੀ ਲੋਡ ਹੋ ਰਹੀ ਹੈ...", + "sProcessing": "ਕਾਰਵਾਈ ਚੱਲ ਰਹੀ ਹੈ...", + "sSearch": "ਖੋਜ ਕਰੋ:", + "sZeroRecords": "ਕੋਈ ਕਤਾਰ ਨਹੀਂ ਮਿਲੀ", + "oPaginate": { + "sFirst": "ਪਹਿਲਾ", + "sLast": "ਅਖੀਰਲਾ", + "sNext": "ਅਗਲਾ", + "sPrevious": "ਪਿਛਲਾ" + }, + "oAria": { + "sSortAscending": ": ਕਾਲਮ ਨੂੰ ਵੱਧਦੇ ਕ੍ਰਮ ਵਿਚ ਵੇਖੋ", + "sSortDescending": ": ਕਾਲਮ ਨੂੰ ਘਟਦੇ ਕ੍ਰਮ ਵਿਚ ਵੇਖੋ" + } +} diff --git a/i18n/Romanian.lang b/i18n/Romanian.lang index 7373d2d..e8208a0 100644 --- a/i18n/Romanian.lang +++ b/i18n/Romanian.lang @@ -3,6 +3,7 @@ * @name Romanian * @anchor Romanian * @author Alexandru Jurubita + * @lcid ro */ { @@ -12,9 +13,7 @@ "sInfo": "Afișate de la _START_ la _END_ din _TOTAL_ înregistrări", "sInfoEmpty": "Afișate de la 0 la 0 din 0 înregistrări", "sInfoFiltered": "(filtrate dintr-un total de _MAX_ înregistrări)", - "sInfoPostFix": "", "sSearch": "Caută:", - "sUrl": "", "oPaginate": { "sFirst": "Prima", "sPrevious": "Precedenta", diff --git a/i18n/Rumantsch.lang b/i18n/Rumantsch.lang new file mode 100644 index 0000000..fc7a930 --- /dev/null +++ b/i18n/Rumantsch.lang @@ -0,0 +1,53 @@ +/** + * Rumantsch translation + * @name Rumantsch + * @anchor Rumantsch + * @author ULR Uniun Littaratura Rumantscha https://litteraturarumantscha.ch + * @author translation: Benedetto Vigne + * @author language pack: Christian Spescha + * @lcid rm + */ + +{ + "sEmptyTable": "Naginas endataziuns", + "sInfo": "_START_ fin _END_ da _TOTAL_ endataziuns", + "sInfoEmpty": "Naginas endataziuns", + "sInfoFiltered": "(filtrà da _MAX_ endataziuns)", + "sInfoThousands": ".", + "sLengthMenu": "_MENU_ Dumber da cumparsas", + "sLoadingRecords": "vegn chargià ..", + "sProcessing": "Spetgar p.pl...", + "sSearch": "Tschertga", + "sZeroRecords": "Naginas endataziuns.", + "oPaginate": { + "sFirst": "Emprima", + "sPrevious": "Anavos", + "sNext": "Proxima", + "sLast": "Ultima" + }, + "oAria": { + "sSortAscending": ": activar per zavrar las colonnas ensi", + "sSortDescending": ": activar per zavrar las colonnas engiu" + }, + "select": { + "rows": { + "_": "%d lingias selecziunadas", + "1": "1 lingia selecziunada" + } + }, + "buttons": { + "print": "Stampar", + "colvis": "Colonnas", + "copy": "Copiar", + "copyTitle": "Copiar en l'archiv provisoric", + "copyKeys": "Tasta ctrl u \u2318 + C per copiar
la tabella en l'arcun provisoric.

Per interrumper cliccar il messadi u smatgar Escape", + "copySuccess": { + "_": "%d lingias copiadas", + "1": "1 lingia copiada" + }, + "pageLength": { + "-1": "Mussar tut las lingias", + "_": "Mussar %d lingias" + } + } +} diff --git a/i18n/Russian.lang b/i18n/Russian.lang index e6764ac..0f24cab 100644 --- a/i18n/Russian.lang +++ b/i18n/Russian.lang @@ -4,6 +4,7 @@ * @anchor Russian * @author Tjoma * @autor aspyatkin + * @lcid ru */ { @@ -13,7 +14,6 @@ "info": "Записи с _START_ до _END_ из _TOTAL_ записей", "infoEmpty": "Записи с 0 до 0 из 0 записей", "infoFiltered": "(отфильтровано из _MAX_ записей)", - "infoPostFix": "", "loadingRecords": "Загрузка записей...", "zeroRecords": "Записи отсутствуют.", "emptyTable": "В таблице отсутствуют данные", diff --git a/i18n/Serbian.lang b/i18n/Serbian.lang index 10d4c29..95eba80 100644 --- a/i18n/Serbian.lang +++ b/i18n/Serbian.lang @@ -3,6 +3,7 @@ * @name Serbian * @anchor Serbian * @author duleorlovic + * @lcid sr */ { @@ -10,7 +11,6 @@ "sInfo": "Приказ _START_ до _END_ од укупно _TOTAL_ записа", "sInfoEmpty": "Приказ 0 до 0 од укупно 0 записа", "sInfoFiltered": "(филтрирано од укупно _MAX_ записа)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Прикажи _MENU_ записа", "sLoadingRecords": "Учитавање...", @@ -21,7 +21,7 @@ "sFirst": "Почетна", "sLast": "Последња", "sNext": "Следећа", - "sPrevious": "Предходна" + "sPrevious": "Претходна" }, "oAria": { "sSortAscending": ": активирајте да сортирате колону узлазно", diff --git a/i18n/Serbian_latin.lang b/i18n/Serbian_latin.lang index 79653b2..e2ea5c5 100644 --- a/i18n/Serbian_latin.lang +++ b/i18n/Serbian_latin.lang @@ -3,6 +3,7 @@ * @name Serbian (Latin) * @anchor Serbian (Latin) * @author Marko Novakovic + * @lcid sr_sp */ { @@ -10,7 +11,6 @@ "sInfo": "Prikaz _START_ do _END_ od ukupno _TOTAL_ zapisa", "sInfoEmpty": "Prikaz 0 do 0 od ukupno 0 zapisa", "sInfoFiltered": "(filtrirano od ukupno _MAX_ zapisa)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Prikaži _MENU_ zapisa", "sLoadingRecords": "Učitavanje...", @@ -21,7 +21,7 @@ "sFirst": "Početna", "sLast": "Poslednja", "sNext": "Sledeća", - "sPrevious": "Predhodna" + "sPrevious": "Prethodna" }, "oAria": { "sSortAscending": ": aktivirajte da sortirate kolonu uzlazno", diff --git a/i18n/Sinhala.lang b/i18n/Sinhala.lang index 604f195..1d62db1 100644 --- a/i18n/Sinhala.lang +++ b/i18n/Sinhala.lang @@ -3,6 +3,7 @@ * @name Sinhala * @anchor Sinhala * @author Isuru Sampath Ratnayake + * @lcid si */ { @@ -10,7 +11,6 @@ "sInfo": "_TOTAL_ න් _START_ සිට _END_ දක්වා", "sInfoEmpty": "0 න් 0 සිට 0 දක්වා", "sInfoFiltered": "(_MAX_ න් තෝරාගත් )", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "_MENU_ ක් පෙන්වන්න", "sLoadingRecords": "පූරණය වෙමින් පවතී...", diff --git a/i18n/Slovak.lang b/i18n/Slovak.lang index a3f8c28..1327a37 100644 --- a/i18n/Slovak.lang +++ b/i18n/Slovak.lang @@ -4,14 +4,14 @@ * @anchor Slovak * @author Ivan Dlugoš * @author (original translation) Maroš Miškerik + * @lcid sk */ { "sEmptyTable": "Nie sú k dispozícii žiadne dáta", "sInfo": "Záznamy _START_ až _END_ z celkom _TOTAL_", "sInfoEmpty": "Záznamy 0 až 0 z celkom 0 ", "sInfoFiltered": "(vyfiltrované spomedzi _MAX_ záznamov)", - "sInfoPostFix": "", - "sInfoThousands": ",", + "sInfoThousands": " ", "sLengthMenu": "Zobraz _MENU_ záznamov", "sLoadingRecords": "Načítavam...", "sProcessing": "Spracúvam...", diff --git a/i18n/Slovenian.lang b/i18n/Slovenian.lang index a366042..e4a9e80 100644 --- a/i18n/Slovenian.lang +++ b/i18n/Slovenian.lang @@ -3,6 +3,7 @@ * @name Slovenian * @anchor Slovenian * @author Marko Kroflic, Blaž Brenčič and Andrej Florjančič + * @lcid sl */ { @@ -10,7 +11,6 @@ "sInfo": "Prikazujem _START_ do _END_ od _TOTAL_ zapisov", "sInfoEmpty": "Prikazujem 0 do 0 od 0 zapisov", "sInfoFiltered": "(filtrirano od _MAX_ vseh zapisov)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Prikaži _MENU_ zapisov", "sLoadingRecords": "Nalagam...", diff --git a/i18n/Spanish.lang b/i18n/Spanish.lang index 7fa9426..384c986 100644 --- a/i18n/Spanish.lang +++ b/i18n/Spanish.lang @@ -3,33 +3,32 @@ * @name Spanish * @anchor Spanish * @author Giovanni Ariza, Aristobulo Gomez and Roberto Poo + * @lcid es_es */ { - "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" - }, - "buttons": { - "copy": "Copiar", - "colvis": "Visibilidad" - } + "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)", + "sSearch": "Buscar:", + "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" + }, + "buttons": { + "copy": "Copiar", + "colvis": "Visibilidad" + } } diff --git a/i18n/Swahili.lang b/i18n/Swahili.lang index c2cc0a4..bae0c1a 100644 --- a/i18n/Swahili.lang +++ b/i18n/Swahili.lang @@ -3,6 +3,7 @@ * @name Swahili * @anchor Swahili * @author Roy Owino + * @lcid sw */ { @@ -10,7 +11,6 @@ "sInfo": "Inaonyesha _START_ mpaka _END_ ya matokeo _TOTAL_", "sInfoEmpty": "Inaonyesha 0 hadi 0 ya matokeo 0", "sInfoFiltered": "(uschujo kutoka matokeo idadi _MAX_)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Onyesha _MENU_ matokeo", "sLoadingRecords": "Inapakia...", diff --git a/i18n/Swedish.lang b/i18n/Swedish.lang index 6691aa4..a76d82a 100644 --- a/i18n/Swedish.lang +++ b/i18n/Swedish.lang @@ -3,18 +3,18 @@ * @name Swedish * @anchor Swedish * @author Kristoffer Karlström + * @lcid sv_se */ { - "sEmptyTable": "Tabellen innehåller ingen data", + "sEmptyTable": "Tabellen innehåller inga data", "sInfo": "Visar _START_ till _END_ av totalt _TOTAL_ rader", "sInfoEmpty": "Visar 0 till 0 av totalt 0 rader", "sInfoFiltered": "(filtrerade från totalt _MAX_ rader)", - "sInfoPostFix": "", "sInfoThousands": " ", "sLengthMenu": "Visa _MENU_ rader", - "sLoadingRecords": "Laddar...", - "sProcessing": "Bearbetar...", + "sLoadingRecords": "Laddar …", + "sProcessing": "Bearbetar …", "sSearch": "Sök:", "sZeroRecords": "Hittade inga matchande resultat", "oPaginate": { diff --git a/i18n/Tajik.lang b/i18n/Tajik.lang index f104308..195c032 100644 --- a/i18n/Tajik.lang +++ b/i18n/Tajik.lang @@ -3,6 +3,7 @@ * @name Tajik * @anchor Tajik * @author Akhmedov Farkhod, Azim Ablakulov, Dzhamshed Hamroev + * @lcid tg */ { @@ -12,7 +13,6 @@ "info": "Сабтҳо аз _START_ то _END_ аз _TOTAL_ сабтҳо", "infoEmpty": "Сабтҳо аз 0 то 0 аз 0 сабтҳо", "infoFiltered": "(филтр карда шудааст аз _MAX_ сабтҳо)", - "infoPostFix": "", "loadingRecords": "Боргирии сабтҳо...", "zeroRecords": "Сабтҳо вуҷуд надорад.", "emptyTable": "Дар ҷадвал маълумот нест", diff --git a/i18n/Tamil.lang b/i18n/Tamil.lang index ce09679..32635d7 100644 --- a/i18n/Tamil.lang +++ b/i18n/Tamil.lang @@ -3,6 +3,7 @@ * @name Tamil * @anchor Tamil * @author Sam Arul Raj + * @lcid ta */ { @@ -10,7 +11,6 @@ "sInfo": "உள்ளீடுகளை் _START_ முதல _END_ உள்ள _TOTAL_ காட்டும்", "sInfoEmpty": "0 உள்ளீடுகளை 0 0 காட்டும்", "sInfoFiltered": "(_MAX_ மொத்த உள்ளீடுகளை இருந்து வடிகட்டி)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "_MENU_ காண்பி", "sLoadingRecords": "ஏற்றுகிறது ...", diff --git a/i18n/telugu.lang b/i18n/Telugu.lang similarity index 98% rename from i18n/telugu.lang rename to i18n/Telugu.lang index 2120559..7f5c99b 100644 --- a/i18n/telugu.lang +++ b/i18n/Telugu.lang @@ -3,13 +3,13 @@ * @name Telugu * @anchor Telugu * @author Srinivas Rathikrindi + * @lcid te **/ { "sEmptyTable": "పట్టికలో డేటా లేదు.", "sInfo": "మొత్తం _TOTAL_ ఎంట్రీలులో _START_ నుండి _END_ వరకు చూపిస్తున్నాం", "sInfoEmpty": "చూపిస్తున్నాం 0 నుండి 0 వరకు 0 ఎంట్రీలు లో", "sInfoFiltered": "( _MAX_ ఎంట్రీలులో నుండి వడపోయాబడినవి)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": " _MENU_ ఎంట్రీలు చూపించు", "sLoadingRecords": "లోడ్ అవుతుంది ...", diff --git a/i18n/Thai.lang b/i18n/Thai.lang index 7417ef7..f06f8f4 100644 --- a/i18n/Thai.lang +++ b/i18n/Thai.lang @@ -3,6 +3,7 @@ * @name Thai * @anchor Thai * @author Thanva Thonglor , Gumpanat Keardkeawfa + * @lcid th */ { @@ -10,7 +11,6 @@ "sInfo": "แสดง _START_ ถึง _END_ จาก _TOTAL_ แถว", "sInfoEmpty": "แสดง 0 ถึง 0 จาก 0 แถว", "sInfoFiltered": "(กรองข้อมูล _MAX_ ทุกแถว)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "แสดง _MENU_ แถว", "sLoadingRecords": "กำลังโหลดข้อมูล...", diff --git a/i18n/Turkish.lang b/i18n/Turkish.lang index b1ba6e9..70e6138 100644 --- a/i18n/Turkish.lang +++ b/i18n/Turkish.lang @@ -3,6 +3,7 @@ * @name Turkish * @anchor Turkish * @author Umit Gorkem & Erdal TAŞKESEN + * @lcid tr */ { @@ -11,7 +12,6 @@ "sInfo": "_TOTAL_ kayıttan _START_ - _END_ arasındaki kayıtlar gösteriliyor", "sInfoEmpty": "Kayıt yok", "sInfoFiltered": "(_MAX_ kayıt içerisinden bulunan)", - "sInfoPostFix": "", "sInfoThousands": ".", "sLengthMenu": "Sayfada _MENU_ kayıt göster", "sLoadingRecords": "Yükleniyor...", @@ -31,7 +31,6 @@ "select": { "rows": { "_": "%d kayıt seçildi", - "0": "", "1": "1 kayıt seçildi" } } diff --git a/i18n/Ukrainian.lang b/i18n/Ukrainian.lang index f462129..bccb3fb 100644 --- a/i18n/Ukrainian.lang +++ b/i18n/Ukrainian.lang @@ -3,6 +3,7 @@ * @name Ukrainian * @anchor Ukrainian * @author antyrat + * @lcid uk */ { @@ -12,9 +13,7 @@ "sInfo": "Записи з _START_ по _END_ із _TOTAL_ записів", "sInfoEmpty": "Записи з 0 по 0 із 0 записів", "sInfoFiltered": "(відфільтровано з _MAX_ записів)", - "sInfoPostFix": "", "sSearch": "Пошук:", - "sUrl": "", "oPaginate": { "sFirst": "Перша", "sPrevious": "Попередня", diff --git a/i18n/Urdu.lang b/i18n/Urdu.lang index 2664e61..ae11b78 100644 --- a/i18n/Urdu.lang +++ b/i18n/Urdu.lang @@ -3,6 +3,7 @@ * @name Urdu * @anchor Urdu * @author Zafar Subzwari + * @lcid ur */ { @@ -12,9 +13,7 @@ "sInfo": "فہرست کي تک _END_ سے _START_ سے ميں _TOTAL_ فہرست پوري ہے نظر پيش", "sInfoEmpty": "فہرست کي تک 0 سے 0 سے ميں 0 قل ہے نظر پيشّ", "sInfoFiltered": "(فہرست ہوئ چھني سے ميں _MAX_ قل)", - "sInfoPostFix": "", "sSearch": "کرو تلاش:", - "sUrl": "", "oPaginate": { "sFirst": "پہلا", "sPrevious": "پچہلا", diff --git a/i18n/Uzbek.lang b/i18n/Uzbek.lang index ff44437..8832739 100644 --- a/i18n/Uzbek.lang +++ b/i18n/Uzbek.lang @@ -3,6 +3,7 @@ * @name Uzbek * @anchor Uzbek * @author Farkhod Dadajanov + * @lcid uz */ { @@ -10,7 +11,6 @@ "sInfo": "Umumiy _TOTAL_ yozuvlarlardan _START_ dan _END_ gachasi ko'rsatilmoqda", "sInfoEmpty": "Umumiy 0 yozuvlardan 0 dan 0 gachasi ko'rsatilmoqda", "sInfoFiltered": "(_MAX_ yozuvlardan filtrlandi)", - "sInfoPostFix": "", "sLengthMenu": "_MENU_ ta yozuvlarni ko'rsat", "sLoadingRecords": "Yozuvlar yuklanmoqda...", "sProcessing": "Ishlayapman...", diff --git a/i18n/Vietnamese.lang b/i18n/Vietnamese.lang index 7022f30..d57aa36 100644 --- a/i18n/Vietnamese.lang +++ b/i18n/Vietnamese.lang @@ -3,6 +3,7 @@ * @name Vietnamese * @anchor Vietnamese * @author Trinh Phuoc Thai + * @lcid vi */ { @@ -12,9 +13,7 @@ "sInfo": "Đang xem _START_ đến _END_ trong tổng số _TOTAL_ mục", "sInfoEmpty": "Đang xem 0 đến 0 trong tổng số 0 mục", "sInfoFiltered": "(được lọc từ _MAX_ mục)", - "sInfoPostFix": "", "sSearch": "Tìm:", - "sUrl": "", "oPaginate": { "sFirst": "Đầu", "sPrevious": "Trước", diff --git a/i18n/Welsh.lang b/i18n/Welsh.lang index 69bfa02..b67a105 100644 --- a/i18n/Welsh.lang +++ b/i18n/Welsh.lang @@ -3,6 +3,7 @@ * @name Welsh * @anchor Welsh * @author Marco Krikke + * @lcid cy */ { @@ -10,7 +11,6 @@ "sInfo": "Dangos _START_ i _END_ o _TOTAL_ cofnod", "sInfoEmpty": "Dangos 0 i 0 o 0 cofnod", "sInfoFiltered": "(wedi hidlo o gyfanswm o _MAX_ cofnod)", - "sInfoPostFix": "", "sInfoThousands": ",", "sLengthMenu": "Dangos _MENU_ cofnod", "sLoadingRecords": "Wrthi'n llwytho...", diff --git a/pagination/input.js b/pagination/input.js index 31940cd..42954c8 100644 --- a/pagination/input.js +++ b/pagination/input.js @@ -164,6 +164,7 @@ } oSettings._iDisplayStart = iNewStart; + oSettings.oInstance.trigger("page.dt", oSettings); fnCallbackDraw(oSettings); }); diff --git a/pagination/simple_incremental_bootstrap.js b/pagination/simple_incremental_bootstrap.js index 5f14ae4..60ad1f4 100644 --- a/pagination/simple_incremental_bootstrap.js +++ b/pagination/simple_incremental_bootstrap.js @@ -85,6 +85,12 @@ $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = { }); $(nNext).click(function () { + if(oSettings.aiDisplay.length < oSettings._iDisplayLength){ + oSettings._iRecordsTotal = oSettings._iDisplayStart + oSettings.aiDisplay.length; + }else{ + oSettings._iRecordsTotal = oSettings._iDisplayStart + oSettings._iDisplayLength + 1; + } + if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength)) { @@ -151,4 +157,4 @@ $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = { } } } -}; \ No newline at end of file +}; diff --git a/sorting/absolute.js b/sorting/absolute.js index 35587b3..f14ad5a 100644 --- a/sorting/absolute.js +++ b/sorting/absolute.js @@ -69,7 +69,7 @@ var _unique = 0; // Function to encapsulate code that is common to both the string and number // ordering plug-ins. var _setup = function ( values ) { - if ( ! $.isArray( values ) ) { + if ( ! Array.isArray( values ) ) { values = [ values ]; } diff --git a/sorting/custom-data-source/dom-text-numeric.js b/sorting/custom-data-source/dom-text-numeric.js new file mode 100644 index 0000000..df3b686 --- /dev/null +++ b/sorting/custom-data-source/dom-text-numeric.js @@ -0,0 +1,16 @@ +/** + * Read information from a column of input (type number) elements and return an + * array to use as a basis for sorting. + * + * @summary Sorting based on the values of `dt-tag input` elements in a column. + * @name Input element data source + * @requires DataTables 1.10+ + * @author [Allan Jardine](http://sprymedia.co.uk) + */ + +$.fn.dataTable.ext.order['dom-text-numeric'] = function ( settings, col ) +{ + return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) { + return $('input', td).val() * 1; + } ); +} diff --git a/sorting/date-euro.js b/sorting/date-euro.js index 83aa8d2..326c812 100644 --- a/sorting/date-euro.js +++ b/sorting/date-euro.js @@ -25,8 +25,8 @@ "date-euro-pre": function ( a ) { var x; - if ( $.trim(a) !== '' ) { - var frDatea = $.trim(a).split(' '); + if ( a.trim() !== '' ) { + var frDatea = a.trim().split(' '); var frTimea = (undefined != frDatea[1]) ? frDatea[1].split(':') : [00,00,00]; var frDatea2 = frDatea[0].split('/'); x = (frDatea2[2] + frDatea2[1] + frDatea2[0] + frTimea[0] + frTimea[1] + ((undefined != frTimea[2]) ? frTimea[2] : 0)) * 1; diff --git a/sorting/datetime-moment.js b/sorting/datetime-moment.js index f937531..dd4aa93 100644 --- a/sorting/datetime-moment.js +++ b/sorting/datetime-moment.js @@ -40,7 +40,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) { } // Strip out surrounding white space - d = $.trim( d ); + d = d.trim(); } // Null and empty values are acceptable @@ -62,7 +62,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) { } // Strip out surrounding white space - d = $.trim( d ); + d = d.trim(); } return !moment(d, format, locale, true).isValid() ? diff --git a/sorting/novalue.js b/sorting/novalue.js new file mode 100644 index 0000000..90ed137 --- /dev/null +++ b/sorting/novalue.js @@ -0,0 +1,113 @@ +/** + * When sorting values in a DataTable you might want to sort any 'novalue' + * pattern as max or min value in a column (e.g. '-' treat as -1000 or 1000). + * + * This is very useful if You want to sort incomplete data, there is no + * data available for each entry in a column (e.g. Recovered for covid-19). + * + * If You do not have data, You can set the 'novalue' pattern to '-' or + * any other pattern and set exact column to treat this 'novalue' pattern + * as the max value (sethigh) or the min value (setlow). + * + * @name novalue.js + * @summary Sort any "novalue" pattern as max or min (e.g. '-' treat as -1000 or 1000). + * @author Darek L https://github.com/dprojects + * + * @example + * + * gTable = $('#covid-table').DataTable({ + * "orderClasses": true, + * "responsive": true, + * "columnDefs": [ { "type": "sethigh", "targets": [2, ,3, 4, 7, 8] }, + * { "type": "setlow", "targets": [5, 6] } ] + * }); + * + * To change order later: + * + * gTable.order([8, 'asc'],[6, 'desc']).draw(); + * + * Keep in mind there must be "desc" in this case not "dsc". + * + */ + + +/** + * Set novalue pattern below if You want other. + * For example: + * + * var novalue = 'N/A'; + * var novalue = 'no value'; + * var novalue = 'empty'; + * + */ + +var novalue = '-'; + +$.extend( $.fn.dataTableExt.oSort, { + + "sethigh-asc": function ( a, b ) { + + let x = a; + let y = b; + + if (x == novalue && y != novalue) { return 1; } + else if (x != novalue && y == novalue) { return -1; } + else if (x == novalue && y == novalue) { return 0; } + else if (x != novalue && y != novalue) { + + x = parseFloat(a); + y = parseFloat(b); + + return ( (x < y) ? -1 : ( (x > y) ? 1 : 0 ) ); + } + }, + "sethigh-desc": function ( a, b ) { + + let x = a; + let y = b; + + if (x == novalue && y != novalue) { return -1; } + else if (x != novalue && y == novalue) { return 1; } + else if (x == novalue && y == novalue) { return 0; } + else if (x != novalue && y != novalue) { + + x = parseFloat(a); + y = parseFloat(b); + + return ( (x < y) ? 1 : ( (x > y) ? -1 : 0 ) ); + } + }, + + "setlow-asc": function ( a, b ) { + + let x = a; + let y = b; + + if (x == novalue && y != novalue) { return -1; } + else if (x != novalue && y == novalue) { return 1; } + else if (x == novalue && y == novalue) { return 0; } + else if (x != novalue && y != novalue) { + + x = parseFloat(a); + y = parseFloat(b); + + return ( (x < y) ? -1 : ( (x > y) ? 1 : 0 ) ); + } + }, + "setlow-desc": function ( a, b ) { + + let x = a; + let y = b; + + if (x == novalue && y != novalue) { return 1; } + else if (x != novalue && y == novalue) { return -1; } + else if (x == novalue && y == novalue) { return 0; } + else if (x != novalue && y != novalue) { + + x = parseFloat(a); + y = parseFloat(b); + + return ( (x < y) ? 1 : ( (x > y) ? -1 : 0 ) ); + } + } +}); diff --git a/sorting/persian.js b/sorting/persian.js index b5bf12a..21e3d5d 100644 --- a/sorting/persian.js +++ b/sorting/persian.js @@ -21,7 +21,7 @@ var persianSort = [ 'آ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'س', 'ش', 'ص', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', 'ي' ]; function GetUniCode(source) { - source = $.trim(source); + source = source.trim(); var result = ''; var i, index; for (i = 0; i < source.length; i++) { diff --git a/sorting/turkish-string.js b/sorting/turkish-string.js index 9c9d2de..e5b6d02 100644 --- a/sorting/turkish-string.js +++ b/sorting/turkish-string.js @@ -11,7 +11,7 @@ * // Use plug-in for all columns * $('#example').dataTable({ * columnDefs: [ - * { type: 'turkish'. targets: '_all' } + * { type: 'turkish', targets: '_all' } * ] * }); */ diff --git a/type-detection/num-html.js b/type-detection/num-html.js index 077557d..eb2aea4 100644 --- a/type-detection/num-html.js +++ b/type-detection/num-html.js @@ -18,7 +18,7 @@ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { sData = typeof sData.replace == 'function' ? sData.replace( /<[\s\S]*?>/g, "" ) : sData; - sData = $.trim(sData); + sData = sData.trim(); var sValidFirstChars = "0123456789-"; var sValidChars = "0123456789.";