From c1aa154dd39a7014094473489227bab421762492 Mon Sep 17 00:00:00 2001 From: Keitaroh Kobayashi Date: Thu, 29 Aug 2013 10:29:31 +0900 Subject: [PATCH] Uses Spree.t to enable translation for the buttons --- app/overrides/add_export_orders_link.rb | 2 +- app/overrides/add_export_users_link.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/overrides/add_export_orders_link.rb b/app/overrides/add_export_orders_link.rb index 13f3675..97d2c3f 100644 --- a/app/overrides/add_export_orders_link.rb +++ b/app/overrides/add_export_orders_link.rb @@ -4,7 +4,7 @@ :insert_before => "#listing_orders", :text => " <% if params[:q][:created_at_gt].present? && params[:q][:created_at_lt].present? %> - <%= link_to 'Export Paid & Ready to Ship as CSV', spree.export_csv_path(params[:q]), class: 'button', id: 'export_csv' %> + <%= link_to Spree.t('export.export_paid_ready_to_ship_as_csv', :default => 'Export Paid & Ready to Ship as CSV'), spree.export_csv_path(params[:q]), class: 'button', id: 'export_csv' %> <% end %> ") diff --git a/app/overrides/add_export_users_link.rb b/app/overrides/add_export_users_link.rb index 01e801a..f87cc00 100644 --- a/app/overrides/add_export_users_link.rb +++ b/app/overrides/add_export_users_link.rb @@ -3,7 +3,7 @@ :name => 'add_export_users_csv_link', :insert_top => "#listing_users", :text => " - <%= link_to 'Export Users', spree.export_users_csv_path, class: 'button', id: 'export_csv' %> + <%= link_to Spree.t('export.export_users', :default =>'Export Users'), spree.export_users_csv_path, class: 'button', id: 'export_csv' %> ")