From 46a115de61683f4035cb36e4cab40d311a621810 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 21 Oct 2015 17:28:29 +0000 Subject: [PATCH] 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 --- wp-includes/locale.php | 11 +++++++++++ wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wp-includes/locale.php b/wp-includes/locale.php index 9ff1159103..64435f7127 100644 --- a/wp-includes/locale.php +++ b/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'); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2869bf2d9e..952bfb197b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.