Tłumaczenie w motywie potomnym do dodania w pliku functions.php
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 );
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Or' :
$translated_text = __( 'Lub' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 999, 3 );
W motywie.