Commits

twidi  committed 1622c42

add trans/blocktrans for untranslated strings in paypal and sermepa payment modules, and translate them to french

  • Participants
  • Parent commits 5c49a60

Comments (0)

Files changed (4)

File satchmo/apps/payment/locale/fr/LC_MESSAGES/django.mo

Binary file modified.

File satchmo/apps/payment/locale/fr/LC_MESSAGES/django.po

 msgid "Please Select"
 msgstr "Merci de choisir"
 
+msgid "Remaining Balance for order #%(order_id)s"
+msgstr "Solde restant pour la commande N°%(order_id)s"
+
+msgid "Shipping for free items"
+msgstr "Frais de livraison pour produits gratuits"
+
 #~ msgid ""
 #~ "Select the payment modules you want to use with your shop.  \n"
 #~ "    If you are adding a new one, you should save and come back to this "

File satchmo/apps/payment/templates/shop/checkout/paypal/confirm.html

 <input type="hidden" name="no_shipping" value="1" />
 <input type="hidden" name="invoice" value="{{ invoice }}" />
 {% if order.partially_paid %}
-<input type="hidden" name="item_name_1" value="Remaining Balance for order {{ order.id }}" />
+<input type="hidden" name="item_name_1" value="{% blocktrans with order.id as order_id %}Remaining Balance for order {{ order_id }}{% blocktrans %}" />
 <input type="hidden" name="amount_1" value="{{order.balance|truncate_decimal:2}}" />
 <input type="hidden" name="quantity_1" value="1" />
 {% else %}
     {# BUT, if this is the only thing in the cart, then we still need to put *something* #}
     {# in the cart, so lets do handling as a line item #}
     {% if order.discounted_sub_total <= 0 %}
-      <input type="hidden" name="item_name_{{forloop.counter}}" value="Shipping for free items" />
+      <input type="hidden" name="item_name_{{forloop.counter}}" value="{% trans "Shipping for free items" %}" />
       <input type="hidden" name="amount_{{forloop.counter}}" value="{{order.shipping_with_tax|truncate_decimal:2}}" />
     {% endif %}
   {% endif %}

File satchmo/apps/payment/templates/shop/checkout/sermepa/confirm.html

 <input type="hidden" name="Ds_Merchant_ConsumerLanguage" value="2" />	{# English #}
 
 {% if order.partially_paid %}
-	<input type="hidden" name="Ds_Merchant_ProductDescription" value="Remaining Balance for order {{order.id}}" />
+	<input type="hidden" name="Ds_Merchant_ProductDescription" value="{% blocktrans with order.id as order_id %}Remaining Balance for order #{{ order_id }}{% blocktrans %}" />
 {% else %}
-	<input type="hidden" name="Ds_Merchant_ProductDescription" value="Order {{order.id}}" />
+	<input type="hidden" name="Ds_Merchant_ProductDescription" value="{% blocktrans with order.id as order_id %}Order #{{ order_id }}{% blocktrans %}" />
 {% endif %}
 
 <input type="hidden" name="Ds_Merchant_Amount" value="{{amount}}" />