You are here

function date_month_names_untranslated in Date 6

Same name and namespace in other branches
  1. 5.2 date_api.module \date_month_names_untranslated()
  2. 6.2 date_api.module \date_month_names_untranslated()
  3. 7.3 date_api/date_api.module \date_month_names_untranslated()
  4. 7 date_api/date_api.module \date_month_names_untranslated()
  5. 7.2 date_api/date_api.module \date_month_names_untranslated()

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

an array of month names

3 calls to date_month_names_untranslated()
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 70
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_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;
}