Skip to content

Instantly share code, notes, and snippets.

@tadatoshi
Created April 26, 2010 21:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save tadatoshi/379988 to your computer and use it in GitHub Desktop.
Save tadatoshi/379988 to your computer and use it in GitHub Desktop.
I18n French translation for Devise (http://github.com/plataformatec/devise)
#########################################################################################################
# I18n French translation for Devise (http://github.com/plataformatec/devise)
# I18n traduction française pour Devise
#########################################################################################################
fr:
errors:
messages:
not_found: "n'a pas été trouvé(e)"
already_confirmed: "a déjà été confirmé(e)"
not_locked: "n'était pas verrouillé(e)"
devise:
failure:
unauthenticated: "Vous devez vous connecter ou vous inscrire pour continuer."
unconfirmed: "Vous devez confirmer votre compte pour continuer."
locked: "Votre compte est verrouillé."
invalid: "Courriel ou mot de passe incorrect."
invalid_token: "Jeton d'authentification incorrect."
timeout: "Votre session est expirée, veuillez vous reconnecter pour continuer."
inactive: "Votre compte n'est pas encore activé."
sessions:
signed_in: "Connecté."
signed_out: "Déconnecté."
passwords:
send_instructions: "Vous allez recevoir un courriel contenant des instructions pour changer votre mot de passe."
updated: "Votre mot de passe a été changé. Vous êtes maintenant connecté."
confirmations:
send_instructions: "Vous allez recevoir un courriel contenant des instructions pour activer votre compte."
confirmed: "Votre compte a été activé. Vous êtes maintenant connecté."
registrations:
signed_up: "Votre inscription est enregistrée. Si demandé, un courriel de confirmation vous a été envoyé."
updated: "Votre mise à jour a été prise en compte."
destroyed: "Votre compte a été supprimé. Nous espérons vous revoir bientôt."
unlocks:
send_instructions: "Vous allez recevoir un courriel avec des instructions pour déverrouiller votre compte."
unlocked: "Votre compte est déverrouillé. Vous êtes maintenant connecté."
mailer:
confirmation_instructions: "Instructions de confirmation"
reset_password_instructions: "Instructions pour changer le mot de passe"
unlock_instructions: "Instructions pour déverrouiller le compte"
##########################################################################################################
# For generated views: By "rails generate devise_views".
# Assuming to use I18n "Lazy" lookup, except for the ones under "common" namespace.
# e.g. Under views/devise/confirmations/new.html.erb,
# <h2>Resend confirmation instructions</h2>
# is changed to
# <h2><%= t(".resend_confirmation_instructions") %></h2>
# locally.
##########################################################################################################
common:
forgot_your_password?: "Mot de passe oublié ?"
hello: "Bonjour"
sign_in: "Se connecter"
sign_up: "S'enregistrer"
shared:
links:
didnt_receive_confirmation_instructions?: "Vous n'avez pas reçu de courriel de confirmation ?"
didnt_receive_unlock_instructions?: "Vous n'avez pas reçu de courriel de déverrouillage de votre compte ?"
confirmations:
new:
resend_confirmation_instructions: "Renvoyer le courriel de confirmation"
mailer:
confirmation_instructions:
welcome: "Bienvenu(e)"
you_can_confirm_your_account_through_the_link_below: "Vous pouvez confirmer votre compte en cliquant sur le lien ci-dessous"
confirm_my_account: "Confirmer mon compte"
reset_password_instructions:
# For "Someone has requested a link to change your password, and you can do this through the link below."
reset_password_instruction: "Un changement de mot de passe a été demandé. Vous pouvez le faire en cliquant sur le lien ci-dessous."
change_my_password: "Changer mon mot de passe"
# For "If you didn't request this, please ignore this email."
wrong_request_instruction: "Si vous n'avez pas demandé ce changement, ignorez ce message."
# For "Your password won't change until you access the link above and create a new one."
unchange_password_message: "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."
unlock_instructions:
# For "Your account has been locked due to an excessive amount of unsuccessful sign in attempts."
locked_account_message: "Votre compte a été verrouillé à la suite d'un trop grand nombre de tentatives d'authentification."
# For "Click the link below to unlock your account"
unlock_account_instruction: "Cliquez sur le lien ci-dessous pour déverrouiller votre compte"
unlock_my_account: "Déverrouiller mon compte"
passwords:
edit:
change_your_password: "Changez votre mot de passe"
change_my_password: "Changer mon mot de passe"
new:
send_me_reset_password_instructions: "Envoyez-moi un courriel pour changer mon mot de passe"
registrations:
edit:
edit: "Modifier"
# For "leave blank if you don't want to change it"
password_instruction: "Laisser vide si vous ne voulez pas le changer"
# For "we need your current password to confirm your changes"
current_password_instruction: "Vous devez saisir votre mot de passe courant pour confirmer vos changement"
update: "Mettre à jour"
cancel_my_account: "Annuler mon compte"
unhappy?: "Pas content(e) ?"
are_you_sure?: "Êtes-vous sûr ?"
back: "Retour"
unlocks:
new:
resend_unlock_instructions: "Renvoyez le mail pour déverrouiller mon compte"
@elsifaka
Copy link

hi tadatoshi,

i forked and edited your gist for devise french translation.

@tadatoshi
Copy link
Author

Thank you, elsifaka.

I appreciate it very much.

Tadatoshi

@tadatoshi
Copy link
Author

Merged elsifaka's fork.

@tadatoshi
Copy link
Author

Hi, everybody,

I have added the translations for the generated view (by "rails generate devise_views") because the default one has English hard-coded.
Could you please correct my French?

Thank you in advance.
Tadatoshi

@flanselle
Copy link

hello
I have changed some parts of your translation tadatoshi, you could check here :
git://gist.github.com/381853.git

@tadatoshi
Copy link
Author

Thank you, flanselle.

I have merged your change.

I appreciate your help very much.

Tadatoshi

@infernalsirius
Copy link

I have made some changes on the french translation. To check it http://gist.github.com/566573

@tadatoshi
Copy link
Author

Thank you, infernalsirius.

I have merged your change.
I am sorry for the delay.

I appreciate your help very much.

Tadatoshi

@sohara
Copy link

sohara commented Dec 16, 2010

It seems that the generated views have only hard coded english strings... does one have to modify all of the files by hand to use the i18n of the generated views, or is there some way to get devise to generate views with calls to i18n? I noticed this fork appears to allow for i18n generated views, but the keys are not same as those that appear in this gist:
https://github.com/davidw/devise/blob/translated-views/config/locales/en.yml

@tadatoshi
Copy link
Author

Hi, sohara,

Thank you for your comment.

When I first created this I18n French translation for Devise, I also forked Devise to make the templates to use I18n by default because at that time, they had English words hard coded. But I got caught up with other works and in the meantime my fork became out of date from the main branch. Eventually, I deleted the fork. So so far, I've been just using my template file with I18n, which may be already out of date as you pointed out that the keys in this gist are not same.

I'm curious to know how other people are dealing with I18n. I hope someone has a time to make Devise use the templates with I18n.

Tadatoshi

@sohara
Copy link

sohara commented Dec 17, 2010

Hi Tadatoshi,
Thanks for getting back to me. In short, the fork I mentioned of devise is quite up to date with the current master branch of devise and has internationalized most of the important strings for rendered views, and therefore much easier to use than generating all the devise views and editing them for a given locale. I created a locale file based on your gist with a few additions that works with this fork. You can find it here: https://gist.github.com/744529
The repository of the devise fork can be found here: https://github.com/davidw/devise/tree/translated-views
Be sure to select the translated-views branch.
Take care,
Sean

@pguegan
Copy link

pguegan commented Jan 25, 2011

Hi tadatoshi,

Thanks for your work, which saved me a lot of time!

I made some changes on your translation, so it sounds more native french. You can have a look here : https://gist.github.com/795842

Bonne journée ;)

Phil.

@tadatoshi
Copy link
Author

Thank you, Phil.

I apologize that I was not able to reply to you earlier.
I have merged your change.

I have learned a lot from your translation.

Merci beaucoup.
Tadatoshi

@GeoffreyHervet
Copy link

Sometimes you use courriel, sometime mail, you should use e-mail ;)

@canadianjameson
Copy link

Hi all,

I'm new to this and trying to find out how to easily apply a translation for the email that is sent out when a password reset is requested - does anyone have a) the translation handy and b) can tell me how one would easily go about implementing it?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment