1 date.inc date_month_names_untranslated()

Constructs an untranslated array of month names.

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

Return value

array: An array of month names.

File

core/includes/date.inc, line 80
Date API functions.

Code

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