[TYPO3-core] Bugfix #2396
Bernhard Kraft
kraftb at kraftb.at
Wed Feb 8 20:50:00 CET 2006
Kasper Skårhøj wrote:
> How does the local sl() function look?
from t3lib/class.t3lib_tceforms.php:
/**
* Fetches language label for key
*
* @param string Language label reference, eg. 'LLL:EXT:lang/locallang_core.php:labels.blablabla'
* @return string The value of the label, fetched for the current backend language.
*/
function sL($str) {
return $GLOBALS['LANG']->sL($str);
}
no sight of any FE abstraction ... I used such a FE/BE sL wrapper for one of my extensions. I guess it
was the content table. I would like to see such a thing in t3lib_div or a similar "neutral" class.
> If I wrap that function it is
> usually because it is used in both frontend and backend, but if you
> can't see that from the local sl() implementation I guess it
> doesn'tmake sense. yet it could spoil backwards compability if
> someone extends that class.
> kasper2006 at typo3.com | +45 20 999 115 | skype: kasperskaarhoej |
> gizmo: kasper_typo3
Did you know that skype has a steady datastream of a few Kilobytes not concerning if you do anything
or not ? At least that's what I noticed.
greets,
Bernhard
More information about the TYPO3-team-core
mailing list