WP Locale: Add a `start_of_week` property to store the start of the week per locale.

Props swissspidy.
See #28344.

git-svn-id: https://develop.svn.wordpress.org/trunk@35336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-10-21 17:27:47 +00:00
parent 739fc4a8c7
commit 597e3630f3
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,14 @@ class WP_Locale {
*/
public $weekday_abbrev;
/**
* Stores the default start of the week.
*
* @since 4.4.0
* @var string
*/
public $start_of_week;
/**
* Stores the translated strings for the full month names.
*
@ -118,6 +126,9 @@ class WP_Locale {
$this->weekday_initial[ __( 'Friday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'F', 'Friday initial' );
$this->weekday_initial[ __( 'Saturday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Saturday initial' );
// Start of the week.
$this->start_of_week = /* translators: default start of the week. 0 = Sunday, 1 = Monday */ _x( '1', 'start of week' );
// Abbreviations for each day.
$this->weekday_abbrev[__('Sunday')] = /* translators: three-letter abbreviation of the weekday */ __('Sun');
$this->weekday_abbrev[__('Monday')] = /* translators: three-letter abbreviation of the weekday */ __('Mon');