Skip to content

Commit

Permalink
Merge pull request #2283 from rbngzlv/fix-reception-state-translations
Browse files Browse the repository at this point in the history
Translate reception states and fix translation key
  • Loading branch information
kennyadsl authored Apr 10, 2018
2 parents 812915f + 5e8664f commit f3dd1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/app/models/spree/return_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def potential_reception_transitions
event_paths.delete(:expired)
event_paths.delete(:unexchange)

status_paths.map{ |s| s.to_s.humanize }.zip(event_paths)
status_paths.map{ |s| I18n.t("spree.reception_states.#{s}", default: s.to_s.humanize) }.zip(event_paths)
end

def part_of_exchange?
Expand Down
2 changes: 1 addition & 1 deletion core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ en:
receiving_match: Receiving match
reception_states:
awaiting: Awaiting
canceled: Canceled
cancelled: Canceled
expired: Expired
given_to_customer: Given to customer
in_transit: In transit
Expand Down

0 comments on commit f3dd1a3

Please sign in to comment.