code: protected function localize($input)
      {
          if (TYPO3_MODE === 'FE') {
              $output = is_object($GLOBALS['TSFE']) ? $GLOBALS['TSFE']->sL($input) : $input;
          } else {
              $output = $GLOBALS['LANG']->sL($input);
          }
          return $output;
      }
docs: Localizes a label.
  
  @param string $input
  @return string