Constructs a translated array of week day abbreviations.
bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE.
array An array of week day abbreviations
public static function weekDaysAbbr($required = FALSE) {
$weekdays = array(
t('Sun', array(), array(
'context' => 'Sunday abbreviation',
)),
t('Mon', array(), array(
'context' => 'Monday abbreviation',
)),
t('Tue', array(), array(
'context' => 'Tuesday abbreviation',
)),
t('Wed', array(), array(
'context' => 'Wednesday abbreviation',
)),
t('Thu', array(), array(
'context' => 'Thursday abbreviation',
)),
t('Fri', array(), array(
'context' => 'Friday abbreviation',
)),
t('Sat', array(), array(
'context' => 'Saturday abbreviation',
)),
);
$none = array(
'' => '',
);
return !$required ? $none + $weekdays : $weekdays;
}