‪TYPO3CMS  10.4
TYPO3\CMS\Core\Localization\LanguageService Class Reference
Inheritance diagram for TYPO3\CMS\Core\Localization\LanguageService:
TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait

Public Member Functions

 __construct (Locales $locales, LocalizationFactory $localizationFactory)
 
 init ($languageKey)
 
string getLL ($index)
 
string sL ($input)
 
 loadSingleTableDescription ($table)
 
array includeLLFile ($fileRef, $setGlobal=null, $mergeLocalOntoDefault=null)
 
array getLabelsWithPrefix ($prefix, $strip='')
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
bool __isset (string $propertyName)
 
mixed __get (string $propertyName)
 
 __set (string $propertyName, $propertyValue)
 
 __unset (string $propertyName)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
mixed __call (string $methodName, array $arguments)
 

Static Public Member Functions

static static create (string $locale)
 
static createFromUserPreferences (?AbstractUserAuthentication $user)
 
static createFromSiteLanguage (SiteLanguage $language)
 

Public Attributes

string $lang = 'default'
 
bool $debugKey = false
 

Protected Member Functions

string debugLL ($value)
 
string getLLL ($index, $localLanguage)
 
array includeLanguageFileRaw ($fileRef)
 
array readLLfile ($fileRef)
 

Protected Attributes

 $deprecatedPublicProperties
 
 $deprecatedPublicMethods
 
array $LL_files_cache = array( )
 
array $LL_labels_cache = array( )
 
array $languageDependencies = array( )
 
array $languageFileCache = array( )
 
string[][] $labels = array( )
 
Locales $locales
 
LocalizationFactory $localizationFactory
 

Detailed Description

Main API to fetch labels from XLF (label files) based on the current system language of TYPO3. It is able to resolve references to files + their pointers to the proper language. If you see something about "LLL", this class does the trick for you. It is not related for language handling of content, but rather of labels for plugins.

Usually this is injected into $GLOBALS['LANG'] when in backend or CLI context, and populated by the current backend user. Don't rely on $GLOBAL['LANG'] in frontend, as it is only available in certain circumstances! In Frontend, this is also used to translate "labels", see TypoScriptFrontendController->sL() for that.

As TYPO3 internally does not match the proper ISO locale standard, the "locale" here is actually a list of supported language keys, (see Locales class), whereas "english" has the language key "default".

Definition at line 41 of file LanguageService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Localization\LanguageService::__construct ( Locales  $locales,
LocalizationFactory  $localizationFactory 
)

Member Function Documentation

◆ create()

static static TYPO3\CMS\Core\Localization\LanguageService::create ( string  $locale)
static

◆ createFromSiteLanguage()

static TYPO3\CMS\Core\Localization\LanguageService::createFromSiteLanguage ( SiteLanguage  $language)
static

◆ createFromUserPreferences()

◆ debugLL()

string TYPO3\CMS\Core\Localization\LanguageService::debugLL (   $value)
protected

Debugs localization key.

Parameters
string$value‪value to debug
Returns
‪string

Definition at line 142 of file LanguageService.php.

Referenced by TYPO3\CMS\Core\Localization\LanguageService\getLLL(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

◆ getLabelsWithPrefix()

array TYPO3\CMS\Core\Localization\LanguageService::getLabelsWithPrefix (   $prefix,
  $strip = '' 
)

Gets labels with a specific fetched from the current locallang file. This is useful for e.g gathering javascript labels.

Parameters
string$prefix‪Prefix to select the correct labels
string$strip‪Sub-prefix to be removed from label names in the result
Returns
‪array Processed labels
Deprecated:
‪will be removed in TYPO3 v11.0

Definition at line 403 of file LanguageService.php.

References $GLOBALS, and TYPO3\CMS\Core\Localization\LanguageService\$labels.

◆ getLL()

string TYPO3\CMS\Core\Localization\LanguageService::getLL (   $index)

Returns the label with key $index from the globally loaded $LOCAL_LANG array. Mostly used from modules with only one LOCAL_LANG file loaded into the global space.

Parameters
string$index‪Label key
Returns
‪string

Definition at line 154 of file LanguageService.php.

References $GLOBALS, and TYPO3\CMS\Core\Localization\LanguageService\getLLL().

Referenced by TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler\canHandleLink(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\checkScreenAction(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\createTemplate(), TYPO3\CMS\Impexp\Controller\ExportController\exportData(), TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getAdminAccountStatus(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\getCheckOptions(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedDirectoriesWorldWritableStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedFilesWorldWritableStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getEncryptedConnectionStatus(), TYPO3\CMS\Linkvalidator\Linktype\FileLinktype\getErrorMessage(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getExceptionHandlerStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getExportedFilesStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getFileDenyPatternStatus(), TYPO3\CMS\Setup\Controller\SetupModuleController\getFlashMessage(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getHtaccessUploadStatus(), TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolPasswordStatus(), TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getLockSslStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getMemcachedConnectionStatus(), TYPO3\CMS\Reports\Report\Status\FalStatus\getMissingFilesStatus(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getMissingPhpModulesOfExtensions(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getModuleContent(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getMysqlDatabaseUtf8Status(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getReferenceIndexStatus(), TYPO3\CMS\Reports\Report\Status\Typo3Status\getRegisteredXclassStatus(), TYPO3\CMS\Reports\Report\Status\Status\getReport(), TYPO3\CMS\Backend\Controller\Wizard\TableController\getTableWizard(), TYPO3\CMS\Linkvalidator\Linktype\LinkHandler\getTranslatedErrorMessage(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getTrustedHostsPatternStatus(), TYPO3\CMS\Backend\Controller\PageLayoutController\initActions(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\listTasksAction(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\mainAction(), TYPO3\CMS\Setup\Controller\SetupModuleController\mainAction(), TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\makeControl(), TYPO3\CMS\Backend\Controller\LoginController\makeInterfaceSelector(), TYPO3\CMS\Backend\Controller\PageLayoutController\menuConfig(), TYPO3\CMS\Backend\Tree\View\PagePositionMap\printRecordMap(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\renderContent(), TYPO3\CMS\Backend\Controller\PageLayoutController\renderContent(), TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreview(), TYPO3\CMS\Reports\Task\SystemStatusUpdateTask\sendNotificationEmail(), TYPO3\CMS\Reports\Report\Status\Status\sortStatusProviders(), and TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ getLLL()

string TYPO3\CMS\Core\Localization\LanguageService::getLLL (   $index,
  $localLanguage 
)
protected

Returns the label with key $index from the $LOCAL_LANG array used as the second argument

Parameters
string$index‪Label key
array$localLanguage‪$LOCAL_LANG array to get label key from
Returns
‪string

Definition at line 166 of file LanguageService.php.

References TYPO3\CMS\Core\Localization\LanguageService\$lang, and TYPO3\CMS\Core\Localization\LanguageService\debugLL().

Referenced by TYPO3\CMS\Core\Localization\LanguageService\getLL(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

◆ includeLanguageFileRaw()

array TYPO3\CMS\Core\Localization\LanguageService::includeLanguageFileRaw (   $fileRef)
protected

Includes a locallang file (and possibly additional localized version if configured for), and then puts everything into "default", so "default" is kept as fallback

Parameters
string$fileRef‪$fileRef is a file-reference
Returns
‪array

Definition at line 344 of file LanguageService.php.

References TYPO3\CMS\Core\Localization\LanguageService\$labels, and TYPO3\CMS\Core\Localization\LanguageService\readLLfile().

Referenced by TYPO3\CMS\Core\Localization\LanguageService\loadSingleTableDescription().

◆ includeLLFile()

array TYPO3\CMS\Core\Localization\LanguageService::includeLLFile (   $fileRef,
  $setGlobal = null,
  $mergeLocalOntoDefault = null 
)

Includes locallang file (and possibly additional localized version if configured for) Read language labels will be merged with $LOCAL_LANG (if $setGlobal = TRUE).

Parameters
string$fileRef‪$fileRef is a file-reference
bool$setGlobal‪Setting in global variable $LOCAL_LANG (or returning the variable), do not set this, will be dropped in TYPO3 v11.0
bool$mergeLocalOntoDefault‪do not set this, will be dropped in TYPO3 v11.0
Returns
‪array returns the loaded label file

Definition at line 297 of file LanguageService.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule(), and TYPO3\CMS\Core\Localization\LanguageService\readLLfile().

Referenced by TYPO3\CMS\Backend\Controller\ContextMenuController\__construct(), TYPO3\CMS\Reports\Report\Status\Status\__construct(), TYPO3\CMS\Redirects\Controller\ManagementController\__construct(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\__construct(), TYPO3\CMS\Backend\Controller\BackendController\__construct(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\__construct(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\__construct(), TYPO3\CMS\Backend\Controller\NewRecordController\__construct(), TYPO3\CMS\Recordlist\Controller\RecordListController\__construct(), TYPO3\CMS\Filelist\FileList\__construct(), TYPO3\CMS\Backend\Controller\EditDocumentController\__construct(), TYPO3\CMS\Reports\Report\Status\WarningMessagePostProcessor\displayWarningMessages_postProcess(), TYPO3\CMS\Adminpanel\Modules\Debug\QueryInformation\getContent(), TYPO3\CMS\Adminpanel\Modules\Debug\PageTitle\getContent(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\init(), TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\init(), TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController\init(), TYPO3\CMS\Backend\Controller\LoginController\init(), TYPO3\CMS\Setup\Controller\SetupModuleController\initialize(), TYPO3\CMS\Filelist\Controller\FileListController\initializeObject(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\main(), TYPO3\CMS\Backend\Controller\Wizard\ListController\mainAction(), TYPO3\CMS\Backend\Controller\Wizard\EditController\mainAction(), TYPO3\CMS\Filelist\Controller\File\FileUploadController\mainAction(), TYPO3\CMS\Backend\Controller\Wizard\AddController\mainAction(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\mainAction(), TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController\mainAction(), TYPO3\CMS\Backend\Controller\Wizard\TableController\mainAction(), TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction(), and TYPO3\CMS\Backend\Tree\View\PagePositionMap\printRecordMap().

◆ init()

TYPO3\CMS\Core\Localization\LanguageService::init (   $languageKey)

Initializes the language to fetch XLF labels for. $languageService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Localization\LanguageService::class); $languageService->init($GLOBALS['BE_USER']->uc['lang']);

Exceptions

Definition at line 122 of file LanguageService.php.

Referenced by TYPO3\CMS\Backend\Controller\LoginController\init().

◆ loadSingleTableDescription()

TYPO3\CMS\Core\Localization\LanguageService::loadSingleTableDescription (   $table)

Loading $TCA_DESCR[$table]['columns'] with content from locallang files as defined in $TCA_DESCR[$table]['refs'] $TCA_DESCR is a global var

Parameters
string$table‪Table name found as key in global array $TCA_DESCR

Definition at line 232 of file LanguageService.php.

References $GLOBALS, and TYPO3\CMS\Core\Localization\LanguageService\includeLanguageFileRaw().

◆ readLLfile()

array TYPO3\CMS\Core\Localization\LanguageService::readLLfile (   $fileRef)
protected

Includes a locallang file and returns the $LOCAL_LANG array found inside.

Parameters
string$fileRef‪Input is a file-reference to be a 'local_lang' file containing a $LOCAL_LANG array
Returns
‪array value of $LOCAL_LANG found in the included file, empty if non found

Definition at line 365 of file LanguageService.php.

References TYPO3\CMS\Core\Localization\LanguageService\$lang, and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Core\Localization\LanguageService\includeLanguageFileRaw(), TYPO3\CMS\Core\Localization\LanguageService\includeLLFile(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

◆ sL()

string TYPO3\CMS\Core\Localization\LanguageService::sL (   $input)

splitLabel function

All translations are based on $LOCAL_LANG variables. 'language-splitted' labels can therefore refer to a local-lang file + index. Refer to 'Inside TYPO3' for more details

Parameters
string$input‪Label key/reference
Returns
‪string

Definition at line 194 of file LanguageService.php.

References TYPO3\CMS\Core\Localization\LanguageService\$lang, $output, TYPO3\CMS\Core\Localization\LanguageService\debugLL(), TYPO3\CMS\Core\Localization\LanguageService\getLLL(), and TYPO3\CMS\Core\Localization\LanguageService\readLLfile().

Referenced by TYPO3\CMS\Backend\View\BackendLayoutView\addBackendLayoutItems(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaInputPlaceholders\addData(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\addMessageToFlashMessageQueue(), TYPO3\CMS\Backend\Backend\Shortcut\ShortcutRepository\addShortcut(), TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler\canHandleLink(), TYPO3\CMS\Backend\Controller\OnlineMediaController\createAction(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_printFields(), TYPO3\CMS\Info\Controller\PageInformationController\fillFieldConfiguration(), TYPO3\CMS\IndexedSearch\Controller\AdministrationController\generateMenu(), TYPO3\CMS\Filelist\FileList\generateReferenceToolTip(), TYPO3\CMS\Scheduler\Task\ExecuteSchedulableCommandAdditionalFieldProvider\getActionField(), TYPO3\CMS\Scheduler\Example\SleepTask\getAdditionalInformation(), TYPO3\CMS\Scheduler\Example\TestTask\getAdditionalInformation(), TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask\getAdditionalInformation(), TYPO3\CMS\Core\Site\Entity\NullSite\getAvailableLanguages(), TYPO3\CMS\Backend\Tree\View\FolderTreeView\getBrowseableTreeForStorage(), TYPO3\CMS\Core\Category\CategoryRegistry\getCategoryFieldsForTable(), TYPO3\CMS\Backend\View\BackendLayoutView\getColumnName(), TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\getComposerMode(), TYPO3\CMS\Redirects\Report\Status\RedirectStatus\getConflictingRedirects(), TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\getDatabase(), TYPO3\CMS\Dashboard\DashboardPreset\getDescription(), TYPO3\CMS\Workspaces\Service\HistoryService\getDifferences(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getEncryptedConnectionStatus(), TYPO3\CMS\Linkvalidator\Linktype\LinkHandler\getErrorMessage(), TYPO3\CMS\Workspaces\Controller\Remote\ActionHandler\getErrorResponse(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getHtaccessUploadStatus(), TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus(), TYPO3\CMS\Adminpanel\Modules\Debug\Events\getLabel(), TYPO3\CMS\Adminpanel\Modules\Info\PhpInformation\getLabel(), TYPO3\CMS\Adminpanel\Modules\Info\RequestInformation\getLabel(), TYPO3\CMS\Adminpanel\Modules\Info\UserIntInformation\getLabel(), TYPO3\CMS\Adminpanel\Modules\InfoModule\getLabel(), TYPO3\CMS\Adminpanel\Modules\TsDebugModule\getLabel(), TYPO3\CMS\Adminpanel\Modules\DebugModule\getLabel(), TYPO3\CMS\Adminpanel\Modules\Debug\QueryInformation\getLabel(), TYPO3\CMS\Adminpanel\Modules\Debug\PageTitle\getLabel(), TYPO3\CMS\Adminpanel\Modules\TsDebug\TypoScriptWaterfall\getLabel(), TYPO3\CMS\Adminpanel\Modules\PreviewModule\getLabel(), TYPO3\CMS\Adminpanel\Modules\Debug\Log\getLabel(), TYPO3\CMS\Adminpanel\Modules\CacheModule\getLabel(), TYPO3\CMS\Adminpanel\Modules\Info\GeneralInformation\getLabel(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\getLabelForTableColumn(), TYPO3\CMS\Backend\Form\Element\InputLinkElement\getLinkExplanation(), TYPO3\CMS\Workspaces\Middleware\WorkspacePreview\getLogoutTemplateMessage(), TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\getMassStageActions(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getMemcachedConnectionStatus(), TYPO3\CMS\Core\FormProtection\FormProtectionFactory\getMessageClosure(), TYPO3\CMS\Workspaces\Service\StagesService\getNextStage(), TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController\getPageConfigLabel(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\getPageTitle(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\getPreviewPresets(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getRegisteredClasses(), TYPO3\CMS\Scheduler\Task\FileStorageExtractionAdditionalFieldProvider\getRegisteredExtractorsField(), TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getRowDetails(), TYPO3\CMS\Workspaces\Service\StagesService\getStageTitle(), TYPO3\CMS\Install\Report\EnvironmentStatusReport\getStatusInternal(), TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content(), TYPO3\CMS\Scheduler\Task\AbstractTask\getTaskDescription(), TYPO3\CMS\Scheduler\Task\AbstractTask\getTaskTitle(), TYPO3\CMS\Dashboard\WidgetGroup\getTitle(), TYPO3\CMS\Dashboard\Dashboard\getTitle(), TYPO3\CMS\Dashboard\DashboardPreset\getTitle(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\getTitleOfCurrentRecordType(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getTrustedHostsPatternStatus(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizardGroupHeader(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizardItem(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems\groupAndSortItems(), TYPO3\CMS\Filelist\Controller\File\RenameFileController\init(), TYPO3\CMS\Filelist\Controller\File\FileUploadController\init(), TYPO3\CMS\Filelist\Controller\File\CreateFolderController\init(), TYPO3\CMS\Filelist\Controller\File\EditFileController\init(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Backend\View\PageLayoutView\initialize(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\listTasksAction(), TYPO3\CMS\Core\DataHandling\DataHandler\localize(), TYPO3\CMS\Recordlist\Controller\ClearPageCacheController\mainAction(), TYPO3\CMS\Filelist\FileList\makeEdit(), TYPO3\CMS\Backend\Controller\EditDocumentController\makeEditForm(), TYPO3\CMS\Workspaces\Hook\BackendUtilityHook\makeEditForm_accessCheck(), TYPO3\CMS\Info\Controller\InfoModuleController\mergeExternalItems(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\mergeExternalItems(), TYPO3\CMS\Core\Database\QueryGenerator\mkTableSelect(), TYPO3\CMS\Info\Controller\PageInformationController\modMenu(), TYPO3\CMS\Core\TypoScript\Parser\ConstantConfigurationParser\parseComments(), TYPO3\CMS\Workspaces\Service\StagesService\prepareStagesArray(), TYPO3\CMS\Core\DataHandling\DataHandler\prependLabel(), TYPO3\CMS\Form\Hooks\FormPagePreviewRenderer\preProcess(), TYPO3\CMS\Backend\Tree\View\PagePositionMap\printRecordMap(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\registerDocHeader(), TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription\render(), TYPO3\CMS\Backend\Form\Element\SelectCheckBoxElement\render(), TYPO3\CMS\Backend\Form\Element\InputSlugElement\render(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderCombinationChild(), TYPO3\CMS\Filelist\Controller\File\ReplaceFileController\renderContent(), TYPO3\CMS\Scheduler\Task\ExecuteSchedulableCommandAdditionalFieldProvider\renderOptionField(), TYPO3\CMS\Workspaces\Middleware\WorkspacePreview\renderPreviewInfo(), TYPO3\CMS\Fluid\ViewHelpers\Be\Labels\CshViewHelper\renderStatic(), TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement\replaceLanguageFileReferences(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaCheckboxItems\sanitizeConfiguration(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaCheckboxItems\sanitizeLabeledToggleCheckbox(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\showAction(), TYPO3\CMS\Reports\Report\Status\Status\sortStatusProviders(), TYPO3\CMS\IndexedSearch\Controller\AdministrationController\statisticDetailsAction(), TYPO3\CMS\Extensionmanager\Controller\UpdateFromTerController\updateExtensionListFromTerAction(), and TYPO3\CMS\Workspaces\Hook\DataHandlerHook\version_swap().

Member Data Documentation

◆ $debugKey

bool TYPO3\CMS\Core\Localization\LanguageService::$debugKey = false

If TRUE, will show the key/location of labels in the backend.

Definition at line 64 of file LanguageService.php.

◆ $deprecatedPublicMethods

TYPO3\CMS\Core\Localization\LanguageService::$deprecatedPublicMethods
protected
Initial value:
= array(
'debugLL' => 'Should never be called directly. use the "debugKey" to actually access the method.',
'getLLL' => 'Use "getLL()" or "sL()" instead as API methods.',
)

Definition at line 49 of file LanguageService.php.

◆ $deprecatedPublicProperties

TYPO3\CMS\Core\Localization\LanguageService::$deprecatedPublicProperties
protected
Initial value:
= array(
'LL_files_cache' => 'The runtime cache variable is only used for internal purposes, and should never be accessed from the outside. Accessing this property will stop working in TYPO3 v11.0.',
'LL_labels_cache' => 'The runtime cache variable is only used for internal purposes, and should never be accessed from the outside. Accessing this property will stop working in TYPO3 v11.0.'
)

Definition at line 44 of file LanguageService.php.

◆ $labels

string [][] TYPO3\CMS\Core\Localization\LanguageService::$labels = array( )
protected

◆ $lang

string TYPO3\CMS\Core\Localization\LanguageService::$lang = 'default'

This is set to the language that is currently running for the user

Definition at line 58 of file LanguageService.php.

Referenced by TYPO3\CMS\Core\Localization\LanguageService\getLLL(), TYPO3\CMS\Core\Localization\LanguageService\readLLfile(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

◆ $languageDependencies

array TYPO3\CMS\Core\Localization\LanguageService::$languageDependencies = array( )
protected

List of language dependencies for actual language. This is used for local variants of a language that depend on their "main" language, like Brazilian Portuguese or Canadian French.

Definition at line 83 of file LanguageService.php.

◆ $languageFileCache

array TYPO3\CMS\Core\Localization\LanguageService::$languageFileCache = array( )
protected

An internal cache for storing loaded files, see readLLfile()

Definition at line 89 of file LanguageService.php.

◆ $LL_files_cache

array TYPO3\CMS\Core\Localization\LanguageService::$LL_files_cache = array( )
protected

Internal cache for read LL-files

Definition at line 70 of file LanguageService.php.

◆ $LL_labels_cache

array TYPO3\CMS\Core\Localization\LanguageService::$LL_labels_cache = array( )
protected

Internal cache for ll-labels (filled as labels are requested)

Definition at line 76 of file LanguageService.php.

◆ $locales

Locales TYPO3\CMS\Core\Localization\LanguageService::$locales
protected

◆ $localizationFactory

LocalizationFactory TYPO3\CMS\Core\Localization\LanguageService::$localizationFactory
protected