[TYPO3-dev] extJS library
Steffen Kamper
info at sk-typo3.de
Thu Feb 5 09:57:56 CET 2009
Hi Dmitry,
Dmitry Dulepov schrieb:
> Hi!
>
> ExtJS recommends to do it differently... For example, object should have:
>
> ====================
> TYPO3.TCEForms.date = Ext.extend(...., function() {
> label_badDate: 'Bad date',
> ...
> });
> ====================
>
> And localized version:
>
> ====================
> TYPO3_TCEForms.date.nl = {
> label_bad_date = 'Lorem ipsum'
> };
>
> $dateField = new TYPO3.TCEForms.date({ .... });
> Ext.apply($dateField, TYPO3.TCEForms.date.nl, {});
> ====================
>
> Names for label properties are not standardized. I am not sure if we can use this whole approach. It is worth doing it like ExtJS recommends but we have to evaluate of it is convenient for us.
>
i also saw this, but i don't like it for TYPO3. extJS does this for
other reasons, eg displaying a language select and change lang dynamic.
We don't need that, as the BE_USER has selected his language before, so
i would suggest to use the simple approach.
vg Steffen
More information about the TYPO3-dev
mailing list