Translate "COPY OF" when cloning an OC

This commit is contained in:
Kristina Lim
2018-09-08 02:06:52 +08:00
parent 3e0c74494d
commit 2c2dd62f6a
2 changed files with 6 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ class OrderCycle < ActiveRecord::Base
def clone!
oc = self.dup
oc.name = "COPY OF #{oc.name}"
oc.name = I18n.t("models.order_cycle.cloned_order_cycle_name", order_cycle: oc.name)
oc.orders_open_at = oc.orders_close_at = nil
oc.coordinator_fee_ids = self.coordinator_fee_ids
oc.preferred_product_selection_from_coordinator_inventory_only = self.preferred_product_selection_from_coordinator_inventory_only

View File

@@ -88,6 +88,11 @@ en:
user_passwords:
spree_user:
updated_not_active: "Your password has been reset, but your email has not been confirmed yet."
models:
order_cycle:
cloned_order_cycle_name: "COPY OF %{order_cycle}"
enterprise_mailer:
confirmation_instructions:
subject: "Please confirm the email address for %{enterprise}"