From 5cbc4cbf30f0e320e4715256a2edb60886e6900e Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 8 Jun 2018 10:53:30 +1000 Subject: [PATCH] Use scoped keys for table headers in saved card partial --- app/views/spree/users/_saved_cards.html.haml | 4 ++-- config/locales/en.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/spree/users/_saved_cards.html.haml b/app/views/spree/users/_saved_cards.html.haml index 55d4d83442..d37d6c6a86 100644 --- a/app/views/spree/users/_saved_cards.html.haml +++ b/app/views/spree/users/_saved_cards.html.haml @@ -3,8 +3,8 @@ %th= t(:card_type) %th= t(:card_number) %th= t(:card_expiry_date) - %th= t(:default?) - %th= t(:delete?) + %th= t('.default?') + %th= t('.delete?') %tr.card{ id: "card{{ card.id }}", ng: { repeat: "card in savedCreditCards" } } %td.brand{ ng: { bind: '::card.brand' } } %td.number{ ng: { bind: '::card.number' } } diff --git a/config/locales/en.yml b/config/locales/en.yml index 00631faf55..2a38a62e36 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1232,7 +1232,6 @@ en: saving_credit_card: Saving credit card... card_has_been_removed: "Your card has been removed (number: %{number})" card_could_not_be_removed: Sorry, the card could not be removed - default?: Default? ie_warning_headline: "Your browser is out of date :-(" ie_warning_text: "For the best Open Food Network experience, we strongly recommend upgrading your browser:" @@ -2732,5 +2731,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using total: Total paid?: Paid? view: View + saved_cards: + default?: Default? + delete?: Delete? localized_number: invalid_format: has an invalid format. Please enter a number.