[TYPO3-dev] Add additinal language file for a frontend plugin

Tapio Markula tapio.markula at xetpoint.fi
Thu Jan 28 10:00:33 CET 2010


Søren Malling kirjoitti:
> Hi,
> 
> What about this:
> 
> $lang = t3lib_div::makeInstance('language');
> $lang->sL('LLL:EXT:your_extension/additional_locallang.xml:string_name')

but that doesn't merge two language files usable in '$this->pi_getLL('')
how to merge files
> 
> On Thu, Jan 28, 2010 at 9:09 AM, Tapio Markula
> <tapio.markula at xetpoint.fi> wrote:
>> Hi
>>
>> frontent plugin has
>>
>>
>> function main($content,$conf)   {
>>                $this->conf=$conf;              // Setting the TypoScript
>> passed to this function in $this->conf
>>                $this->pi_setPiVarDefaults();
>>                $this->pi_loadLL();
>>
>> $this->pi_loadLL(); loads automatic locallang.php or locallang.xml (the
>> frontend plugin didn't have any language file inclusion)
>>
>> But what to to if I create an XCLASS and would merge an additonal language
>> file so that
>>
>> .$this->pi_getLL('something').
>>
>> could be used as if the language information would be in the original
>> language file
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
> 
> 
> 




More information about the TYPO3-dev mailing list