summaryrefslogtreecommitdiff
path: root/app/controllers/content_controller.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
committerhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
commit36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (patch)
tree5ded15331b192bf428af4c94d46d1abb28ef0690 /app/controllers/content_controller.rb
parentce9645d0092d42c7bf8781378181ffbd4ff3d088 (diff)
added globalize2 plugin as well as some modifications
which use the new translation facilities. backend mostly.
Diffstat (limited to 'app/controllers/content_controller.rb')
-rw-r--r--app/controllers/content_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb
index 0fa9832..f5e62c1 100644
--- a/app/controllers/content_controller.rb
+++ b/app/controllers/content_controller.rb
@@ -6,6 +6,7 @@ class ContentController < ApplicationController
6 # return a node though, the node is really a proxy object for pages. It 6 # return a node though, the node is really a proxy object for pages. It
7 # returns the most recent page associated to this node instead. 7 # returns the most recent page associated to this node instead.
8 def render_page 8 def render_page
9 I18n.locale = params[:language]
9 path = params[:page_path].join('/') 10 path = params[:page_path].join('/')
10 11
11 @page = Node.find_page(path) 12 @page = Node.find_page(path)