Hi!
Manuel Rego Casasnovas wrote:
> in my website the default language is not English and when I use the
> extension "ratings" [1], it does not appear properly translated in the
> default language, it appears in English (I can't reproduce this with any
> other extension).
Do you have correct settings for "config.language"?
> I've been reviewing the source code of "ratings", and I've seen the next
> lines [2]:
> // Init language
> if ($GLOBALS['LANG'] instanceof language) {
> $language = &$GLOBALS['LANG'];
> }
> else {
> $language = t3lib_div::makeInstance('language');
> $language->init($GLOBALS['TSFE']->lang);
> }
>
> I don't understand why the extension does not use directly
> "$GLOBALS['TSFE']->sL" instead of $language->sL.
There is no such thing as $GLOBALS['TSFE']->sL. If you mean
$GLOBALS['LANG']->sL, than the answer is easy: there is no such thing in TYPO3
Frontend, it exists only in the Backend.
--
Dmitry Dulepov
TYPO3 core team
In the blog:
http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english