Skip Navigation

[Resolved] Where can I translate the reset password form?

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by matthiasV-2 3 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1890911

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

#1891509

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

#1893891

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?

#1894549

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 )

#1896127

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?...?

#1896231

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 )

#1898589

My issue is not yet resolved