Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SD-1270] Translations cleanup #528

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1>
<%= Spree.t('user_mailer.confirmation_instructions.welcome', email: @email) %>
<%= I18n.t('devise.mailer.confirmation_instructions.greeting', recipient: @email) %>
</h1>
<p>
<%= Spree.t('user_mailer.confirmation_instructions.instructions_1', { store_name: @current_store.name }) %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= Spree.t('user_mailer.confirmation_instructions.welcome', email: @email) %>
<%= I18n.t('devise.mailer.confirmation_instructions.greeting', recipient: @email) %>
<%= Spree.t('user_mailer.confirmation_instructions.instructions_1', { store_name: @current_store.name }) %>
<%= Spree.t('user_mailer.confirmation_instructions.instructions_2') %>
<%= Spree.t('user_mailer.confirmation_instructions.button') %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1>
<%= Spree.t('user_mailer.reset_password_instructions.welcome', email: @user.email) %>
<%= I18n.t('devise.mailer.reset_password_instructions.greeting', recipient: @user.email) %>
</h1>
<p>
<%= Spree.t('user_mailer.reset_password_instructions.instructions_1', { store_name: @current_store.name }) %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/user_passwords/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="row">
<div class="col-lg-6 offset-lg-3">
<div class="card mb-3 user-passwords-no-border">
<h3 class="spree-mb-large spree-mt-large spree-header"><%= Spree.t(:change_your_password) %></h3>
<h3 class="spree-mb-large spree-mt-large spree-header"><%= I18n.t('devise.passwords.edit.change_your_password') %></h3>
<div class="card-body">
<%= form_for @spree_user, as: :spree_user, url: spree.update_password_path, method: :put do |f| %>
<div class="form-group">
Expand Down
34 changes: 0 additions & 34 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,20 @@
bg:
spree:
admin_login: "Админ вход"
change_your_password: "Промени своята парола"
devise:
confirmations:
confirmed: Вашият акаунт е потвърден. Вече сте вписан.
send_instructions: До няколко минути ще получите съобщение с обяснение как да потвърдите своя акаунт.
failure:
inactive: Вашият акаунт все още не е активен.
invalid: Грешен имейл или парола.
invalid_token: Невалиден token.
locked: Вашият акаунт е заключен.
timeout: 'Вашата сесия е изтекла, моля влезте отново.'
unauthenticated: За да продължите трябва да влезете в профила си.
unconfirmed: Трябва да потвърдите акаунта си преди да продължите.
mailer:
confirmation_instructions:
subject: Инструкции за потвърждаване
reset_password_instructions:
subject: Инструкции за смяна на паролата
unlock_instructions:
subject: Инструкции за отключване
oauth_callbacks:
failure: "Не можете да бъдете оторизиран от %{kind}, поради %{reason}."
success: "Влязохте успешно с вашият %{kind} профил."
unlocks:
send_instructions: До няколко минути ще получите имейл с инструкции как да отключите своя акаунт.
unlocked: Вашият акаунт бе отключен успешно. Вече сте вписани.
user_passwords:
spree_user:
cannot_be_blank: Вашата парола не може бъде празна.
no_token: Не можете да достъпите тази страница ако не влезете през мейла за забравена парола.
send_instructions: До няколко минути ще получите имейл с инструкции как да промените паролата си.
updated: Вашата парола бе променена успешко. Вече сте вписани.
user_registrations:
destroyed: Вашият акаунт бе отменен успешно. Надяваме се да Ви видим скоро.
inactive_signed_up: 'Вие се регистрирахте успешно, въпреки това не можете да се логнете в системата, поради %{reason}.'
signed_up: Вие се регистрирахте успешно.
updated: Успешно обновихте своя акаунт.
user_sessions:
signed_in: Успешно влизане
signed_out: Успешно излизане
already_signed_in: Вече сте влезли
already_signed_out: Вече сте излезли
errors:
messages:
already_confirmed: Вече бе потвърден
email_is_invalid: Email не може да бъде празен
not_found: Не е намерен
not_locked: Не е заключен
not_saved:
one: '1 грешка предотврати запазването на %{resource}:'
other: '%{count} грешки предотвратиха запазването на %{resource}:'
35 changes: 0 additions & 35 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
de:
spree:
admin_login: Admin Login
change_your_password: Kennwort zurücksetzen
user_mailer:
reset_password_instructions:
instructions_1: "Es wurde eine Anfrage zum Zurücksetzen Ihres Passworts gestellt.\nWenn Sie diese Anfrage nicht gestellt haben, ignorieren Sie diese E-Mail.\n\nWenn Sie diese Anfrage gestellt haben, klicken Sie bitte auf den folgenden Link:"
Expand All @@ -13,53 +12,19 @@ de:
devise:
confirmations:
confirmed: Ihr Konto wurde erfolgreich aktiviert.
send_instructions: 'In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen, um Ihr Konto zu aktivieren.'
spree_user:
already_confirmed: Ihre E-Mail wurde bereits bestätigt. Bitte versuchen Sie erneut, sich anzumelden.
failure:
inactive: Ihr Konto wurde noch nicht aktiviert.
invalid: Ungültige E-Mail-Adresse oder Passwort.
invalid_token: Ungültiger Authentifizierungsschlüssel.
locked: Ihr Konto ist gesperrt.
timeout: 'Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an, um fortzufahren.'
unauthenticated: 'Sie müssen sich anmelden oder registrieren, bevor Sie fortfahren.'
unconfirmed: 'Sie müssen Ihre Registrierung bestätigen, bevor Sie fortfahren.'
mailer:
confirmation_instructions:
subject: Bestätigen Sie Ihre Registrierung
reset_password_instructions:
subject: Passwort zurücksetzen
unlock_instructions:
subject: Konto freischalten
oauth_callbacks:
failure: 'Autorisierung durch %{kind} fehlgeschlagen aufgrund von %{reason}.'
success: 'Erfolgreich autorisiert durch %{kind} Konto.'
unlocks:
send_instructions: In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen um Ihr Konto freizuschalten.
unlocked: Ihr Konto wurde erfolgreich freigeschaltet.
user_passwords:
spree_user:
cannot_be_blank: Ihr Passwort darf nicht leer sein.
no_token: Sie können nicht auf diese Seite zugreifen, wenn Sie den Link aus einer E-Mail zum Zurücksetzen des Kennworts nicht verwenden. Wenn Sie den Link aus einer E-Mail zum Zurücksetzen des Passworts verwenden, stellen Sie bitte sicher, dass Sie die vollständige URL verwendet haben.
send_instructions: In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen um Ihr Passwort zurücksetzen.
updated: Ihr Passwort wurde erfolgreich geändert.
user_registrations:
destroyed: Ihr Konto wurde erfolgreich gelöscht. Auf Wiedersehen!
inactive_signed_up: 'Sie haben sich erfolgreich registriert. Wir konnten Sie jedoch nicht anmelden, da Ihr Konto %{reason} ist.'
signed_up_but_unconfirmed: Eine Nachricht mit einem Bestätigungslink wurde an Ihre E-Mail-Adresse gesendet. Bitte folgen Sie dem Link, um Ihr Konto zu aktivieren.
signed_up: Herzlich Willkommen! Sie haben sich erfolgreich registriert.
updated: Sie haben Ihr Konto erfolgreich aktualisiert.
user_sessions:
signed_in: Erfolgreich angemeldet.
signed_out: Erfolgreich abgemeldet.
already_signed_in: Bereits angemeldet.
already_signed_out: Bereits abgemeldet.
errors:
messages:
already_confirmed: wurde bereits bestätigt
email_is_invalid: E-Mail-Adresse darf nicht leer sein
not_found: nicht gefunden
not_locked: war nicht gesperrt
not_saved:
one: '1 Fehler verhindert das Speichern von %{resource}:'
other: '%{count} Fehler verhindern das Speichern von %{resource}:'
37 changes: 0 additions & 37 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
en:
spree:
admin_login: "Admin Login"
change_your_password: "Change your password"
user_mailer:
reset_password_instructions:
welcome: "Hi %{email}"
instructions_1: "A request to reset the password for your %{store_name} account has been made."
instructions_2: Click the button below to reset it.
instructions_3: If you did not request a password change ignore this email or contact us.
button: Reset your password
thanks: Thank you,
store_team: "%{store_name} Team"
confirmation_instructions:
welcome: "Welcome %{email}!"
instructions_1: "Thanks for registering at %{store_name}."
instructions_2: "Click the button below to confirm your account:"
instructions_3: If you have any questions, feel free to simply reply to this email.
Expand All @@ -23,53 +20,19 @@ en:
devise:
confirmations:
confirmed: Your account was successfully confirmed. You can now log in.
send_instructions: You will receive an email with instructions about how to confirm your account in a few minutes.
spree_user:
already_confirmed: Email was already confirmed, please try signing in.
failure:
inactive: Your account was not activated yet.
invalid: Invalid email or password.
invalid_token: Invalid authentication token.
locked: Your account is locked.
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 account before continuing.
mailer:
confirmation_instructions:
subject: Confirmation instructions
reset_password_instructions:
subject: Reset password instructions
unlock_instructions:
subject: Unlock Instructions
oauth_callbacks:
failure: 'Could not authorize you from %{kind} because %{reason}.'
success: 'Successfully authorized from %{kind} account.'
unlocks:
send_instructions: You will receive an email with instructions about how to unlock your account in a few minutes.
unlocked: Your account was successfully unlocked. You are now signed in.
user_passwords:
spree_user:
cannot_be_blank: Your password cannot be blank.
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 about how to reset your password in a few minutes.
updated: Your password was changed successfully. You are now signed in.
user_registrations:
destroyed: Bye! Your account was successfully cancelled. We hope to see you again soon.
inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
signed_up: Welcome! You have signed up successfully.
updated: You updated your account successfully.
user_sessions:
signed_in: Signed in successfully.
signed_out: Signed out successfully.
already_signed_in: Already signed in.
already_signed_out: Already signed out.
errors:
messages:
already_confirmed: was already confirmed
email_is_invalid: Email address cannot be blank
not_found: 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:'
33 changes: 0 additions & 33 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,14 @@ es:
devise:
confirmations:
confirmed: Su cuenta ha sido confirmada. Ahora está conectado.
send_instructions: Recibirá un email con instrucciones acerca de como confirmar su cuenta en pocos minutos.
failure:
inactive: Su cuenta no ha sido activada aún.
invalid: Dirección de correo o contraseña no válidos.
invalid_token: Token de autenticación no válido.
locked: Su cuenta está bloqueada.
timeout: 'Su sesión ha expirado, por favor conéctese de nuevo para continuar.'
unauthenticated: Necesita conectarse o registrarse para continuar.
unconfirmed: Necesita confirmar su cuenta para continuar.
mailer:
confirmation_instructions:
subject: Instrucciones de confirmación
reset_password_instructions:
subject: Instrucciones para restablecer la contraseña
unlock_instructions:
subject: Instrucciones de desbloqueo
oauth_callbacks:
failure: 'No es posible autorizarle desde %{kind} porque %{reason}.'
success: 'Cuenta autorizada correctamente desde %{kind}.'
unlocks:
send_instructions: Recibirá un email con instrucciones acerca de cómo desbloquear su cuenta en pocos minutos.
unlocked: Su cuenta ha sido desbloqueada correctamente. Ahora está conectado.
user_passwords:
spree_user:
cannot_be_blank: La contraseña no puede estar en blanco.
send_instructions: Recibirá un email con instrucciones acerca de como restaurar su contraseña en pocos minutos.
updated: Su contraseña ha sido cambiada correctamente. Ahora está conectado.
user_registrations:
destroyed: Hasta luego! Su cuenta ha sido cancelada correctamente. Esperamos volver a verle pronto.
inactive_signed_up: 'Ha sido registrado correctamente. Sin embargo, no se puede acceder porque su cuenta está %{reason}.'
signed_up: Bienvenido! Ha sido registrado correctamente.
updated: Su cuenta ha sido actualizada correctamente .
user_sessions:
signed_in: Conectado correctamente.
signed_out: Desconectado correctamente.
errors:
messages:
already_confirmed: ya estaba confirmado
email_is_invalid: dirección de correo electrónico no puede estar en blanco
not_found: no encontrado
not_locked: no estaba bloqueado
not_saved:
one: '1 error impidió guardar este %{resource}:'
other: '%{count} errores impidieron guardar este %{resource}:'
33 changes: 0 additions & 33 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,14 @@ fr:
devise:
confirmations:
confirmed: Votre compte a été confirmé. Vous êtes maintenant connecté(e).
send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de confirmer votre compte.
failure:
inactive: Votre compte n'a pas encore été activé.
invalid: Courriel ou mot de passe non valide.
invalid_token: Jeton d'authentification non valide.
locked: Votre compte est bloqué.
timeout: 'Votre session a expiré, merci de bien vouloir vous connecter à nouveau pour continuer.'
unauthenticated: Vous devez vous identifier ou vous inscrire avant de poursuivre.
unconfirmed: Vous devez confirmer votre compte avant de continuer.
mailer:
confirmation_instructions:
subject: Instructions de confirmation d'inscription
reset_password_instructions:
subject: Instructions pour réinitialiser votre mot de passe
unlock_instructions:
subject: Instructions pour déverrouiller votre compte
oauth_callbacks:
failure: 'Connexion impossible pour le compte %{kind} car %{reason}.'
success: 'Connexion avec succès pour le compte %{kind}.'
unlocks:
send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de déverrouiller votre compte.
unlocked: Votre compte a été déverrouillé. Vous êtes maintenant connecté(e).
user_passwords:
spree_user:
cannot_be_blank: Votre mot de passe ne peut pas être vide.
send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de réinitialiser votre mot de passe.
updated: Votre mot de passe a été changé avec succès. Vous êtes maintenant connecté(e).
user_registrations:
destroyed: Au revoir! Votre compte a été annulé. Nous espérons vous revoir bientôt.
inactive_signed_up: "Vous vous êtes inscrit(e) avec succès. Cependant, nous n'avons pu vous connecter car votre compte est %{reason}."
signed_up: Bienvenue! Vous vous êtes inscrit(e) avec succès.
updated: Vous avez mis à jour votre compte avec succès.
user_sessions:
signed_in: Connexion avec succès.
signed_out: Déconnexion avec succès.
errors:
messages:
already_confirmed: a déjà été confirmé
email_is_invalid: adresse e-mail ne peut pas être vide
not_found: "n'a pas été trouvé"
not_locked: "n'a pas été bloqué"
not_saved:
one: "1 erreur interdit cette %{ressource} d'être enregistrée :"
other: "%{count} erreurs interdisent cette %{resource} d'être enregistrée :"
Loading