‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider Class Reference

Public Member Functions

array getSystemLanguages ($pageId=0)
 
mixed translationInfo ($table, $uid, $languageUid=0, array $row=null, $selFieldList='')
 

Protected Member Functions

 addSiteLanguagesToConsolidatedList (array $allSystemLanguages, array $languagesOfSpecificSite, SiteInterface $site, bool $includeSiteSuffix)
 
 getBackendUserAuthentication ()
 

Protected Attributes

array $systemLanguageCache = array( )
 

Detailed Description

Contains translation tools

The whole class is subject to be removed, fetch all language info from the current site object.

Definition at line 34 of file TranslationConfigurationProvider.php.

Member Function Documentation

◆ addSiteLanguagesToConsolidatedList()

TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::addSiteLanguagesToConsolidatedList ( array  $allSystemLanguages,
array  $languagesOfSpecificSite,
SiteInterface  $site,
bool  $includeSiteSuffix 
)
protected

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getBackendUserAuthentication ( )
protected

◆ getSystemLanguages()

array TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getSystemLanguages (   $pageId = 0)

Returns array of languages given for a specific site (or "nullSite" if on page=0) The property flagIcon returns a string <flags-xx>.

Parameters
int$pageId‪Page id (used to get TSconfig configuration setting flag and label for default language)
Returns
‪array Array with languages (uid, title, ISOcode, flagIcon)

Definition at line 47 of file TranslationConfigurationProvider.php.

References TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider\addSiteLanguagesToConsolidatedList(), and TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider\getBackendUserAuthentication().

Referenced by TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\initializeLanguages(), and TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\languageFlag().

◆ translationInfo()

mixed TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::translationInfo (   $table,
  $uid,
  $languageUid = 0,
array  $row = null,
  $selFieldList = '' 
)

Information about translation for an element Will overlay workspace version of record too!

Parameters
string$table‪Table name
int$uid‪Record uid
int$languageUid‪Language uid. If 0, then all languages are selected.
array$row‪The record to be translated
string$selFieldList‪Select fields for the query which fetches the translations of the current record
Returns
‪mixed Array with information or error message as a string.

Definition at line 118 of file TranslationConfigurationProvider.php.

References $GLOBALS, TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider\getBackendUserAuthentication(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Backend\Utility\BackendUtility\isTableLocalizable(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $systemLanguageCache

array TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::$systemLanguageCache = array( )
protected

Definition at line 38 of file TranslationConfigurationProvider.php.