diff options
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/admin_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
| 3 | def language_selector | 3 | def language_selector |
| 4 | case I18n.locale | 4 | case I18n.locale |
| 5 | when :de | 5 | when :de |
| 6 | link_to 'Deutsch', edit_node_path(@node, :locale => :en) | 6 | link_to 'English', url_for(:locale => :en) |
| 7 | when :en | 7 | when :en |
| 8 | link_to 'Deutsch', :locale => :de, :controller => params[:controller], :action => params[:action] | 8 | link_to 'Deutsch', url_for(:locale => :de) |
| 9 | end | 9 | end |
| 10 | end | 10 | end |
| 11 | end \ No newline at end of file | 11 | end \ No newline at end of file |
