Commit 65efcf09 authored by Carl Chenet's avatar Carl Chenet

translate flash info for succcessful signup

parent 1b938b7f
......@@ -47,8 +47,7 @@ class SignupController < ApplicationController
if @new_user.save
@invitation.destroy
session[:u] = @new_user.session_token
flash[:success] = "Welcome to #{Rails.application.name}, " <<
"#{@new_user.username}!"
flash[:success] = I18n.t 'controllers.signup_controller.flashsuccesssignupcontroller'
Countinual.count!("#{Rails.application.shortname}.users.created", "+1")
Countinual.count!("#{Rails.application.shortname}.users.total",
......
......@@ -566,6 +566,8 @@ en:
search_controller:
searchtitle: "Search"
flasherrorsearchcontroller: "Sorry, but the search engine is currently out of order"
signup_controller:
flashsuccesssignupcontroller: "Welcome to %{app}, %{user}!"
stories_controller:
submitstorytitle: "Submit Story"
editstorytitle: "Edit Story"
......
......@@ -585,6 +585,8 @@ fr:
search_controller:
searchtitle: "Rechercher"
flasherrorsearchcontroller: "Désolé mais le moteur de recherche est actuellement cassé"
signup_controller:
flashsuccesssignupcontroller: "Bienvenue sur le %{app}, %{user} !"
stories_controller:
submitstorytitle: "Soumettre une info"
editstorytitle: "Éditer une info"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment