Osclass Support Forums

Osclass plugin support => Invoice Osclass Plugin => Topic started by: piter on March 07, 2019, 08:22:54 PM

Title: Invoice title does not translate
Post by: piter on March 07, 2019, 08:22:54 PM
Invoice title translation in .po file does not have effect on generated pdf (always says Invoice).
Something not right here:
./plugins/invoice/form/invoice.php on line 79

Code: [Select]
<?php echo ($inv['s_title'] <> '' $inv['s_title'] : __('Invoice''invoice')); ?>
Title: Re: Invoice title does not translate
Post by: MB Themes on March 08, 2019, 02:20:51 AM
Invoice is just default string, once you save it it is stored.
Title: Re: Invoice title does not translate
Post by: piter on March 08, 2019, 03:01:31 PM
I am sorry but I am confused.
'INVOICE' lang phrase printed in top right corner of the invoice is in messages.po and there is a hook to the code I quoted.
But translation doesnt work because code form line 79 does not read properly this phrase translation from .po file.

I am not sure what you mean saying once you save it it is stored?
 
Title: Re: Invoice title does not translate
Post by: MB Themes on March 08, 2019, 03:13:34 PM
@piter
Once you save it, it saves what you put there no matter what language will be used.
Title: Re: Invoice title does not translate
Post by: piter on March 08, 2019, 03:17:22 PM
@MBT, please check my previous message because I just edited it when you posted your reply.
Still, not sure what you meant Once you save it, it saves what you put there. Yes 'there' - you mean where?? It is in .po file :-)
Title: Re: Invoice title does not translate
Post by: MB Themes on March 08, 2019, 03:24:43 PM
@piter
Into invoice.
Title: Re: Invoice title does not translate
Post by: piter on March 08, 2019, 11:55:06 PM
Oh I found it now but purely by random,
Please add some frame around this textarea as with other editable elements.
Otherwise it's not so obvious that this phrase can be edited ... :-)
Thanks

Title: Re: Invoice title does not translate
Post by: MB Themes on March 09, 2019, 10:35:06 AM
 8)