How do I edit invoice wording/date format?

I’m setting up Dolibarr for the first time and have generated my first invoice. There are a couple of things I need to change -

“Amount in New Zealand Dollar currency”

I’m afraid this is bad english and would make me look a bit stupid if I sent it out on an invoice.

(Technically it’s what’s called a tautology - if it’s a dollar it’s currency. Correct would be “Amount in New Zealand Dollars.”

and

“U.P. (net)”

Er, U.P.? I’ve never seen that abbreviation used before. What does it mean?

Anyhow, is there an easy way to modify these bits of text? I guess I don’t mind contributing some translation help back to the project (there are plenty of other little errors across the app) but I’d quite like to get my invoices out before getting involved in a project.

Time to answer myself…

/usr/share/dolibarr/htdocs/langs/en_NZ

*.lang files override the en_US files. Can’t work out what the number system is though. Not straight PHP.

Still not sure of the date format scheme being used here, but

%b is short month name
%B is full month name

But for some odd reason they are both rendered in lower case.

Yay, got it!

For normal case you need to add the following to your main.lang file

Month01=January
Month02=February
Month03=March
Month04=April
Month05=May
Month06=June
Month07=July
Month08=August
Month09=September
Month10=October
Month11=November
Month12=December
MonthShort01=Jan
MonthShort02=Feb
MonthShort03=Mar
MonthShort04=Apr
MonthShort05=May
MonthShort06=Jun
MonthShort07=Jul
MonthShort08=Aug
MonthShort09=Sep
MonthShort10=Oct
MonthShort11=Nov
MonthShort12=Dec

Not sure why it uses an internal table rather than the plain old PHP formatting. Maybe it’s so you can have “Movember” and “Rocktober”.