!!!
%html
  %head
    %meta{ charset: "utf-8" }
    %title Screen Concept CMS
    = stylesheet_link_tag 'kuhsaft/cms/application.css', :media => 'screen, projection'
    = stylesheet_link_tag 'kuhsaft/cms/customizations.css', :media => 'screen, projection'
    = csrf_meta_tag

  %body{ :class => "#{controller_name}" }
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          = render 'main_navigation'

      #toolbar
    .container.cms
      .row
        .span12
          = render 'content_language_switch'
          = render 'flash', :flash => flash
          = yield
    = javascript_include_tag 'kuhsaft/cms/application.js'
    = javascript_include_tag 'kuhsaft/cms/customizations.js'

!!!
%html
  %head
    %meta{ charset: "utf-8" }
    %title Screen Concept CMS
    = stylesheet_link_tag 'kuhsaft/cms/application.css', :media => 'screen, projection'
    = stylesheet_link_tag 'kuhsaft/cms/customizations.css', :media => 'screen, projection'
    = csrf_meta_tag

  %body{ :class => "#{controller_name}" }
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          = render 'main_navigation'

      #toolbar
    .container.cms
      .row
        .span12
          = render 'content_language_switch'
          = render 'flash', :flash => flash
          = yield

    :coffee
      window.I18n = "#{escape_javascript params[:content_locale]}"

    = javascript_include_tag 'kuhsaft/cms/application.js'
    = javascript_include_tag 'kuhsaft/cms/customizations.js'

Initialize window.I18n in application layout
Initialize window.I18n in application layout
