1 to 3 of 3
in a before filter in the controller.
you can get the current lang with Ak::lang(). Then set your layout with $this->setLayout($filename_without_DOT_tpl_inside_layouts_folder).
Hi.
What I did in my controller :
$locale = Ak::locale( 'description' );
$this->ss_trad = empty( $locale ) ? 'styles_fr.css' : 'styles_'.$locale.'.css';
Then in the template :
{?ss_trad} <%= stylesheet_link_tag ss_trad %> {end}
1 to 3 of 3