Skip to content

Commit

Permalink
Improve I18n in refunds view partial
Browse files Browse the repository at this point in the history
  • Loading branch information
Murph33 committed Feb 18, 2016
1 parent 902ad00 commit d87a1a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/app/views/spree/admin/shared/_refunds.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<table class="index" id='payments' data-order-id='<%= @order.number %>'>
<thead>
<tr data-hook="refunds_header">
<th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
<th><%= Spree.t(:payment_identifier) %></th>
<th><%= Spree.t(:amount) %></th>
<th><%= Spree.t(:payment_method) %></th>
<th><%= Spree.t(:transaction_id) %></th>
<th><%= Spree::Refund.human_attribute_name(:created_at) %></th>
<th><%= Spree::Payment.human_attribute_name(:number) %></th>
<th><%= Spree::Refund.human_attribute_name(:amount) %></th>
<th><%= Spree::PaymentMethod.model_name.human %></th>
<th><%= Spree::Refund.human_attribute_name(:transaction_id) %></th>
<th><%= Spree.t(:reason) %></th>
<% if show_actions %>
<th class="actions"></th>
Expand Down
2 changes: 2 additions & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ en:
zipcode: Shipping address zipcode
spree/payment:
amount: Amount
number: Identifier
spree/payment_method:
name: Name
spree/product:
Expand Down Expand Up @@ -175,6 +176,7 @@ en:
spree/reimbursement_type:
name: Name
type: Type
created_at: "Date/Time"
spree/return_authorization:
amount: Amount
spree/return_item:
Expand Down

0 comments on commit d87a1a1

Please sign in to comment.