Cannot translate the strings 'Lost Password' and 'Register' in Theme My Login
I used the Theme My Login plugin to change the layout of the Login and Register pages.
I translated all "Register" and "Lost Password" strings in this plugin into Korean using Loco Translate. However, these strings did not change in the Login page and other pages.
The above figure shows the login page when the Theme by Login plugin is used with Avada.
If you want to translate the "Register" and "Lost Password" strings into your language, you need to modify the file named "class-theme-my-login-template.php" under the folder "/wp-content/plugins/theme-my-login/includes."
In fact, it's not a good idea to modify plugin core files in WordPress. Since it's a bug with this plugin itself, I think it would be best if the plugin developer corrects this issue.
Please locate the following lines in the class-theme-my-login-template.php file:
if ( $page_id = Theme_My_Login::get_page_id( $action ) ) { $title = get_post_field( 'post_title', $page_id ); } else {
Then, please replace it with the following code:
if ( $page_id = Theme_My_Login::get_page_id( $action ) ) { switch ( $action ) { case 'register': $title = __( 'Register', 'theme-my-login' ); break; case 'lostpassword': case 'retrievepassword': case 'resetpass': case 'rp': $title = __( 'Lost Password', 'theme-my-login' ); break; case 'login': $title = __( 'Log In', 'theme-my-login' ); break; default: $title = get_post_field( 'post_title', $page_id ); } } else {
Source: http://antiqueh.tistory.com
Now the string "Register" and "Lost Password" will be changed to your language if you translate them.
Just for your reference, if you need professional translation services from English to Korean, Chinese, Japanese or other languages, you might resort to ICanLocalize run by the developer of WPML. WPML is a popular plugin which convert WP sites into multilingual sites. Translating websites, iOS, Android and Web software is what ICanLocalize does best; starting at $0.09 per word.