[TYPO3-project-formidable] Internationalize date format
Jerome Schneider
j.schneider at ameos.com
Thu May 10 10:57:39 CEST 2007
Ooops, forgot to remove a debug() line 82 of the file.
This post contains the corrected file
( also updated online in archive on ameos.com )
Jerome Schneider
Jerome Schneider a écrit :
> Hi Manuel
>
> Actually it's not a bug, it's a missing feature :D
>
> I implemented userobj execution on datetime/format now so that your
> first solution can work
>
> You have to replace the file
>
> EXT:ameos_formidable/api/base/rdt_date/api/class.tx_rdtdate.php
>
> by the one included in this message as an attached file
>
>
> If your newsreader cannot acced attached files, here's where you can get
> it online:
>
> http://www.ameos.com/fileadmin/formidable/patches/070-userobj-dateformat-class.tx_rdtdate.zip
>
>
>
> I'll include these modifications also in the SVN so that it'll be
> included in future releases of formidable.
>
>
> Hope this will do the job :)
>
> Regards,
> Jerome Schneider
>
>
>
>
> Manuel Rego Casasnovas a écrit :
>> Hello!
>>
>> I'm using FORMidable and is a very good and powerful extension.
>>
>> I want to internationalize date format for DATE renderlet, I think in
>> two posibilities, but these solutions don't work:
>>
>> <renderlet:DATE name="birth_date">
>> <data>
>> <datetime>
>> <format>
>> <userobj>
>> <extension>this</extension>
>> <method>_getDateFormat</method>
>> </userobj>
>> </format>
>> </datetime>
>> </data>
>> </renderlet:DATE>
>>
>> In my function _getDateFormat I could return the format according to the
>> user locale.
>>
>> or
>>
>> <renderlet:DATE name="birth_date">
>> <data>
>> <datetime>
>>
>> <format>LLL:EXT:ux_my_extension/locallang.xml:ux_my_extension.birth_date.format</format>
>>
>> </datetime>
>> </data>
>> </renderlet:DATE>
>>
>> Here in my locallang.xml I could define the suitable format for each
>> language.
>>
>>
>> I tried to use formidabledatetime [1], but this doesn't work for the
>> current Ameos FORMidable version (0.7.0).
>>
>> Somebody knows a way to do this?
>>
>> Thanks,
>> Manuel Rego
>>
>> [1]
>> http://typo3.org/extensions/repository/view/formidabledatetime/0.3.0/
>>
>> ---
>> http://www.igalia.com
>
More information about the TYPO3-project-formidable
mailing list