Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
I checked dug around and found that addresses are formatted in the function "dol_format_address" in /httdocs/core/lib/functions.lib.php where the different formats are hard coded.
I recently had to send a package to Brazil, and well, Dolibarr does not generate Brazilian addresses correctly. It was missing the state abbreviation. See https://en.wikipedia.org/wiki/Address#Brazil and the CPF ( https://en.wikipedia.org/wiki/CPF_number ) for the destination company.
I checked dug around and found that addresses are formatted in the function "dol_format_address" in /httdocs/core/lib/functions.lib.php where the different formats are hard coded.