Skip to content

Commit

Permalink
Merge pull request #769 from Murph33/remove_into_actions_translations…
Browse files Browse the repository at this point in the history
…_scope

Put remove into 'actions' translations scope
  • Loading branch information
cbrunsdon committed Feb 1, 2016
2 parents 227e35a + 90b5e82 commit c8c0335
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/app/helpers/spree/admin/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def link_to_remove_fields(name, f, options = {})
options[:class] = '' unless options[:class]
options[:class] += 'no-text with-tip' if options[:no_text]
url = f.object.persisted? ? [:admin, f.object] : '#'
link_to_with_icon('trash', name, url, class: "spree_remove_fields #{options[:class]}", data: { action: 'remove' }, title: Spree.t(:remove)) + f.hidden_field(:_destroy)
link_to_with_icon('trash', name, url, class: "spree_remove_fields #{options[:class]}", data: { action: 'remove' }, title: Spree.t('actions.remove')) + f.hidden_field(:_destroy)
end

def spree_dom_id(record)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<% end %>
<td colspan="<%= f.object.persisted? ? '' : '2' %>" class="name"><%= f.text_field :name %></td>
<td class="presentation"><%= f.text_field :presentation %></td>
<td class="actions"><%= link_to_remove_fields Spree.t(:remove), f, :no_text => true %></td>
<td class="actions"><%= link_to_remove_fields Spree.t('actions.remove'), f, :no_text => true %></td>
</tr>
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/taxons/_taxon_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<td><%= taxon.name %></td>
<td><%= taxon_path taxon %></td>
<td class="actions">
<%= link_to_delete taxon, :url => remove_admin_product_taxon_url(@product, taxon), :name => icon('delete') + ' ' + Spree.t(:remove) %>
<%= link_to_delete taxon, :url => remove_admin_product_taxon_url(@product, taxon), :name => icon('delete') + ' ' + Spree.t('actions.remove') %>
</td>
</tr>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ en:
new: New
refund: Refund
receive: Receive
remove: Remove
save: Save
update: Update
activate: Activate
Expand Down

0 comments on commit c8c0335

Please sign in to comment.