[TYPO3] srfeuserregister & errorMessageForEvalRule

Cray Flatline cryangel at gmail.com
Fri Nov 23 08:39:09 CET 2007


plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.tx_extrafeusers_terms 
  = I have read, understand and agree to the Terms and Conditions

you need to substitute "languageCode" with language code. Either 
"default" or some specified, i.e. ru, en, de etc. (:  like

plugin.tx_srfeuserregister_pi1._LOCAL_LANG.default.tx_extrafeusers_terms 
  = I have read, understand and agree to the Terms and Conditions

or

plugin.tx_srfeuserregister_pi1._LOCAL_LANG.en.tx_extrafeusers_terms  = I 
have read, understand and agree to the Terms and Conditions



Simon Browning wrote:
> I'm having trouble getting an error message to display for fields I've 
> added to front end user registration and would appreciate any advice or 
> a boot in the right direction.
> 
> I've got my extra fields and their labels showing up but am having a 
> hard time figuring out what the correct ts should be for specifying the 
> error message when an evaluation rule isn't specified.
> 
> I have a custom field, which is a checkbox, specified like this:
> 
> plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.tx_extrafeusers_terms 
> = I have read, understand and agree to the Terms and Conditions
> 
> plugin.tx_srfeuserregister_pi1.create.evalValues.tx_extrafeusers_terms = 
> required
> 
> 
> and have tried
> 
> plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.missing_tx_extrafeusers_terms 
> = You must agree to the site terms and conditions to continue
> 
> and
> 
> plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.evalErrors_required_tx_extrafeusers_terms 
> = You must agree to the site terms and conditions to continue
> 
> yet if the box is not checked I get "Please enter a value!", which is 
> the default error message from locallang.
> 
> I'm not sure if I've got the TS right on the evalerrors line, the manual 
> says:
> 
> plugin.tx_srfeuserregister_pi1._LOCAL_LANG.languageCode.evalErrors_evalRuleName_myNewFieldName 
> = errorMessageForEvalRule
> 
> Thanks.
> 
> Simon

-- 
W BR, Cray Flatline


More information about the TYPO3-english mailing list