Tell us what you are trying to do? I try to translate "New password", "Repeat new password" and "Reset password" but I can't seem to find them: hidden link
Hi,
To override these text labels from the password reset form, you can extend the code snippet that was shared in the previous thread.
( ref:https://toolset.com/forums/topic/where-can-i-translate-the-login-form/#post-1891507 )
add_filter( 'gettext', 'custom_login_form_label', 20, 3 );
function custom_login_form_label( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Username or Email' :
$translated_text = __( 'Gebruikersnaam of email', 'wpv-views' );
break;
case 'New password' :
$translated_text = __( 'Nieuw paswoord', 'wpv-views' );
break;
case 'Repeat new password' :
$translated_text = __( 'Herhaal nieuw wachtwoord', 'wpv-views' );
break;
case 'Reset Password' :
$translated_text = __( 'Wachtwoord opnieuw instellen', 'wpv-views' );
break;
}
return $translated_text;
}
regards,
Waqar
I tried to translate "New password" to "Nieuw wachtwoord", "Repeat new password" to "Herhaal nieuw wachtwoord" and "Reset password" to "Reset wachtwoord" over Toolset's custom code feature in settings but unfortunately, this snippet cannot be edited directly. Check file permissions and wp-config.php constants DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS. Alternatively, you can edit the file manually. (see previous reply).
Can you do it for me please?
For this file editing restrictions, you can follow the suggestions from my reply on the other ticket.
( ref: https://toolset.com/forums/topic/where-can-i-translate-the-login-form/#post-1894547 )
Can we use Poedit pro to translate the English strings to Dutch?
What plugin from Toolset should we select: Toolset Framework? Toolset Blocks? Toolset Views? Toolset Maps?...?
Yes, if you prefer, you can also use the Poedit for translating these strings.
The Pro version should be able to locate the PO file from each Toolset plugin automatically, but if you'd like to locate them manually, you'll find them at:
1. Toolset Blocks:
/toolset-blocks/vendor/toolset/toolset-common/languages/orig/views.po
( it should cover the text strings used in the login and password reset forms etc )
2. Toolset Maps:
/toolset-maps/languages/orig/toolset-maps.po
( it should cover the text strings used in the distance-based search filters )
My issue is not yet resolved