Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
LanguageServiceFactory
This factory class is for retrieving the LanguageService at runtime, which then is used to translate strings in plain PHP. For examples see Localization in PHP. Creates a LanguageService that can then be used for localizations.
- class LanguageServiceFactory
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Localization\ Language Service Factory
- create ( string $locale)
-
Factory method to create a language service object.
- param string $locale
-
the locale (= the TYPO3-internal locale given)
- returntype
-
TYPO3\CMS\Core\Localization\LanguageService