Translation post_tile bug
-
I found strange bug Some of the text were not getting translated, so I dug into code and found where the problem was happening exactly:
class-theme-my-login-template.php line 153$title = get_post_field( ‘post_title’, $page_id );
this title never gets translated. simple solution is to pass it for translation:
$title = __( get_post_field( ‘post_title’, $page_id ) , ‘theme-my-login’ );
Though didn’t dig too deep into mechanics to know if this is proper fix;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Translation post_tile bug’ is closed to new replies.