Jump to content

Translation problem: Free Order, etc in PDF invoice.tpl


Recommended Posts

Hello hello!

 

I can't find how (or where) to translate what is coming out of "$payment->payment_method" in the outputed PDF invoice. It's from this code:

 

 

            {foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
                <tr>
                    <td style="width: 50%">{$payment->payment_method}</td>
                    <td style="width: 50%">{displayPrice price=$payment->amount currency=$order->id_currency}</td>
                </tr>
            {foreachelse}

 


 

The present case I have to translate is "Free Order", but I guess there will other ones too...

 

Someone knows where can I translate those "payment_method" ?

 

Thank you :)

Link to comment
Share on other sites

If you are stuck like me, here is a temporaty solution:

 

I changed the part:

{$payment->payment_method}

to

{if $payment->payment_method == 'Free order'}{l s='Free order' pdf='true'}{/if}

And then translated it in the BO > Translation

 

At least this one is translated now.. But I guess I'll have to add the other possibilities as I see them appering until someone show up with a real solution :)

Link to comment
Share on other sites

Ok I realise now that at least one other thing is not translated on those PDF files... the discount lines

 

I can't make {if} statement for all of them... it just make non sense...  Anyone knows how to get the discount translated name retreived as well? The product names are translated so I guess it's not too hard to translate discount as well..

 

I just need one exemple...

 

please :)

Link to comment
Share on other sites

Ho, that is good to know! Thank you!   I understand it's not the case for the payment-method as you didn't specified it?

 

 

About the carriers, it's a pity that they are simply not translatable at all yet :/

Link to comment
Share on other sites

×
×
  • Create New...