[TYPO3-project-formidable] Internationalize date format
Manuel Rego Casasnovas
mrego at igalia.com
Tue Jun 12 14:06:18 CEST 2007
Hi!
I've modified the function _getFormat to can use a XML configuration like:
<renderlet:DATE name="birth_date">
<data>
<datetime>
<format>LLL:EXT:gl_myext/locallang.xml:dateformat</format>
</datetime>
</data>
</renderlet:DATE>
The new source code:
function _getFormat() {
$mFormat = $this->oForm->_navConf("/data/datetime/format/",
$this->aElement);
if(is_array($mFormat) && array_key_exists("userobj", $mFormat)) {
$mFormat = $this->oForm->_callUserObj($mFormat);
}
return $this->oForm->_getLLLabel($mFormat);
}
What do you think about this new option?
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list