WP Locale: Add a `start_of_week` property to store the start of the week per locale.
Props swissspidy. See #28344. Built from https://develop.svn.wordpress.org/trunk@35336 git-svn-id: http://core.svn.wordpress.org/trunk@35302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a7bb070da
commit
46a115de61
|
@ -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');
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35335';
|
||||
$wp_version = '4.4-alpha-35336';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue