59 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
60 $this->Lang =
get_package(
'lang' ,
'last' , __FILE__ );
102 $LangList = $this->Lang->get_list_of_languages();
104 $Form = $this->CachedMultyFS->get_template( __FILE__ ,
'lang_form.tpl' );
105 $this->Output = $Form;
107 foreach( $LangList as
$Lang )
109 $LangFlag = $Lang === $this->Lang->get_locale() ?
'active' :
'inactive';
111 $Template = $this->CachedMultyFS->get_template( __FILE__ , $LangFlag.
'_lang.tpl' );
113 $Template = str_replace(
'{client_lang}' , $Lang , $Template );
114 $this->Output = str_replace(
'{lang_list}' ,
"$Template{lang_list}" , $this->Output );
117 catch( Exception $e )
145 if( $Options->get_setting(
'lang_file' ,
false ) )
147 $ComponentHTML =
'{lang_file:'.$Options->get_all_settings().
'}';
149 $ComponentHTML = $this->LangMarkup->compile_lang_file( $Options );
153 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
155 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_set_locale_form' );
157 if( $ContextSet->execute( $Options , $this ) )
return( $this->Output );
159 catch( Exception $e )