Translating Plugin
-
Hello!
I am working on translating this plugin for a client. I have managed to translate the fields in the registration form but not on the profile form. Can you please let me know how to translate the fields on the profile form?
(For users looking for how to translate this should hopefully help.)
So far I have used the following filters to translate the registration form:
function rw_email () { $newlabel = "Addresse Email:"; return $newlabel; } function rw_confirmemail () { $newlabel = "Confirmez Addresse Email:"; return $newlabel; } function rw_username () { $newlabel = "Nom dutilisateur:”; return $newlabel; }
function rw_password () { $newlabel = “Mot de Passe:”; return $newlabel; }
function rw_confirmpass () { $newlabel = “Confirmez Mot de Passe:”; return $newlabel; }add_filter(‘simplr_label_email’, ‘rw_email’ );
add_filter(‘simplr_label_confirm_email’, ‘rw_confirmemail’ );
add_filter(‘simplr_label_username’,’rw_username’ );
add_filter(‘simplr_label_password’, ‘rw_password’);
add_filter(‘simplr_label_confirm’, ‘rw_confirmpass’);
`There don’t seem to be any filters applied to the profile form – so the above doesn’t work.
While you are looking at this, can you please also explain the filters for the error messages as this needs to be translated too. Thanks for your help!!
Brian
-
(sorry, a label broke the code field, here it is again)
function rw_email () { $newlabel = "Addresse Email:"; return $newlabel; } function rw_confirmemail () { $newlabel = "Confirmez Addresse Email:"; return $newlabel; } function rw_username () { $newlabel = "Nom dutilisateur:"; return $newlabel; } function rw_password () { $newlabel = "Mot de Passe:"; return $newlabel; } function rw_confirmpass () { $newlabel = "Confirmez Mot de Passe:"; return $newlabel; } add_filter('simplr_label_email', 'rw_email' ); add_filter('simplr_label_confirm_email', 'rw_confirmemail' ); add_filter('simplr_label_username','rw_username' ); add_filter('simplr_label_password', 'rw_password'); add_filter('simplr_label_confirm', 'rw_confirmpass');
The topic ‘Translating Plugin’ is closed to new replies.