Deprecation: #81217 - TSFE-related language methods 

See forge#81217

Description 

The main class for generating frontend output (TypoScriptFrontendController) has been streamlined to use the same API within LanguageService.

Therefore the following methods within TypoScriptFrontendController have been marked as deprecated:

  • readLLfile()
  • getLLL()
  • initLLvars()

Impact 

Calling any of the PHP methods above will trigger a deprecation warning.

Affected Installations 

Any TYPO3 installation calling custom frontend code with the methods above.

Migration 

Use TypoScriptFrontendController->sL() for resolving language labels in the language of the Frontend rendering engine as a replacement for getLLL() .

If you are not doing anything special on language initialization, the call to initLLvars() can likely be dropped. If you need to influence language initialization yourself, you can use the hooks $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess'] or $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess'] .

For doing special logic, it is recommend to set up a custom instance of LanguageService which holds all functionality directly.

For example you may then use $languageService->includeLLFile(...); instead of readLLfile() .