i18n of controllers/stories_controllers
This commit is contained in:
parent
286f25e712
commit
516edc5038
|
@ -9,7 +9,7 @@ class StoriesController < ApplicationController
|
||||||
before_filter :find_story!, :only => [ :suggest, :submit_suggestions ]
|
before_filter :find_story!, :only => [ :suggest, :submit_suggestions ]
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@title = "Submit Story"
|
@title = I18n.t 'controllers.home_controller.submitstorytitle'
|
||||||
@cur_url = "/stories/new"
|
@cur_url = "/stories/new"
|
||||||
|
|
||||||
@story = Story.new(story_params)
|
@story = Story.new(story_params)
|
||||||
|
@ -51,7 +51,7 @@ class StoriesController < ApplicationController
|
||||||
return redirect_to "/"
|
return redirect_to "/"
|
||||||
end
|
end
|
||||||
|
|
||||||
@title = "Edit Story"
|
@title = I18n.t 'controllers.home_controller.submitstorytitle'
|
||||||
|
|
||||||
if @story.merged_into_story
|
if @story.merged_into_story
|
||||||
@story.merge_story_short_id = @story.merged_into_story.short_id
|
@story.merge_story_short_id = @story.merged_into_story.short_id
|
||||||
|
@ -67,7 +67,7 @@ class StoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@title = "Submit Story"
|
@title = I18n.t 'controllers.home_controller.submitstorytitle'
|
||||||
@cur_url = "/stories/new"
|
@cur_url = "/stories/new"
|
||||||
|
|
||||||
@story = Story.new
|
@story = Story.new
|
||||||
|
|
|
@ -326,3 +326,6 @@ en:
|
||||||
rssforstoriestitle: "RSS 2.0"
|
rssforstoriestitle: "RSS 2.0"
|
||||||
rssforcommentstitle: "Comments - RSS 2.0"
|
rssforcommentstitle: "Comments - RSS 2.0"
|
||||||
neweststoriestitle: "Newest Stories"
|
neweststoriestitle: "Newest Stories"
|
||||||
|
stories_controller:
|
||||||
|
submitstorytitle: "Submit Story"
|
||||||
|
editstorytitle: "Edit Story"
|
||||||
|
|
|
@ -338,6 +338,9 @@ fr:
|
||||||
rssforstoriestitle: "RSS 2.0"
|
rssforstoriestitle: "RSS 2.0"
|
||||||
rssforcommentstitle: "Commentaires - RSS 2.0"
|
rssforcommentstitle: "Commentaires - RSS 2.0"
|
||||||
neweststoriestitle: "Dernières infos"
|
neweststoriestitle: "Dernières infos"
|
||||||
|
stories_controller:
|
||||||
|
submitstorytitle: "Soumettre une info"
|
||||||
|
editstorytitle: "Éditer une info"
|
||||||
date:
|
date:
|
||||||
abbr_day_names:
|
abbr_day_names:
|
||||||
- dim
|
- dim
|
||||||
|
|
Loading…
Reference in a new issue