[TYPO3-dev] getting at locallang_db.php in an FE plugin

Bernd Wilke xoonsji02 at sneakemail.com
Mon Apr 10 20:30:03 CEST 2006


On Mon, 10 Apr 2006 18:12:54 +0700, Markus bertheau wrote
with subject "Re: [TYPO3-dev] getting at locallang_db.php in an FE plugin":

> Hmm, interesting. Doesn't work though (am still getting empty
> strings), and while debugging the debugger couldn't find class
> language, so I stayed with a bad hack
> (http://wiki.typo3.org/index.php/Locallang_db.php_in_FE )
> 
> Thanks
> 
> Markus


I developed this on TYPO3 V3.8.0 and V3.8.1
I can't tell yet wether this is ok with V 4.*


maybe you missed to include 'lang.php'?
try 
	require_once(PATH_SITE.'/typo3/sysext/lang/lang.php')
instead of
	require_once(t3lib_extMgm::extPath('lang').'lang.php')


And my include for lang.php is placed after the include of
class.tslib_pibase.php.


Bernd
-- 
----------------
Bernd Wilke     
Annweilerstr.20 
40229 Düsseldorf
0211/229 2800




More information about the TYPO3-dev mailing list