Added support for a languages folder

This commit is contained in:
2026-07-19 13:06:47 +02:00
parent 8032a92653
commit 48d6b496d5
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -72,6 +72,7 @@ Is this plugin prepared for multisites? Yes.
* Forked by [Michel Bats](https://batssoft.nl/). * Forked by [Michel Bats](https://batssoft.nl/).
* Bumped DataTables to version 2.3.8. * Bumped DataTables to version 2.3.8.
* Moved the settings page under the settings menu. * Moved the settings page under the settings menu.
* Added support for a languages folder.
= 4.1.0 = = 4.1.0 =
* Compatibility with WordPress version 6.7.1 * Compatibility with WordPress version 6.7.1
+5
View File
@@ -289,6 +289,11 @@ function wp_jdt_style_and_script()
wp_enqueue_script('jdt-js-datatables', plugins_url('js/dataTables.js', __FILE__), array('jquery'), '2.3.8'); wp_enqueue_script('jdt-js-datatables', plugins_url('js/dataTables.js', __FILE__), array('jquery'), '2.3.8');
} }
add_action('plugins_loaded', 'wp_jdt_load_textdomain');
function wp_jdt_load_textdomain() {
load_plugin_textdomain('wp-jquery-datatable', false, dirname(plugin_basename(__FILE__)) . '/languages');
}
add_shortcode('wp_jdt', 'wp_jdt_shortcode'); // add shortcode [wp_jdt id="test" info="true" paging="true" page_length="7" paging_type="full_numbers" b_length_change="true" ordering="true" order_row_number="3" order_row_number_sort="desc" searching="true"] add_shortcode('wp_jdt', 'wp_jdt_shortcode'); // add shortcode [wp_jdt id="test" info="true" paging="true" page_length="7" paging_type="full_numbers" b_length_change="true" ordering="true" order_row_number="3" order_row_number_sort="desc" searching="true"]
function wp_jdt_shortcode($atts, $content = "") function wp_jdt_shortcode($atts, $content = "")
{ {