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

Søren Malling soren.malling at gmail.com
Thu Jan 28 09:29:57 CET 2010


Hi,

What about this:

$lang = t3lib_div::makeInstance('language');
$lang->sL('LLL:EXT:your_extension/additional_locallang.xml:string_name')

Regards,

Søren

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
>



-- 
Officially Certified TYPO3 Integrator




More information about the TYPO3-dev mailing list