Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    •  
      CommentAuthoramir
     
    Hello
    I have a question. How can I use two css files or even two different layouts for two different locales?
    • CommentAuthorKaste
     

    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).

    • CommentAuthormerindol
     

    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}