Skip Navigation

[Resolved] Login form in Hebrew

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 9 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2685440

After I set up the site in Hebrew and the supporter helped me to make it suitable for Hebrew with the theme settings I have a problem with the login form that the email or username line appears in English and the password line appears in Hebrew [since it is not possible to edit the login form so I cannot edit these fields]
Thank you
Younes

#2685599

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can translate it with wordpress filter hook 'gettext'
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

What if you use the gettext hook to change the string in your desired language:

add_filter('gettext', 'func_change_login_text', 20, 2);
function func_change_login_text($translated_text, $domain){
    if($translated_text == 'Username or Email'){
        $translated_text = 'Username or Email in your language';
    }
    return $translated_text;
}

You can add the above code to your theme's functions.php file.

#2686140

Thanks for the help, sorry, I still don't know how to add a code, to a shortcode!
I added a WordPress shortcode box in which I added a shortcode [wpv-login-form] Now how do I add the code you sent me so that the shortcode of the login form works according to the code you sent me
Much appreciation and many thanks
Younes

#2686212

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You should try to add the filter code I shared to "Custom Code" section offered by Toolset:
=> https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/#adding-custom-php-code-using-toolset

#2686639

I just checked and it worked easily for me - you're a champ
Thank you very much
Appreciator - Younes