Forums

Error messages translation does not work

appartement 13 Dec, 2009
Hello,

Error messages translation does not work with cf_multi_language.php (Date of file: 7th September 2009, got it from this forum).

Software versions: Joomla 1.5.12, ChronoForms_V3.1_RC5.5, ChronoForms_Plugin_V3.1_RC5.2, mod_chronocontact_V3.1_RC5.2

I made Hungarian translation for the (English) form, it works fine - except for error messages, they appear only in English.


The site (you can check the problem on the last menu item on the left - Booking or inquiry):
http://www.vacationrentalbudapest.net/

Only the multi_language plugin is enabled in Chronoform component.

The translation string I have made in the attachment.

Thanks in advance for any ideas.[attachment=0]chronoforms_multilang.jpg[/attachment]
GreyHead 13 Dec, 2009
Hi appartement,

From the help tab:

For title entries to show validation error messages.

Are your error messages in the title attributes e.g. title='This field is required'?

Bob
appartement 14 Dec, 2009
Thanks, I see the point already.

I need to give the wished error message in the title attribute of the required input HTML tag.

First try:
<input class="cf_inputbox required" maxlength="150" size="40" title="" id="text_2" name="text_2" type="text" />
Result: Error message is the one in the jsvalidation2.js, which can not be translated (or I just do not know how)

Second try (works perfect):
<input class="cf_inputbox required" maxlength="150" size="40" title="This field is required" id="text_2" name="text_2" type="text" />
Result: Error message is the one in the title attribute, which can be translated

Thanks again especially for the quick reaction
GreyHead 14 Dec, 2009
Hi Appartement,

That looks correct to me.

Bob
This topic is locked and no more replies can be posted.