From: Tom Hughes Date: Wed, 3 Jun 2009 07:42:40 +0000 (+0000) Subject: Use "confirm_email" instead "confirm email" in resource names so it X-Git-Tag: live~7207 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/11f457e84238cf4e53b0d5f7ee8bad4d5d50a14e Use "confirm_email" instead "confirm email" in resource names so it matches the method name. --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index b58a6a71c..1dbc9368d 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -206,11 +206,11 @@ class UserController < ApplicationController @user.email_valid = true @user.save! token.destroy - flash[:notice] = I18n.t('user.confirm email.success') + flash[:notice] = I18n.t('user.confirm_email.success') session[:user] = @user.id redirect_to :action => 'account', :display_name => @user.display_name else - @notice = I18n.t('user.confirm email.failure') + @notice = I18n.t('user.confirm_email.failure') end end end diff --git a/app/views/user/confirm_email.rhtml b/app/views/user/confirm_email.rhtml index 154dbb7c2..b9bd97fcd 100644 --- a/app/views/user/confirm_email.rhtml +++ b/app/views/user/confirm_email.rhtml @@ -1,8 +1,8 @@ -

<%= t 'user.confirm email.heading' %>

+

<%= t 'user.confirm_email.heading' %>

-

<%= t 'user.confirm email. press confirm button' %>

+

<%= t 'user.confirm_email. press confirm button' %>

- +
diff --git a/config/locales/de.yml b/config/locales/de.yml index ae3d09591..7ddbb8ede 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -599,7 +599,7 @@ de: heading: Bestätige das Benutzerkonto press confirm button: "Benutzerkonto aktivieren, indem du auf den Bestätigungsbutton klickst." button: Bestätigen - confirm email: + confirm_email: heading: Bestätige die Änderung der E-Mail-Adresse press confirm button: "Neue E-Mail-Adresse bestätigen, indem du auf den Bestätigungsbutton klickst." button: Bestätigen diff --git a/config/locales/en.yml b/config/locales/en.yml index 974449171..0cabeaec0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -603,7 +603,7 @@ en: button: Confirm success: "Confirmed your account, thanks for signing up!" failure: "A user account with this token has already been confirmed." - confirm email: + confirm_email: heading: Confirm a change of email address press confirm button: "Press the confirm button below to confirm your new email address." button: Confirm diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 3085d510b..8a5c36c87 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -253,7 +253,7 @@ fr: heading: "Confirmer un compte utilisateur" press confirm button: "Appuyer le bouton confirmer ci-dessous pour activer votre compte." button: "Confirmer" - confirm email: + confirm_email: heading: "Confirmer le changement de votre adresse e-mail" press confirm button: "Appuyer sur le bouton confirmer pour confirmer votre nouvelle adresse e-mail." button: "Confirmer" diff --git a/config/locales/is.yml b/config/locales/is.yml index 3c480eec2..f3858dfe4 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -601,7 +601,7 @@ is: button: "Staðfesta" success: "Notandinn þinn hefur verið staðfestur." failure: "Notandi hefur þegar verið staðfestur með þessum lykli." - confirm email: + confirm_email: heading: "Staðfesta breytingu á tölvupóstfangi" press confirm button: "Hér getur þú staðfest breytingu á tölvupóstfangi." button: "Staðfesta" diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 8e4e631da..e53c1032d 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -599,7 +599,7 @@ sl: heading: Potrdite uporabniški račun press confirm button: "Za aktivacijo vašega uporabniškega računa pritisnite na gumb Potrdi spodaj." button: Potrdi - confirm email: + confirm_email: heading: Potrdite spremembo naslova e-pošte press confirm button: "Za potrditev spremembe vašega naslova elektronske pošte pritisnite na gumb Potrdi spodaj." button: Potrdi