Polylang – translate “Bulk table message”
For example, I set “Bulk table message” = BULK TEXT for one rule and “Bulk table message” = BULK TEXT2 for another rule
1. Add this code to functions.php and edit it (replace BULK TEXT with your phrases)
1 2 3 4 5 6 7 8 |
add_action('init', function() { pll_register_string('bulk-text-1', 'BULK TEXT', 'Advanced dynamic pricing'); pll_register_string('bulk-text-1', 'BULK TEXT2', 'Advanced dynamic pricing'); }); add_filter('wdp_format_bulk_table_message', function($s){ return pll__($s); }); |
2. Visit >Languages>Strings translations, select group Advanced dynamic pricing and add necessary translations