Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthoramir
    • CommentTimeAug 6th 2008
     
    Hello
    I have a question. How can I use two css files or even two different layouts for two different locales?
    • CommentAuthorKaste
    • CommentTimeAug 6th 2008
     

    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
    • CommentTimeAug 11th 2008
     

    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}

Add your comments
    Username Password
  • Format comments as