[TYPO3-core] RFC: #13948: Hookrequest - tslib_fe pre/post process for settingLanguage()
Benjamin Mack
benni at typo3.org
Wed Mar 31 16:09:09 CEST 2010
Hey Tolleiv,
makes sense. +1 after reading.
As a next step, I'd love to see the part with "isLoaded" and the
static_info_tables moved to the static_info_tables extension, and use
the postProcess hook.
// Finding the ISO code:
if (t3lib_extMgm::isLoaded('static_info_tables') &&
$this->sys_language_content) { // using sys_language_content because the
ISO code only (currently) affect content selection from FlexForms -
which should follow "sys_language_content"
$sys_language_row =
$this->sys_page->getRawRecord('sys_language',$this->sys_language_content,'static_lang_isocode');
if (is_array($sys_language_row) &&
$sys_language_row['static_lang_isocode']) {
$stLrow =
$this->sys_page->getRawRecord('static_languages',$sys_language_row['static_lang_isocode'],'lg_iso_2');
$this->sys_language_isocode = $stLrow['lg_iso_2'];
}
}
All the best,
Benni.
More information about the TYPO3-team-core
mailing list