Make WordPress Core


Ignore:
Timestamp:
10/21/2015 05:27:47 PM (9 years ago)
Author:
ocean90
Message:

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

Props swissspidy.
See #28344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r34489 r35336  
    4141     */
    4242    public $weekday_abbrev;
     43
     44    /**
     45     * Stores the default start of the week.
     46     *
     47     * @since 4.4.0
     48     * @var string
     49     */
     50    public $start_of_week;
    4351
    4452    /**
     
    118126        $this->weekday_initial[ __( 'Friday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'F', 'Friday initial' );
    119127        $this->weekday_initial[ __( 'Saturday' ) ]  = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Saturday initial' );
     128
     129        // Start of the week.
     130        $this->start_of_week = /* translators: default start of the week. 0 = Sunday, 1 = Monday */ _x( '1', 'start of week' );
    120131
    121132        // Abbreviations for each day.
Note: See TracChangeset for help on using the changeset viewer.