From d579a7ce703773f236a1b7d7f0828a45427b5787 Mon Sep 17 00:00:00 2001 From: hukl Date: Fri, 20 Feb 2009 09:10:57 +0100 Subject: fix for routing filter and helpers, need to talk to svenfuchs about that ;) hardcoded default_locale within the plugin and not considering globbed routes as it seems --- app/helpers/admin_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 7122584f..c230797b 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -3,9 +3,9 @@ module AdminHelper def language_selector case I18n.locale when :de - link_to 'Deutsch', edit_node_path(@node, :locale => :en) + link_to 'English', url_for(:locale => :en) when :en - link_to 'Deutsch', :locale => :de, :controller => params[:controller], :action => params[:action] + link_to 'Deutsch', url_for(:locale => :de) end end end \ No newline at end of file -- cgit v1.3