Hi,
thanks for your post, and sorry for the trouble.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Hi,
thanks for the link! It seems like your site is using English as the main language (in the admin area).
To have all tables in Latvian, please add this to the site’s “functions.php” file:
add_filter( 'tablepress_table_render_options', sergis_tablepress_use_german_datatables', 10, 2 );
function sergis_tablepress_use_german_datatables( $render_options, $table ) {
$render_options['datatables_locale'] = 'lv';
return $render_options;
}
Regards,
Tobias
Thread Starter
sergis
(@sergis)
Tobias something goes wrong. Error 500 and here is image from functions.php
Hi,
oh, sorry, I made a typo in the first line of the code. Please try again with
add_filter( 'tablepress_table_render_options', 'sergis_tablepress_use_german_datatables', 10, 2 );
function sergis_tablepress_use_german_datatables( $render_options, $table ) {
$render_options['datatables_locale'] = 'lv';
return $render_options;
}
Regards,
Tobias
Thread Starter
sergis
(@sergis)
Big thanks you Tobias. Its work now for me.
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!