Skip to content

Commit

Permalink
some more translations
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed May 5, 2024
1 parent b03ab56 commit 44a44af
Show file tree
Hide file tree
Showing 14 changed files with 234 additions and 133 deletions.
68 changes: 68 additions & 0 deletions config/locales/devise.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
en:
devise:
confirmations:
confirmed: Your email address has been successfully confirmed.
send_instructions: You will receive an email with instructions for how to confirm your email address in a few minutes.
send_paranoid_instructions: If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes.
failure:
already_authenticated: You are already signed in.
inactive: Your account was not activated yet.
invalid: Invalid email or password.
last_attempt: You have one more attempt before your account is locked.
locked: Your account is locked.
not_found_in_database: Invalid email or password.
timeout: Your session expired. Please sign in again to continue.
unauthenticated: You need to sign in or sign up before continuing.
unconfirmed: You have to confirm your email address before continuing.
mailer:
confirmation_instructions:
subject: Confirmation instructions
reset_password_instructions:
subject: Reset password instructions
unlock_instructions:
subject: Unlock instructions
omniauth_callbacks:
failure: Could not authenticate you from %{kind} because "%{reason}".
success: Signed in successfully.
passwords:
edit:
title: Change your password
new:
send_instructions: Send me reset password instructions
title: Forgot your password?
no_token: You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided.
send_instructions: You will receive an email with instructions on how to reset your password in a few minutes.
send_paranoid_instructions: If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes.
updated: Your password was changed successfully. You are now signed in.
updated_not_active: Your password was changed successfully.
registrations:
destroyed: Bye! Your account was successfully cancelled. We hope to see you again soon.
signed_up: Welcome! You have signed up successfully.
signed_up_but_inactive: You have signed up successfully. However
signed_up_but_locked: You have signed up successfully. However, we could not sign you in because your account is locked.
signed_up_but_unconfirmed: A message with a confirmation link has been sent to your email address. Please open the link to activate your account.
sessions:
new:
sign_in: Log in
title: Log in
signed_in: Signed in successfully.
signed_out: Signed out successfully.
shared:
links:
forgot_password: Forgot your password?
sign_in: Log in
unlocks:
send_instructions: You will receive an email with instructions about how to unlock your account in a few minutes.
send_paranoid_instructions: If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.
unlocked: Your account has been unlocked successfully. Please sign in to continue.
errors:
messages:
already_confirmed: was already confirmed, please try signing in
confirmation_period_expired: needs to be confirmed within %{period}, please request a new one
expired: has expired, please request a new one
not_found: was not found
not_locked: was not locked
not_saved:
one: '1 error prohibited this %{resource} from being saved:'
other: "%{count} errors prohibited this %{resource} from being saved:"
10 changes: 10 additions & 0 deletions config/locales/devise.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ fr:
passwords:
edit:
title: Réinitialisation de mot de passe
new:
send_instructions: Envoyer les instructions
title: Mot de passe oublié
no_token: Vous ne pouvez accéder à cette page sans passer par un e-mail de réinitialisation de mot de passe. Si vous êtes passé par un e-mail de ce type, assurez-vous d'utiliser l'URL complète.
send_instructions: Vous allez recevoir les instructions de réinitialisation du mot de passe dans quelques instants
send_paranoid_instructions: Si votre e-mail existe dans notre base de données, vous allez recevoir un lien de réinitialisation par e-mail
Expand All @@ -42,8 +45,15 @@ fr:
update_needs_confirmation: Votre compte a bien été mis à jour mais nous devons vérifier votre nouvelle adresse email. Merci de vérifier vos emails et de cliquer sur le lien de confirmation pour finaliser la validation de votre nouvelle adresse.
updated: Votre compte a été modifié avec succès.
sessions:
new:
sign_in: Me connecter
title: Connexion
signed_in: Connecté.
signed_out: Déconnecté.
shared:
links:
forgot_password: Mot de passe oublié ?
sign_in: Connexion
unlocks:
send_instructions: Vous allez recevoir les instructions nécessaires au déverrouillage de votre compte dans quelques instants
send_paranoid_instructions: Si votre compte existe, vous allez bientôt recevoir un email contenant les instructions pour le déverrouiller.
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
en:
or: or
by: by
site_name: Paris.rb
navbar:
coc: Code of conduct
videos: Videos
Expand Down
124 changes: 0 additions & 124 deletions config/locales/fr.old.yml

This file was deleted.

1 change: 1 addition & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fr:
or: ou
by: par
site_name: Paris.rb
navbar:
coc: Code de conduite
videos: Vidéos
Expand Down
45 changes: 45 additions & 0 deletions config/locales/models/talk.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
en:
activerecord:
attributes:
talk:
duration: Duration
happened: Happened
happened_at: Date
level: Level
lineup: Add to lineup
preferred_month_talk: Which month?
priority: Priority
proposed_months:
april: April
august: August
december: December
february: February
january: January
july: July
june: June
march: March
may: May
november: November
october: October
september: September
slides: Slides
speaker_email: Email
speaker_name: Speaker
speaker_twitter: Twitter
time_position: Talk time
title: Title
video_slug: Video
enumerize:
talk:
duration:
lightning: Lightning - 5 min
long: Long - 20 min
level:
easy: Easy
expert: Expert
intermediate: Intermediate
priority:
high: High
low: Low
normal: Normal
45 changes: 45 additions & 0 deletions config/locales/models/talk.fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
fr:
activerecord:
attributes:
talk:
duration: Durée
happened: A eu lieu
happened_at: Date
level: Difficulté
lineup: Ajouter au lineup
preferred_month_talk: Quel mois ?
priority: Priorité
proposed_months:
april: Avril
august: Août
december: Decembre
february: Février
january: Janvier
july: Juillet
june: Juin
march: Mars
may: Mai
november: Novembre
october: Octobre
september: Septembre
slides: Slides
speaker_email: Email
speaker_name: Speaker
speaker_twitter: Twitter
time_position: Heure du talk
title: Titre
video_slug: Vidéo
enumerize:
talk:
duration:
lightning: Lightning - 5 min
long: Long - 20 min
level:
easy: Débutant
expert: Expert
intermediate: Moyen
priority:
high: Haute
low: Basse
normal: Normale
8 changes: 8 additions & 0 deletions config/locales/models/user.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
en:
activerecord:
attributes:
user:
email: Email
password: Password
remember_me: Remember me
8 changes: 8 additions & 0 deletions config/locales/models/user.fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fr:
activerecord:
attributes:
user:
email: Email
password: Mot de passe
remember_me: Se souvenir de moi
18 changes: 9 additions & 9 deletions config/locales/views/components/pagination.en.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
fr:
en:
components:
pagination:
first:
aria_label: Première page
aria_label: First page
last:
aria_label: Dernière page
aria_label: Last page
next:
aria_label: Page suivante
of: sur
aria_label: Next page
of: of
previous:
aria_label: Page précédente
results: résultats
showing: Affichage de
to: à
aria_label: Previous page
results: results
showing: Showing
to: to
truncate: ""
3 changes: 3 additions & 0 deletions config/locales/views/videos.en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
en:
videos:
card:
thumbnail_alt: 'Thumbnail of the video: %{title}'
watch_video: 'Watch the video: %{title}'
index:
description: All the videos of the Paris.rb meetup talks
title: Videos of the talks
Expand Down
7 changes: 7 additions & 0 deletions test/system/home_page_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ class HomePageSystemTest < ApplicationSystemTestCase
assert_equal 1, Ahoy::Visit.count
assert_equal 1, Ahoy::Event.count
end


test "display the home page in english" do
visit root_path(locale: :en)

assert_selector "h1", text: "Paris.rb"
end
end
Loading

0 comments on commit 44a44af

Please sign in to comment.