I'm trying to localize the actual invoices not the interface, which I've already switched to French in the hope that it would change LOCALE as well.
In other words, I'd like to add setlocale(LC_MONETARY, 'fr_FR') and specify formatting to use the comma instead of the dot in money and spaces instead of commas in large numbers (e.g. 1 000 000 instead of 1,000,000). This is because nearly all my customers are in France. (BTW adding a way to switch LOCALE in the interface would be nice for those of us who invoice people from several different countries.)
Which .php file would I actually edit?
Or is there another mechanism defined somewhere in the code to take care of this?
TIA
Doug McCarthy
Doug McCarthy, 2008/06/08 06:52
Sorry, got the email address wrong on my original post. So here it is again.
Hi,
I'm trying to localize the actual invoices not the interface, which I've already switched to French in the vain hope that it would change LOCALE as well.
In other words, I'd like to add setlocale(LC_MONETARY, 'fr_FR') and specify formatting to use the comma instead of the dot in money and spaces instead of commas in large numbers (e.g. 1 000 000 instead of 1,000,000). This is because nearly all my customers are in France. (BTW adding a way to switch LOCALE in the interface would be nice for those of us who invoice people from several different countries.)
Which .php file would I actually edit?
Or is there another mechanism defined somewhere in the code to take care of this?
TIA Doug McCarthy
Doug McCarthy, 2008/06/08 07:38
Hi again,
I'd ('also' if this appears as a reply to my previous question) like to add an invoice number field and define a counter to increment the number for every new invoice.
Any ideas?
TIA
Doug McCarthy
Doug McCarthy, 2008/06/08 07:47
Hi again,
I'd ('also' if this appears as a reply to my previous question) like to add an invoice number field and define a counter to increment the number for every new invoice.
re invoice number
- you can't use the normal Simple Invoices invoice number?
- there has been some work on this - there is a alternate Custom Fields section in work in progress where you can define any type of field you want - and one type is a special invoice number - not tied to mysql auto increment id thing
– but this is not ready for normal use just yet
Cheers
Justin
wiki/faqs.txt · Last modified: 2008/10/26 19:27 by justin
Discussion
Hi,
I'm trying to localize the actual invoices not the interface, which I've already switched to French in the hope that it would change LOCALE as well.
In other words, I'd like to add setlocale(LC_MONETARY, 'fr_FR') and specify formatting to use the comma instead of the dot in money and spaces instead of commas in large numbers (e.g. 1 000 000 instead of 1,000,000). This is because nearly all my customers are in France. (BTW adding a way to switch LOCALE in the interface would be nice for those of us who invoice people from several different countries.)
Which .php file would I actually edit?
Or is there another mechanism defined somewhere in the code to take care of this?
TIA Doug McCarthy
Sorry, got the email address wrong on my original post. So here it is again.
Hi,
I'm trying to localize the actual invoices not the interface, which I've already switched to French in the vain hope that it would change LOCALE as well.
In other words, I'd like to add setlocale(LC_MONETARY, 'fr_FR') and specify formatting to use the comma instead of the dot in money and spaces instead of commas in large numbers (e.g. 1 000 000 instead of 1,000,000). This is because nearly all my customers are in France. (BTW adding a way to switch LOCALE in the interface would be nice for those of us who invoice people from several different countries.)
Which .php file would I actually edit?
Or is there another mechanism defined somewhere in the code to take care of this?
TIA Doug McCarthy
Hi again,
I'd ('also' if this appears as a reply to my previous question) like to add an invoice number field and define a counter to increment the number for every new invoice.
Any ideas?
TIA Doug McCarthy
Hi again,
I'd ('also' if this appears as a reply to my previous question) like to add an invoice number field and define a counter to increment the number for every new invoice.
Any ideas?
TIA Doug McCarthy
Hey Doug,
re LOCALE in invoices - currently the only way to get that is to use the Euro template – refer http://www.simpleinvoices.org/wiki/extensions#invoice_templates_styles - Simple Invoices doesnt haev a proper locale system yet
re invoice number - you can't use the normal Simple Invoices invoice number? - there has been some work on this - there is a alternate Custom Fields section in work in progress where you can define any type of field you want - and one type is a special invoice number - not tied to mysql auto increment id thing – but this is not ready for normal use just yet
Cheers
Justin