Hi,
my form shows NO translations (multi language plugin) of the keyphrases anymore after server side validation (e.g. custom error message: "you forget to fill in the form").
Why?
I installed the newest updates and versions.
Thanks in advance,
Frank
my form shows NO translations (multi language plugin) of the keyphrases anymore after server side validation (e.g. custom error message: "you forget to fill in the form").
Why?
I installed the newest updates and versions.
Thanks in advance,
Frank
Hi Frank,
Are you saying that the text in the form isn't translated? Or just the error message?
Bob
Are you saying that the text in the form isn't translated? Or just the error message?
Bob
Hi Bob,
the complete text isn't translated anymore after I hit the submit button and the form got validated by:
I didn't use java script for validating, just PHP.
In the multi language plugin I use $EMAIL as a placeholder and then I translate them like: $EMAIL=E-Mail
CRAZY UPDATE🙄
And now everything is ok. I swear I tested it yesterday a thousand times! Ok almost a thousand times. :wink:
Best regards,
Frank
the complete text isn't translated anymore after I hit the submit button and the form got validated by:
<?php
if($_POST['email'] == '')
return 'blah blah';
?>I didn't use java script for validating, just PHP.
In the multi language plugin I use $EMAIL as a placeholder and then I translate them like: $EMAIL=E-Mail
CRAZY UPDATE🙄
And now everything is ok. I swear I tested it yesterday a thousand times! Ok almost a thousand times. :wink:
Best regards,
Frank
Hi Frank,
Glad it's working as I had no idea why it stopped.
Bob
PS $EMAIL may not be ideal as a placeholder as $ is used as the PHP variable prefix. #EMAIL# or just plain EMAIL should work OK. The only tricky thing is that if you use both EMAIL and USEREMAIL then you must have EMAIL last or it will replace the value in the other placeholder.
Glad it's working as I had no idea why it stopped.
Bob
PS $EMAIL may not be ideal as a placeholder as $ is used as the PHP variable prefix. #EMAIL# or just plain EMAIL should work OK. The only tricky thing is that if you use both EMAIL and USEREMAIL then you must have EMAIL last or it will replace the value in the other placeholder.
Hi Bob,
thanks for your useful tipps, they are very well appreciated.
Greetings and a happy new year,
Frank
thanks for your useful tipps, they are very well appreciated.
Greetings and a happy new year,
Frank
I have the same exact problem:
After a server validation error the form is displayed again but labels are not translated.
I have no $ characters in the translation strings, here is my server validation code:
The error message is displayed correctly in the red box above the form, but the form labels are not translated anymore.
Please help!
After a server validation error the form is displayed again but labels are not translated.
I have no $ characters in the translation strings, here is my server validation code:
<?php
global $mainframe;
if ( JRequest::getVar('password') != JRequest::getVar('password2') )
return 'Passwords do not match';
?>The error message is displayed correctly in the red box above the form, but the form labels are not translated anymore.
Please help!
This topic is locked and no more replies can be posted.
