How to translate the DataTables script

As of Version 1.2.3, translation is now built into the DataTables Extension.

The DataTables Extension will automatically use the language of the WordPress installation. If you would like to override the translation used, you can add the code below to your theme's functions.php:

add_filter( 'gravityview/datatables/config/locale', 'modify_gravityview_datatables_locale', 10, 2 );

 * Modify the locale used in the DataTables translation
function modify_gravityview_datatables_locale( $existing_locale, $translations ) {

	// Define the Locale Code, as shown here:
	// We're using German in this example:
	return 'de_DE';

Read here how to add these code samples to your website: Where to put code samples.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us