*

piter

  • ****
  • 104 posts
Invoice title does not translate
« 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')); ?>

*

MB Themes

Re: Invoice title does not translate
« Reply #1 on: March 08, 2019, 02:20:51 AM »
Invoice is just default string, once you save it it is stored.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

piter

  • ****
  • 104 posts
Re: Invoice title does not translate
« Reply #2 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?
 
« Last Edit: March 08, 2019, 03:14:10 PM by piter »

*

MB Themes

Re: Invoice title does not translate
« Reply #3 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

piter

  • ****
  • 104 posts
Re: Invoice title does not translate
« Reply #4 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 :-)

*

MB Themes

Re: Invoice title does not translate
« Reply #5 on: March 08, 2019, 03:24:43 PM »
@piter
Into invoice.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

piter

  • ****
  • 104 posts
Re: Invoice title does not translate
« Reply #6 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


*

MB Themes

Re: Invoice title does not translate
« Reply #7 on: March 09, 2019, 10:35:06 AM »
 8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots