[TYPO3-dev] Can I use $GLOBALS['LANG'] in JavaScript?

Christopher Stelmaszyk christopher at yahoo.de
Mon Jun 29 21:59:27 CEST 2009


Hi guys,

I want to use a language-label in a JavaScript-file.

The question is: How can I do that?

To make it more clear:
Have a look at typo3/sysext/t3editor/jslib/t3editor.js.
In line 233 (current trunk) you see that a string ("lines") is added behind 
some dynamic content.

I already had a look at some other extensions (rtehtmlarea, opendocs), but 
they include the labels in php-files.

What has to be done to get this text from a locallang-file?

Kind regards

Christopher 






More information about the TYPO3-dev mailing list