[TYPO3-core] RFC #15741: Feature: PageRenderer should be able to include locallang-files as JS-InlineLabels

Oliver Hader oliver at typo3.org
Sun Sep 19 15:40:18 CEST 2010


Am 19.09.10 15:31, schrieb Oliver Hader:
> Hi,
> 
> Am 19.09.10 13:44, schrieb Steffen Kamper:
>> Hi,
>>
>> Jigal van Hemert schrieb:
>>>
>>> In this case t3lib_div::readLLfile() will return either an array
>>> (maybe empty) or FALSE in case of an error. So a check for FALSE would
>>> be enough:
>>>
>>> if ($labels !== FALSE) {
>>>     foreach...
>>>
>>
>> yes, that's the best.
>>
>> +1 by reading and testing of v3
> 
> The new methode put all languages to the internal array of the
> page-renderer, thus we had 'default', 'de', 'fr', etc. but not the
> accordant labels we wanted to have.
> 
> I attached a new patch that solves this with test-cases. Plese read and
> test this new feature again! Thanks!

Oh, and I changed the signature of the new method, since the
selector/stripping is more relevant than the other default values...

Thus, getting all JS labels is now
| addInlineLanguageLabelFile('FILE', 'de', 'js.');
instead of
| addInlineLanguageLabelFile('FILE', 'de', 'utf-8', 0, 'js.')

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader


More information about the TYPO3-team-core mailing list