[TYPO3] override pi_getLL[foo] via TypoScript
Franz Holzinger
franz at fholzinger.com
Wed Jan 11 09:25:05 CET 2006
Stefan Geith a écrit :
>>
>>
>> I found it:
>>
>> plugin.tx_myextension_pi1._LOCAL_LANG.default.footext = bla
>> plugin.tx_myextension_pi1._LOCAL_LANG.de.footext = blubb
>> plugin.tx_myextension_pi1._LOCAL_LANG.en.footext = blabla
>
>
> But this will not work with locallang-identifiers like
> $this->pi_getLL("myestension.admin.footext");
>
> :(
>
> I miss that ...
>
I have written something for this in the fh_library 0.0.6.
If someone can promote this under
http://bugs.typo3.org/view.php?id=1963
this might come then into TYPO3.
> class tx_fhlibrary_language {
> /**
> * Loads local-language values by looking for a "locallang.php" file in the plugin class directory ($this->scriptRelPath) and if found includes it.
> * Also locallang values set in the TypoScript property "_LOCAL_LANG" are merged onto the values found in the "locallang.php" file.
> *
> * @param object tslib_pibase object
> * @param string relative path and filename of the language file
> *
> * @return void
> */
> function pi_loadLL(&$pibase,$langFileParam) {
>
>
> /**
> * Split Label function for front-end applications.
> *
> * @param string Key string. Accepts the "LLL:" prefix.
> * @return string Label value, if any.
> */
> function sL(&$pibase, $input) {
>
Franz
More information about the TYPO3-english
mailing list