You are here

function invoice_installed_locales in Invoice 6

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

List of installed locales

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

File

./invoice.module, line 791
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;
}