Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation of Weight_per_kg calculator name #778

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/open_food_network/calculator/weight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Calculator::Weight < Spree::Calculator
attr_accessible :preferred_per_kg

def self.description
"Weight (per kg)"
I18n.t('calculator_weight_per_kg')
end

def compute(object)
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -676,3 +676,4 @@ Please follow the instructions there to make your enterprise visible on the Open
remove_tax: "Remove tax"
og_description: "We begin from the ground up. With farmers and growers ready to tell their stories proudly and truly. With distributors ready to connect people with products fairly and honestly. With buyers who believe that better weekly shopping decisions can…"

calculator_weight_per_kg: "Weight (per kg)"
8 changes: 5 additions & 3 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ fr:
registration_detail_address1_placeholder: "ex: 123 rue des étangs"
registration_detail_address1_error: "Veuillez saisir une adresse"
registration_detail_address2: "Adresse ligne 2"
registration_detail_suburb: "Département:"
registration_detail_suburb_placeholder: "ex: Vendée"
registration_detail_suburb_error: "Veuillez saisir un Département"
registration_detail_suburb: "Ville:"
registration_detail_suburb_placeholder: "ex: Etretat"
registration_detail_suburb_error: "Veuillez saisir une Ville"
registration_detail_postcode: "Code postal:"
registration_detail_postcode_placeholder: "ex: 44000"
registration_detail_postcode_error: "Veuillez saisir le code postal"
Expand All @@ -577,3 +577,5 @@ fr:
price_graph: "Légende détail du prix"
included_tax: "Inclut TVA"
remove_tax: "Afficher prix HT"

calculator_weight_per_kg: "Poids (par kg)"