-
+
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5239999..7683d57 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,11 +9,9 @@ if params[:locale] if I18n.available_locales.include?(params[:locale].to_sym) session[:locale] = params[:locale] - else flash.now[:notice]= "#{params[:locale]} translation not available" logger.error flash.now[:notice] - end end http_header=request.env['HTTP_ACCEPT_LANGUAGE'] @@ -22,8 +20,8 @@ else ht=nil end - I18n.locale = session[:locale] || ht || I18n.default_locale - + I18n.locale = session[:locale] || I18n.default_locale + # removed ht from selection add || ht to check http header session[:locale] = I18n.locale end diff --git a/app/views/beispiele/_beispiel.html.erb b/app/views/beispiele/_beispiel.html.erb index 27697f5..6141faf 100644 --- a/app/views/beispiele/_beispiel.html.erb +++ b/app/views/beispiele/_beispiel.html.erb @@ -1,33 +1,22 @@