Skip to content

Commit

Permalink
Merge pull request #802 from Murph33/improve_i18n_product_property
Browse files Browse the repository at this point in the history
Improve I18n in product property views
  • Loading branch information
jhawthorn committed Feb 15, 2016
2 parents ef1af12 + 560950b commit 1841403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/app/views/spree/admin/product_properties/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
<%= form_for @product, :url => admin_product_url(@product), :method => :put do |f| %>
<fieldset>
<legend align="center"><%= Spree.t(:product_properties) %></legend>
<legend align="center"><%= Spree::ProductProperty.model_name.human(count: :other) %></legend>
<div class="add_product_properties" data-hook="add_product_properties"></div>

<div id="prototypes" data-hook></div>

<table class="index sortable" data-hook data-sortable-link="<%= update_positions_admin_product_product_properties_url %>">
<thead>
<tr data-hook="product_properties_header">
<th colspan="2"><%= Spree.t(:property) %></th>
<th><%= Spree.t(:value) %></th>
<th colspan="2"><%= Spree::Property.model_name.human %></th>
<th><%= Spree::ProductProperty.human_attribute_name(:value) %></th>
<th class="actions"></th>
</tr>
</thead>
Expand Down Expand Up @@ -76,8 +76,8 @@
<table class="index sortable" data-hook data-sortable-link="<%= update_positions_admin_product_variant_property_rule_values_url %>">
<thead>
<tr data-hook="variant_property_values_header">
<th colspan="2"><%= Spree.t(:property) %></th>
<th><%= Spree.t(:value) %></th>
<th colspan="2"><%= Spree::Property.model_name.human %></th>
<th><%= Spree::ProductProperty.human_attribute_name(:value) %></th>
<th class="actions"></th>
</tr>
</thead>
Expand Down
3 changes: 3 additions & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ en:
spree/product:
one: Product
other: Products
spree/product_property:
one: Product Property
other: Product Properties
spree/promotion:
one: Promotion
other: Promotions
Expand Down

0 comments on commit 1841403

Please sign in to comment.