diff --git a/app/controllers/signup_controller.rb b/app/controllers/signup_controller.rb index 18cf79b..2b972e5 100644 --- a/app/controllers/signup_controller.rb +++ b/app/controllers/signup_controller.rb @@ -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", diff --git a/config/locales/en.yml b/config/locales/en.yml index 3a5ed27..9819f01 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 84a8526..29df8c2 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -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"