You are here

function date_week_days_translated in Date 5.2

A translated array of week days

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

Return value

an array of week day names

2 calls to date_week_days_translated()
date_t in ./date_api.module
A version of the t() function for date parts that need translation.
date_week_days in ./date_api.module
A translated array of week days

File

./date_api.module, line 176
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_week_days_translated($refresh = TRUE) {
  static $weekdays;
  if ($refresh || empty($weekdays)) {
    $weekdays = array(
      0 => t('Sunday'),
      1 => t('Monday'),
      2 => t('Tuesday'),
      3 => t('Wednesday'),
      4 => t('Thursday'),
      5 => t('Friday'),
      6 => t('Saturday'),
    );
  }
  return $weekdays;
}