[TYPO3-core] RFC: #13948: Hookrequest - tslib_fe pre/post process for settingLanguage()

Steffen Kamper info at sk-typo3.de
Wed Mar 31 17:04:58 CEST 2010


Hi,

i'm also +1 on reading (sry for no testing now)

Benjamin Mack schrieb:
> 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'];
>     }
> }
> 

i would love to have a small set of isocodes having in core direct, so 
you could use TYPO3 with common languages without static_info_tables.
Then we also could remove extension reference, which we don't want to 
have anyway.

vg Steffen


More information about the TYPO3-team-core mailing list