Skip to content

Commit

Permalink
Merge pull request #813 from Murph33/improve_I18n_refund_reasons_views
Browse files Browse the repository at this point in the history
Improve I18n in refund reasons views
  • Loading branch information
jhawthorn committed Feb 12, 2016
2 parents a880259 + 091fbe6 commit d43a0e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions backend/app/views/spree/admin/refund_reasons/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= render partial: 'spree/admin/shared/configuration_menu' %>
<% content_for :page_title do %>
<%= Spree.t(:refund_reasons) %>
<%= Spree::RefundReason.model_name.human(count: :other) %>
<% end %>
<% content_for :page_actions do %>
Expand All @@ -23,8 +23,8 @@
</colgroup>
<thead>
<tr data-hook="named_types_header">
<th><%= Spree.t(:name) %></th>
<th><%= Spree.t(:active) %></th>
<th><%= Spree::RefundReason.human_attribute_name(:name) %></th>
<th><%= Spree::RefundReason.human_attribute_name(:active) %></th>
<th class="actions"></th>
</tr>
</thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<div class="row">
<div class="alpha four columns">
<%= f.field_container :name do %>
<%= f.label :name, Spree.t(:name), class: 'required' %><br />
<%= f.label :name, class: 'required' %><br />
<%= f.text_field :name, :class => 'fullwidth' %>
<% end %>
<%= f.field_container :code do %>
<%= f.label :code, Spree.t(:code), class: 'required' %><br />
<%= f.label :code, class: 'required' %><br />
<%= f.text_field :code, :class => 'fullwidth' %>
<% end %>
Expand Down
4 changes: 4 additions & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ en:
spree/refund:
amount: Amount
refund_reason_id: Reason
spree/refund_reason:
active: Active
name: Name
code: Code
spree/return_authorization:
amount: Amount
spree/return_reason:
Expand Down

0 comments on commit d43a0e3

Please sign in to comment.