Hi, I have two forms on a single language site, one for english and one for german speaking visitors. I set the field "JS Validation Language" to the according language in each form (english/german).
Still in both forms the error messages appear in german - the default language of the site.
Unfortunately I can't find out what I am doing wrong.
Thank you for your help!
Still in both forms the error messages appear in german - the default language of the site.
Unfortunately I can't find out what I am doing wrong.
Thank you for your help!
Thank you Greyhead, but that's what I did to choose the language. Unfortunately with no results.
Hi saber,
Then most likely something isn't setting the Joomla! language correctly :-(
Please post a link to the form so I can take a quick look.
Bob
Then most likely something isn't setting the Joomla! language correctly :-(
Please post a link to the form so I can take a quick look.
Bob
Thank you Bob!
Here is the english form:
http://web1395.login-14.loginserver.ch/europe/uk-contact
And here the german version:
http://web1395.login-14.loginserver.ch/europe/de-kontakt
If you need to login to the backend, please let me know.
As the articles in the countries can vary the lanuage management ist not solved by the language-function of Joomla in this website but by categories. So the language function is actually not used at all.
Here is the english form:
http://web1395.login-14.loginserver.ch/europe/uk-contact
And here the german version:
http://web1395.login-14.loginserver.ch/europe/de-kontakt
If you need to login to the backend, please let me know.
As the articles in the countries can vary the lanuage management ist not solved by the language-function of Joomla in this website but by categories. So the language function is actually not used at all.
Hi saber,
How do you identify the language for each page? You'll need that information to set the correct language in the form. You can do that by setting the current Locale in a Load JS action in your form.
Bob
As the articles in the countries can vary the language management ist not solved by the language-function of Joomla in this website but by categories.
So, I was correct, the Joomla! language isn't being set correctly.How do you identify the language for each page? You'll need that information to set the correct language in the form. You can do that by setting the current Locale in a Load JS action in your form.
Bob
Hi Bob, thank you for your explanations!
I read and tried a lot but don't succeed in getting messages in another language than the default language of Joomla.
What exactly do I need to write in the Load JS action? Should the line
do the job or do I have to write something more or different into the "action"-field?
In your FAQ there is an example for setting the language in a custom code action like this:
Shouldn't this work in my case also?
Thanks in advance for your answer!
I read and tried a lot but don't succeed in getting messages in another language than the default language of Joomla.
What exactly do I need to write in the Load JS action? Should the line
set.Locale('en-US');
do the job or do I have to write something more or different into the "action"-field?
In your FAQ there is an example for setting the language in a custom code action like this:
<?php
$form->form_params->set('jsvalidation_lang', 'xx');
?>
Shouldn't this work in my case also?
Thanks in advance for your answer!
Hi saber,
I think that for the validation to work you need to use the second one (the Locale works for the DatePicker but I don't think the validator check the locale :-( ).
Bob
I think that for the validation to work you need to use the second one (the Locale works for the DatePicker but I don't think the validator check the locale :-( ).
Bob
Thank you Bob.
Unfortunately the second one does not seem to have any effect on the language either.
Do you have another idea how to solve the problem?
Unfortunately the second one does not seem to have any effect on the language either.
Do you have another idea how to solve the problem?
Hi saber,
What are you putting in place of xx? And how do you know which language tag to use there?
Bob
What are you putting in place of xx? And how do you know which language tag to use there?
Bob
Hi Bob, I tried with "en" and "en-GB" because I thougt that this code would "choose" the english language file for the error messages (en.js). Apparently I understood it totally wrong, sorry.
I need to tell the form to choose a particular "error-language-file" regardless from the language-settings in Joomla. As I will have to build the form in several languages it would be great if there is a solution for that. Otherwise I have to set the error message in every single field, which means a lot of work... - but its not the end of the world ;-)
Simone
I need to tell the form to choose a particular "error-language-file" regardless from the language-settings in Joomla. As I will have to build the form in several languages it would be great if there is a solution for that. Otherwise I have to set the error message in every single field, which means a lot of work... - but its not the end of the world ;-)
Simone
Hi saber,
I think that 'en' or 'de' should be what is needed.
I'll test when I have time but it probably won't be tomorrow as I'm out for most of the day.
Bob
I think that 'en' or 'de' should be what is needed.
I'll test when I have time but it probably won't be tomorrow as I'm out for most of the day.
Bob
Thank you Bob!
And no hurry - a solution would be great but it is not that urgent.
And no hurry - a solution would be great but it is not that urgent.
This topic is locked and no more replies can be posted.