i18n of controllers/stories_controllers

This commit is contained in:
Carl Chenet 2016-11-15 17:11:32 +01:00
parent 286f25e712
commit 516edc5038
3 changed files with 9 additions and 3 deletions

View file

@ -9,7 +9,7 @@ class StoriesController < ApplicationController
before_filter :find_story!, :only => [ :suggest, :submit_suggestions ]
def create
@title = "Submit Story"
@title = I18n.t 'controllers.home_controller.submitstorytitle'
@cur_url = "/stories/new"
@story = Story.new(story_params)
@ -51,7 +51,7 @@ class StoriesController < ApplicationController
return redirect_to "/"
end
@title = "Edit Story"
@title = I18n.t 'controllers.home_controller.submitstorytitle'
if @story.merged_into_story
@story.merge_story_short_id = @story.merged_into_story.short_id
@ -67,7 +67,7 @@ class StoriesController < ApplicationController
end
def new
@title = "Submit Story"
@title = I18n.t 'controllers.home_controller.submitstorytitle'
@cur_url = "/stories/new"
@story = Story.new

View file

@ -326,3 +326,6 @@ en:
rssforstoriestitle: "RSS 2.0"
rssforcommentstitle: "Comments - RSS 2.0"
neweststoriestitle: "Newest Stories"
stories_controller:
submitstorytitle: "Submit Story"
editstorytitle: "Edit Story"

View file

@ -338,6 +338,9 @@ fr:
rssforstoriestitle: "RSS 2.0"
rssforcommentstitle: "Commentaires - RSS 2.0"
neweststoriestitle: "Dernières infos"
stories_controller:
submitstorytitle: "Soumettre une info"
editstorytitle: "Éditer une info"
date:
abbr_day_names:
- dim