Skip to content

Commit

Permalink
Use model translations in adjustment_reason view
Browse files Browse the repository at this point in the history
The AdjustmentReason model is used in translations in the index view.
  • Loading branch information
Murph33 committed Feb 16, 2016
1 parent 1103a08 commit 0286bea
Showing 1 changed file with 2 additions and 2 deletions.
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(:adjustment_reasons) %>
<%= Spree::AdjustmentReason.model_name.human(count: :other) %>
<% end %>
<% content_for :page_actions do %>
Expand Down Expand Up @@ -44,7 +44,7 @@
</table>
<% else %>
<div class="alpha twelve columns no-objects-found">
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/adjustment_reason')) %>,
<%= Spree.t(:no_resource_found, resource: Spree::AdjustmentReason.model_name.human(count: :other)) %>,
<%= link_to Spree.t(:add_one), new_object_url %>!
</div>
<% end %>

0 comments on commit 0286bea

Please sign in to comment.