[TYPO3-core] RFC #9402: Create a common_locallang-file
Martin Kutschker
masi-no at spam-typo3.org
Tue Sep 23 13:11:33 CEST 2008
Dmitry Dulepov [typo3] schrieb:
> Hi!
>
> Benjamin Mack wrote:
>> One question: do we need the prefix "common_" before ever label? We're
>> gonna use this like that
>>
>> $GLOBALS['LANG']->sL('EXT:lang/common.xml:yes');
>>
>> instead of
>>
>> $GLOBALS['LANG']->sL('EXT:lang/common.xml:common_yes');
>>
>> then, or did I miss something?
>
> But than you cannot use includeLLfile and getLL. You risk to have
> conflicts with other included language files. I prefer prefixes.
I image with have an extra API for including and accessing this common file.
eg $GLOBALS['LANG']->commonLabel('yes');
which could be a wrapper call for
$GLOBALS['LANG']->sL('EXT:lang/common.xml:common_yes');
So the prefix won't hurt.
Masi
More information about the TYPO3-team-core
mailing list