mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
use abbreviated weekday names
if the language file contains abbreviated weekday names use them, otherwise take the first 3 chars from the weekday name
This commit is contained in:
parent
7fd5b5c30d
commit
62587c59a4
|
@ -52,11 +52,17 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
|
||||||
getMLText("thursday"),
|
getMLText("thursday"),
|
||||||
getMLText("friday"),
|
getMLText("friday"),
|
||||||
getMLText("saturday") );
|
getMLText("saturday") );
|
||||||
|
/* Set abbreviated weekday names. If no translation is availabe, use
|
||||||
$this->dayNames = array();
|
* the first three chars from the long name
|
||||||
foreach ( $this->dayNamesLong as $dn ){
|
*/
|
||||||
$this->dayNames[] = substr($dn,0,3);
|
$this->dayNames = array( getMLText("sunday_abbr", array(), substr($this->dayNamesLong[0], 0, 3)),
|
||||||
}
|
getMLText("monday_abbr", array(), substr($this->dayNamesLong[1], 0, 3)),
|
||||||
|
getMLText("tuesday_abbr", array(), substr($this->dayNamesLong[2], 0, 3)),
|
||||||
|
getMLText("wednesday_abbr", array(), substr($this->dayNamesLong[3], 0, 3)),
|
||||||
|
getMLText("thursday_abbr", array(), substr($this->dayNamesLong[4], 0, 3)),
|
||||||
|
getMLText("friday_abbr", array(), substr($this->dayNamesLong[5], 0, 3)),
|
||||||
|
getMLText("saturday_abbr", array(), substr($this->dayNamesLong[6], 0, 3)) );
|
||||||
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
// Calculate the number of days in a month, taking into account leap years.
|
// Calculate the number of days in a month, taking into account leap years.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user