Classes/Service/ImageResizer.php
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;
    }
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;
    }
Localizes a label.

@param string $input
@return string