Hi, List.

Maybe, I'm too tired (or stupid...), but I can't get, how can I use the power of TYPO3 localization in FE, if I want to use some custom ll-file in custom object.

If I use t3lib_div::readLLfile() - it works fine, but it just reads the file, so I need to extract language array, merge it with 'default' by myself. Then I need to take [$lang][0]['target'] parts of array to get the final labels. That doesn't look nice. My first thought was to pass object of 'tslib_pibase' to my custom class as $caller, then fill $caller->LOCAL_LANG with data from t3lib_div::readLLfile() and use $caller->pi_getLL(). That's better, but still not perfect, since I don't want my class to depend on tslib_pibase. Another thought was to create object of 'language' class, use it's includeLLFile and getLL, which perfectly fits, but this class is for BE only. SO, it is not good idea to use it at FE?

Can someone point me, please? I'm stuck here...
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to