From b1eb6ffee059c884df30b381150c4b4f07c9b107 Mon Sep 17 00:00:00 2001 From: Michel Date: Sun, 19 Jul 2026 13:12:16 +0200 Subject: [PATCH] Added DataTables language support for 'search' --- readme.txt | 1 + wp-jquery-datatable.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index d0563cc..e9986c1 100644 --- a/readme.txt +++ b/readme.txt @@ -76,6 +76,7 @@ Is this plugin prepared for multisites? Yes. * Changed some texts to make use of global translations. * Added a domain to most of the texts for translation files. * Added a Dutch translation file. +* Added DataTables language support for 'search'. = 4.1.0 = * Compatibility with WordPress version 6.7.1 diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php index 88f2336..f9ba4f0 100644 --- a/wp-jquery-datatable.php +++ b/wp-jquery-datatable.php @@ -359,6 +359,9 @@ function wp_jdt_shortcode($atts, $content = "") $wp_jdt_script .= "'order': [$table_order_row_number,'$table_order_row_number_sort'], \n"; } $wp_jdt_script .= "'searching': $table_searching, \n"; + $wp_jdt_script .= "language: {\n"; + $wp_jdt_script .= "'search': '" . __('Searching', 'wp-jquery-datatable') . ":', \n"; + $wp_jdt_script .= "}, \n"; $wp_jdt_script .= "} ); \n"; $table_wrapper_id = $table_id . "_wrapper";