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

Public Member Functions

array getSystemLanguages ($pageId=0)
 
mixed translationInfo ($table, $uid, $languageUid=0, array $row=null, $selFieldList='')
 
string getTranslationTable ($table)
 
bool isTranslationInOwnTable ($table)
 
string foreignTranslationTable ($table)
 

Protected Member Functions

LanguageService getLanguageService ()
 
string getDefaultLanguageFlag (array $modSharedTSconfig)
 
string getDefaultLanguageLabel (array $modSharedTSconfig)
 
 getBackendUserAuthentication ()
 

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

◆ foreignTranslationTable()

string TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::foreignTranslationTable (   $table)

Returns foreign translation table, if any. Since TYPO3 v9, even "pages" translations are stored in the same table, having this method return always empty, as with other tables as well.

Parameters
string$table‪The table name
Returns
‪string Translation foreign table
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0 as foreign translation table is not supported anymore

Definition at line 247 of file TranslationConfigurationProvider.php.

◆ getBackendUserAuthentication()

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

◆ getDefaultLanguageFlag()

string TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getDefaultLanguageFlag ( array  $modSharedTSconfig)
protected
Parameters
array$modSharedTSconfig
Returns
‪string

Definition at line 257 of file TranslationConfigurationProvider.php.

Referenced by TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider\getSystemLanguages().

◆ getDefaultLanguageLabel()

string TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getDefaultLanguageLabel ( array  $modSharedTSconfig)
protected

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getLanguageService ( )
protected

◆ getSystemLanguages()

◆ getTranslationTable()

string TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getTranslationTable (   $table)

Returns the table in which translations for input table is found.

Parameters
string$table‪The table name
Returns
‪string
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0 as foreign translation table is not supported anymore

Definition at line 219 of file TranslationConfigurationProvider.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\isTableLocalizable().

◆ isTranslationInOwnTable()

bool TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::isTranslationInOwnTable (   $table)

Returns TRUE, if the input table has localization enabled and done so with records from the same table

Parameters
string$table‪The table name
Returns
‪bool
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0 as foreign translation table is not supported anymore

Definition at line 232 of file TranslationConfigurationProvider.php.

References $GLOBALS.

◆ 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 128 of file TranslationConfigurationProvider.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), and TYPO3\CMS\Backend\Utility\BackendUtility\isTableLocalizable().