From 597e3630f324484f3162295a71eb2be22becb008 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 21 Oct 2015 17:27:47 +0000 Subject: [PATCH] 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 --- src/wp-includes/locale.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/wp-includes/locale.php b/src/wp-includes/locale.php index 9ff1159103..64435f7127 100644 --- a/src/wp-includes/locale.php +++ b/src/wp-includes/locale.php @@ -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');