InvoicePlane / InvoicePlane

A self-hosted open source application for managing your invoices, clients and payments.
https://www.invoiceplane.com
Other
2.55k stars 799 forks source link

Feature Request: make custom fields go through trans() #943

Closed marneu closed 1 year ago

marneu commented 1 year ago

To make invoices on a broader basis with several languages it would be of help if custom fields could pass a language translation. F.e.: _$customfields['client']['Konditionen'] would be ok on a german invoice , on an english customer it would be better printed as 'Conditions' etc. The translation itself would be ok within _app../language/$LANG/customlang.php

nielsdrost7 commented 1 year ago

The translation function within InvoicePlane is _trans(), so keep that in mind. If you're making a custom field, let's say Secondary Address and of course add it to the database, now you want to translate it: _trans('Secondary Address'), it will be looking inapplication/language/english/*.php` for that translation. If you want to make a Pull-request we're open to that