From b12f17d552458d089307d12dc56d86a81adaed47 Mon Sep 17 00:00:00 2001 From: Caroline Girard Date: Thu, 30 Aug 2018 16:32:49 +0200 Subject: [PATCH] traduction suite --- app/views/public/orders/_billing.html.haml | 5 ++-- app/views/public/orders/_new.html.haml | 24 +++++++++++--------- app/views/public/orders/bill_print.html.haml | 20 ++++++++-------- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/app/views/public/orders/_billing.html.haml b/app/views/public/orders/_billing.html.haml index 2a69c81..69a5bb6 100644 --- a/app/views/public/orders/_billing.html.haml +++ b/app/views/public/orders/_billing.html.haml @@ -1,12 +1,13 @@ = semantic_form_for [:public, @annonce_account], :remote => true do |f| - %h3 Modifier mon adresse de facturation + %h3 + =qit("orders-billing-h3", "Modifier mon adresse de facturation") =hidden_field_tag :order, true =hidden_field_tag :credit_product_id, params[:credit_product_id] =f.inputs do =render :partial => "public/my_account/address", :locals => {:f => f} - =f.submit "Sauvegarder", :class => "btn btn-primary" + =f.submit qit("orders-billing-sauvegarder", "Sauvegarder"), :class => "btn btn-primary" %br %br =render :partial => "public/my_account/note_pays" diff --git a/app/views/public/orders/_new.html.haml b/app/views/public/orders/_new.html.haml index 8c37a0e..a0f7342 100644 --- a/app/views/public/orders/_new.html.haml +++ b/app/views/public/orders/_new.html.haml @@ -1,7 +1,8 @@ -if @order .clear - %h2 Vos coordonnées + %h2 + =qit("orders-new-h2-coordonnées", "Vos coordonnées") -if !current_annonce_account.pro =current_annonce_account.firstname =current_annonce_account.name @@ -19,16 +20,16 @@ %br =current_annonce_account.country - =link_to "modifier mes infos de facturation", billing_public_orders_path(:credit_product_id => params[:credit_product_id]), :remote => true + =link_to qit("orders-new-facturation", "modifier mes infos de facturation"), billing_public_orders_path(:credit_product_id => params[:credit_product_id]), :remote => true - %h3 Récapitulatif - + %h3 + =qit("orders-new-h3-récap", "Récapitulatif") %p - Commande de + =qit("orders-new-p1", "Commande de") = @order.credit_product.nbr_credits_final(current_annonce_account) crédits - pour un montant de + =qit("orders-new-p2", "pour un montant de") %strong =number_to_currency @order.credit_product.price_ttc_final(current_annonce_account), :unit => @order.devise.icon TTC @@ -44,14 +45,14 @@ -if @order.with_com %p - Utilisation de mes commissions : + =qit("orders-new-p3", "Utilisation de mes commissions :") %strong=number_to_currency @order.evaluate_use_coms, :unit => @order.devise.icon ( - votre solde de commission passera à + =qit("orders-new-p4", "votre solde de commission passera à") =number_to_currency @order.evaluate_solde_coms, :unit => @order.devise.icon ) %p - Il vous restera à payer : + =qit("orders-new-p5", "Il vous restera à payer :") %strong =number_to_currency @order.evaluate_price_with_coms_ttc, :unit => @order.devise.icon TTC @@ -65,7 +66,7 @@ %p - Il vous restera à payer : + =qit("orders-new-p6", "Il vous restera à payer :") %strong =number_to_currency @order.evaluate_price_with_coms_ttc, :unit => @order.devise.icon TTC @@ -78,7 +79,8 @@ - %h3 Valider ma commande + %h3 + =qit("orders-new-h3-commande", "Valider ma commande") =semantic_form_for [:public, @order], :remote => true do |f| =hidden_field_tag :credit_product_id, params[:credit_product_id] =hidden_field_tag :with_com, params[:with_com] diff --git a/app/views/public/orders/bill_print.html.haml b/app/views/public/orders/bill_print.html.haml index f700c1e..e3d40b7 100644 --- a/app/views/public/orders/bill_print.html.haml +++ b/app/views/public/orders/bill_print.html.haml @@ -114,9 +114,9 @@ %tr.line %td %strong - Achat d'un coffret de + =qit("orders-bill-achat", "Achat d'un coffret de") =@order.nbr_credits - crédits sur Sideplace.com + =qit("orders-bill-crédit", "crédits sur Sideplace.com") %td.right @@ -160,7 +160,7 @@ %td - Total TTC + =qit("orders-bill-total-ttc", "Total TTC") %td{:style => "text-align:right;"} %strong =number_to_currency @order.amount_ttc @@ -169,17 +169,17 @@ #footer{:style => "margin:1cm 1cm;margin-top:5cm"} %p - Date et heure de paiement (Carte bancaire) : + =qit("orders-bill-p1", "Date et heure de paiement (Carte bancaire) :") =l @order.paid_at %br %br - - %p - Conditions de règlement : paiement comptant. - Pas d'escompte pour paiement anticipé. - %p - Pénalités de retard : 3 fois le taux d’intérêt légal, majorées d’une indemnité forfaitaire de 40 € pour fais de recouvrement + =qit "orders-bill-p2" do + %p + Conditions de règlement : paiement comptant. + Pas d'escompte pour paiement anticipé. + %p + Pénalités de retard : 3 fois le taux d’intérêt légal, majorées d’une indemnité forfaitaire de 40 € pour fais de recouvrement