Created
April 5, 2012 10:12
-
-
Save pifleo/2309716 to your computer and use it in GitHub Desktop.
Rails - Devise i18n mails template fr/en
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# app/views/devise/mailer/confirmation_instructions.html.haml | |
%p | |
= t('devise.mailer.welcome', :email => @resource.email) | |
%p= t('devise.mailer.confirmation_instructions.msg') | |
%p= link_to t('devise.mailer.confirmation_instructions.link'), confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/locales/devise.en.yml | |
en: | |
devise: | |
mailer: | |
confirmation_instructions: | |
subject: 'Confirmation instructions' | |
msg: You can confirm your account email through the link below: | |
link: Confirm my account | |
reset_password_instructions: | |
subject: 'Reset password instructions' | |
unlock_instructions: | |
subject: 'Unlock Instructions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/locales/devise.fr.yml | |
fr: | |
devise: | |
mailer: | |
hello: "Bienvenu %{email} !" | |
welcome: "Bienvenu %{email} !" | |
confirm: "Valider mon compte" | |
change: 'Changer mon mot de passe' | |
someone_requested: "Un changement de mot de passe a été demandé. Vous pouvez le faire en cliquant sur le lien ci-dessous." | |
please_ignore: "Si vous n'avez pas fait cette demande, veuillez ignorer cet email." | |
password_wont_change: "Votre mot de passe ne sera pas changé tant que vous n'aurez pas accédé au lien ci-dessus pour en créer un nouveau." | |
locked: "Votre compte a été bloqué à cause d'un nombre excessif de tentatives de connexion." | |
click_to_unlock: "Cliquez sur le lien ci-dessous pour déverrouiller votre compte" | |
unlock: "Déverrouiller mon compte" | |
confirmation_instructions: | |
subject: "Instructions de confirmation" | |
msg: Vous pouvez confirmer votre compte au travers du lien suivant: | |
link: Confirmer mon compte | |
reset_password_instructions: | |
subject: "Instructions pour changer le mot de passe" | |
unlock_instructions: | |
subject: "Instructions pour déverrouiller le compte" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment