[TYPO3-mvc] translate error messages
Peter Niederlag
typo3-list at niekom.de
Tue Feb 15 16:06:07 CET 2011
Hello,
Am 15.02.2011 15:54, schrieb Franz Koch:
> Hey Peter,
[...]
> In the viewHelper I also check for various translation keys
> automatically - first property and code specific and then step by step
> fall back to a generic message if no property specific one is available
> in the language files:
>
> errors.[propertyName].[errorCode] = Code specific message
> errors.[propertyName].[invalid/required] = generalized message
> errors.[errorCode] = Code specific, generalized message
> errors.[invalid/required] = fallback
That's exactly the kind of solution I was looking into. :->
Would be cool if you could post/put that again somewhere.
[...]
actually it probably should be?
errors.[XXXXX].[propertyName].[errorCode] = Code specific message
where XXXX is the argument name, which matches the domain model, if one
is lucky enough. At least somehow it must be possible to differentiate
between, foo.title and bar.title
Greets,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
More information about the TYPO3-project-typo3v4mvc
mailing list