Merge pull request #3946 from luisramos0/missing_translatiojns

Fix last missing translations covered by specs
This commit is contained in:
Luis Ramos
2019-06-24 20:52:59 +01:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ Spree::UserSessionsController.class_eval do
if spree_user_signed_in?
respond_to do |format|
format.html {
flash[:success] = t(:logged_in_succesfully)
flash[:success] = t('devise.success.logged_in_succesfully')
redirect_back_or_default(after_sign_in_path_for(spree_current_user))
}
format.js {

View File

@@ -48,7 +48,7 @@ class SubscriptionMailer < Spree::BaseMailer
def send_mail(order)
I18n.with_locale valid_locale(order.user) do
confirm_email_subject = t('order_mailer.confirm_email.subject')
confirm_email_subject = t('spree.order_mailer.confirm_email.subject')
subject = "#{Spree::Config[:site_name]} #{confirm_email_subject} ##{order.number}"
mail(to: order.email,
from: from_address,

View File

@@ -96,6 +96,11 @@ en:
resend_confirmation_email: "Resend confirmation email."
confirmed: "Thanks for confirming your email! You can now log in."
not_confirmed: "Your email address could not be confirmed. Perhaps you have already completed this step?"
user_confirmations:
spree_user:
send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
confirmation_sent: "Email confirmation sent"
confirmation_not_sent: "Error sending confirmation email"
user_registrations:
spree_user:
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."
@@ -106,6 +111,8 @@ en:
Were you a guest last time? Perhaps you need to create an account or reset your password.
unconfirmed: "You have to confirm your account before continuing."
already_registered: "This email address is already registered. Please log in to continue, or go back and use another email address."
success:
logged_in_succesfully: "Logged in successfully"
user_passwords:
spree_user:
updated_not_active: "Your password has been reset, but your email has not been confirmed yet."
@@ -2321,6 +2328,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
payment_methods: "Payment Methods"
payment_method_fee: "Transaction fee"
payment_processing_failed: "Payment could not be processed, please check the details you entered"
payment_method_not_supported: "That payment method is unsupported. Please choose another one."
payment_updated: "Payment Updated"
inventory_settings: "Inventory Settings"
tag_rules: "Tag Rules"