Forums

User Registration Form - Error Messages in Wrong Language

wireframe 09 Sep, 2014
We use Chronoforms all the time but in this instance, we have a multilingual site with 4 registration forms - one for each language. All of the pop-up field data validation works fine in each language but when a user enters a password that does not match or they try to register using an existing account upon submit, the red (behind the fields) error messages come up in English for all languages. How do I fix this? This is a big project with strict deadlines and I have checked the FAQs and scoured the FORUM without any way to fix.
I appreciate any help you can offer.
Thanks.
Dawna
Max_admin 10 Sep, 2014
Hi Dawna,

I believe the errors come from Joomla itself, but i don't have the code to check now, please try to update to the latest v4 for J2.5

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wireframe 10 Sep, 2014
Hi Max,

Thanks for the suggestions and I did update it to the latest version but still not working.
These are the highlighted messages which come from the User Registration Plugin when trying to register a new user through Chronoforms. The field validation works fine and changes to the correct language but these messages like "Passwords do NOT Match" and "User Name already used" are when the user fills out the form incorrectly and it pings the DB upon trying to register them.
Anything else I can try?

This project is due today and this is the only issue holding me up.
Thanks for your help.
Dawna
Max_admin 10 Sep, 2014
Hi Dawna,

Ok, the messages are hard coded in the file, we need to use a workaround to translate this:

Add a custom code action to the top of your "on load" event and use this code:

if(!empty($form->validation_errors["confirm_password_field_name"])){
$form->validation_errors["confirm_password_field_name"] = "ERROR_TO_TRANSLATE";
}


Then you will need to translate the ERROR_TO_TRANSLATE in your multi language!

Let me know how this works!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wireframe 10 Sep, 2014
Hi Max,

Thanks for the quick reply. It did not work. I will also need to use this for the other message which may come up when a username is already in use...

Attached is my screen shot of the multi-language action and where I have placed it and then the contents. Have I done it correctly?

Thanks.
Dawna
Max_admin 11 Sep, 2014
Hi Dawna,

but where is the "Custom code" action with the code I posted ? it should be before the "multi lang" action in your image

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wireframe 11 Sep, 2014
It is in there, but in the on-load sections, not the submit. Should I move it?
Will that fix the issue?
Thanks Max.
Dawna
Max_admin 12 Sep, 2014
It should fix the problem, but you should replace the "confirm_password_field_name" with the confirm password field name.

If its at the top of the on load event then that should be ok.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.