[TYPO3-english] Extension ratings: problems with default language
Manuel Rego Casasnovas
mrego at igalia.com
Tue Dec 23 21:15:44 CET 2008
Hello,
On Tue, 2008-12-23 at 19:02 +0200, Dmitry Dulepov wrote:
> 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"?
Yes, I have it.
However, I've just found the problem. I have my backend configured in
English and the Frontend in Galician, if I close the backend the
extension appears properly translated.
Anyway, "ratings" extension only has sense in frontend so you could
avoid to use $GLOBALS['LANGS'] because of it's related with backend
configuration. It's just a suggestion.
> > 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.
I don't know why, but "$GLOBALS['TSFE']->sL" usually works properly for
me at frontend.
BTW, merry Christmas for the whole TYPO3 community :D
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-english
mailing list