TYPO3 CMS  TYPO3_6-2
Localization.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Form;
3 
22 class Localization {
23 
29  protected $localLanguageFile;
30 
36  public function __construct($localLanguageFile = 'LLL:EXT:form/Resources/Private/Language/locallang_controller.xlf') {
37  $this->localLanguageFile = (string) $localLanguageFile;
38  }
39 
46  public function getLocalLanguageLabel($labelKey) {
47  if (TYPO3_MODE === 'FE') {
48  $output = $GLOBALS['TSFE']->sL($this->localLanguageFile . ':' . $labelKey);
49  } else {
50  $output = $GLOBALS['LANG']->sL($this->localLanguageFile . ':' . $labelKey);
51  }
52  return $output;
53  }
54 
55 }
const TYPO3_MODE
Definition: init.php:40
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
__construct($localLanguageFile='LLL:EXT:form/Resources/Private/Language/locallang_controller.xlf')