function _invoice_get_installed_system_locales in Invoice 7
Same name and namespace in other branches
- 6 invoice_helpers.inc \_invoice_get_installed_system_locales()
Returns installed locales on the system
Return value
array
1 call to _invoice_get_installed_system_locales()
- invoice_installed_locales in ./
invoice.module - List of installed locales
File
- ./
invoice_helpers.inc, line 663 - Invoice module
Code
function _invoice_get_installed_system_locales() {
ob_start();
system('locale -a');
$str = ob_get_contents();
ob_end_clean();
$list = explode("\n", trim($str));
return $list;
}