TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider:
t3lib_transl8tools

Public Member Functions

 getSystemLanguages ($page_id=0, $backPath='')
 
 translationInfo ($table, $uid, $sys_language_uid=0, $row=NULL, $selFieldList='')
 
 getTranslationTable ($table)
 
 isTranslationInOwnTable ($table)
 
 foreignTranslationTable ($table)
 

Detailed Description

Contains translation tools

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 25 of file TranslationConfigurationProvider.php.

Member Function Documentation

◆ foreignTranslationTable()

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

Returns foreign translation table, if any

Parameters
string$tableThe table name
Returns
string Translation foreign table
Todo:
Define visibility

Definition at line 165 of file TranslationConfigurationProvider.php.

References $GLOBALS.

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

◆ getSystemLanguages()

TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getSystemLanguages (   $page_id = 0,
  $backPath = '' 
)

Returns array of system languages

Since TYPO3 4.5 the flagIcon is not returned as a filename in "gfx/flags/*" anymore, but as a string <flags-xx>. The calling party should call ::getSpriteIcon(<flags-xx>) to get an HTML which will represent the flag of this language.

Parameters
integer$page_idPage id (only used to get TSconfig configuration setting flag and label for default language)
string$backPathBackpath for flags
Returns
array Array with languages (title, uid, flagIcon)
Todo:
Define visibility

Definition at line 40 of file TranslationConfigurationProvider.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), and TYPO3\CMS\Backend\Utility\IconUtility\mapRecordTypeToSpriteIconName().

◆ getTranslationTable()

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

◆ isTranslationInOwnTable()

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$tableThe table name
Returns
boolean
Todo:
Define visibility

Definition at line 154 of file TranslationConfigurationProvider.php.

References $GLOBALS.

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

◆ translationInfo()

TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::translationInfo (   $table,
  $uid,
  $sys_language_uid = 0,
  $row = NULL,
  $selFieldList = '' 
)

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

Parameters
string$tableTable name
integer$uidRecord uid
integer$sys_language_uidLanguage uid. If zero, then all languages are selected.
array$rowThe record to be translated
array$selFieldListSelect fields for the query which fetches the translations of the current record
Returns
array Array with information. Errors will return string with message.
Todo:
Define visibility

Definition at line 89 of file TranslationConfigurationProvider.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider\getTranslationTable(), and TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause().