You are here

function date_month_names_translated in Date 5.2

A translated array of month names

Needed for css, translation functions, strtotime(), and other places that use the English versions of these words.

Return value

an array of month names

3 calls to date_month_names_translated()
date_month_names in ./date_api.module
A translated array of month names
date_month_names_abbr in ./date_api.module
A translated array of month name abbreviations
date_t in ./date_api.module
A version of the t() function for date parts that need translation.

File

./date_api.module, line 97
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_month_names_translated() {
  static $month_names;
  if (empty($month_names)) {
    $month_names = array(
      1 => t('January'),
      2 => t('February'),
      3 => t('March'),
      4 => t('April'),
      5 => t('May'),
      6 => t('June'),
      7 => t('July'),
      8 => t('August'),
      9 => t('September'),
      10 => t('October'),
      11 => t('November'),
      12 => t('December'),
    );
  }
  return $month_names;
}