[TYPO3-mvc] Fluid format.date and AJAX with eID

Karsten Madsen karsten at k20.dk
Mon May 6 07:55:11 CEST 2013


I Think it is the global language setting config.language = da or dk
depends on TYPO3 version

Mvh. Karsten Madsen
Den 05/05/2013 15.48 skrev "Einar Gislason" <einarsvan at gmail.com>:

> Nobody?
>
> On Tue, 30 Apr 2013 15:00:31 +0200, Einar Gislason <einarsvan at gmail.com>
> wrote:
>
>  Hi
>>
>> I'm having trouble getting Fluid to format dates correctly when fetching
>> data via AJAX.
>> Everything works fine when I load the template normally but when I get
>> the data dynamically the <f:format.date format="%A,
>> %Y">{day.date}</f:format.date> will return the date formatted in english
>> and not in danish.
>>
>> I'm using eID and my Dispatcher looks like this:
>> <?php
>> require_once(t3lib_extMgm::**extPath('realurl').'class.tx_**
>> realurl.php');
>> $GLOBALS['TSFE'] = t3lib_div::makeInstance('**tslib_fe',
>> $GLOBALS['TYPO3_CONF_VARS'], 0, 0);
>> tslib_eidtools::connectDB();
>> tslib_eidtools::initLanguage()**;
>> $GLOBALS['TSFE']->initFEuser()**;
>> $GLOBALS['TSFE']->set_no_**cache();
>> $GLOBALS['TSFE']->**checkAlternativeIdMethods();
>> $GLOBALS['TSFE']->determineId(**);
>> $GLOBALS['TSFE']->**initTemplate();
>> $GLOBALS['TSFE']->**getConfigArray();
>> $GLOBALS['TSFE']->includeTCA()**;
>> $GLOBALS['TSFE']->config['**config']['tx_realurl_enable'] = 1;
>> $GLOBALS['TSFE']->cObj = t3lib_div::makeInstance('**tslib_cObj');
>> $GLOBALS['TSFE']->**settingLanguage();
>>
>> TSpagegen::pagegenInit();
>>
>> $configuration = array(
>>         'extensionName' => 'FtfEvents',
>>         'pluginName' => t3lib_div::_GP('pluginName'),
>>         'vendorName' => 'FTF',
>>         'switchableControllerActions' => array(
>>                 'Event' => array('calendar')
>>         )
>> );
>>
>> $bootstrap = t3lib_div::makeInstance('Tx_**Extbase_Core_Bootstrap');
>> $bootstrap->cObj = $GLOBALS['TSFE']->cObj;
>>
>> echo $bootstrap->run('', $configuration);
>>
>> $GLOBALS['TSFE']->fe_user->**storeSessionData();
>> ?>
>>
>> Any help, tips or pointers would be greatly appreciated.
>>
>> I'm using TYPO3 4.5.25, Extbase 1.3.4 and Fluid 1.3.1
>>
>> Kind regards, Einar
>>
>>
>
> --
> Using Opera's mail client: http://www.opera.com/mail/
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list