You are here

function invoice_installed_locales in Invoice 7

Same name and namespace in other branches
  1. 6 invoice.module \invoice_installed_locales()

List of installed locales

1 string reference to 'invoice_installed_locales'
invoice_menu in ./invoice.module
Implements hook_menu()

File

./invoice.module, line 1033
Invoice module

Code

function invoice_installed_locales() {
  $locales = _invoice_get_installed_system_locales();
  if (count($locales) > 0 && !empty($locales[0])) {
    $content = '<ul>';
    foreach ($locales as $locale) {
      $content .= '<li>' . $locale . '</li>';
    }
    $content .= '</ul>';
  }
  else {
    $content = 'No locales found. But maybe the "locale -a" command is not supported on your server.';
  }
  return $content;
}