[TYPO3-dev] Add additinal language file for a frontend plugin
Tapio Markula
tapio.markula at xetpoint.fi
Fri Jan 29 16:01:50 CET 2010
Steffen Gebert
> Am 28.01.2010, 09:09 Uhr, schrieb Tapio Markula
> <tapio.markula at xetpoint.fi>:
>
>> 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
>
> You can do the same as XCLASSing also for LLL: locallangXMLOverride:
>
> $TYPO3_CONF_VARS['SYS']['locallangXMLOverride']['EXT:lang/locallang_core.php']['myLangOverride']
> = 'typo3conf/langoverride.xml';
>
> See [1].
>
> Please not that the array key's file extension (locallang_core.xml/php
> must currently match the extension, by which it's loaded in the PHP code
> (doesn't matter, whether it's a .php or .xml file in truth).
>
> Steffen
>
> [1] http://wiki.typo3.org/index.php/Pending_Documentation#doc_core_inside
failed
I tried this
$TYPO3_CONF_VARS['SYS']['locallangXMLOverride']['EXT:tfc_lifegroups/pi1/locallang.php']['ext_tfc_lifegroups']
= 'EXT:ext_tfc_lifegroups/locallang.php';
I tested this too
$typoScript='
plugin.tx_tfclifegroups_pi1._LOCAL_LANG.default.all_interests=All interests
plugin.tx_tfclifegroups_pi1._LOCAL_LANG.default.all_semesters=All semesters
plugin.tx_tfclifegroups_pi1._LOCAL_LANG.default.all_ages=All ages
plugin.tx_tfclifegroups_pi1._LOCAL_LANG.default.all_days=All days
plugin.tx_tfclifegroups_pi1._LOCAL_LANG.default.all_categories=All
categories
';
t3lib_extMgm::addTypoScriptSetup($typoScript);
the setup information was not added
Here the XCLASS referense
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tfc_lifegroups/pi1/class.tx_tfclifegroups_pi1.php']=t3lib_extMgm::extPath($_EXTKEY)
. 'class.ux_tx_tfclifegroups_pi1.php';
the main function starts this way
function main($content,$conf) {
$this->conf=$conf; // Setting the TypoScript passed to this function
in $this->conf
$this->pi_setPiVarDefaults();
$this->pi_loadLL(); // Loading the LOCAL_LANG values
More information about the TYPO3-dev
mailing list