WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

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

    r45688 r45932  
    120120    public function init() {
    121121        // The Weekdays
    122         $this->weekday[0] = /* translators: weekday */ __( 'Sunday' );
    123         $this->weekday[1] = /* translators: weekday */ __( 'Monday' );
    124         $this->weekday[2] = /* translators: weekday */ __( 'Tuesday' );
    125         $this->weekday[3] = /* translators: weekday */ __( 'Wednesday' );
    126         $this->weekday[4] = /* translators: weekday */ __( 'Thursday' );
    127         $this->weekday[5] = /* translators: weekday */ __( 'Friday' );
    128         $this->weekday[6] = /* translators: weekday */ __( 'Saturday' );
     122        $this->weekday[0] = /* translators: Weekday. */ __( 'Sunday' );
     123        $this->weekday[1] = /* translators: Weekday. */ __( 'Monday' );
     124        $this->weekday[2] = /* translators: Weekday. */ __( 'Tuesday' );
     125        $this->weekday[3] = /* translators: Weekday. */ __( 'Wednesday' );
     126        $this->weekday[4] = /* translators: Weekday. */ __( 'Thursday' );
     127        $this->weekday[5] = /* translators: Weekday. */ __( 'Friday' );
     128        $this->weekday[6] = /* translators: Weekday. */ __( 'Saturday' );
    129129
    130130        // The first letter of each day.
    131         $this->weekday_initial[ __( 'Sunday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Sunday initial' );
    132         $this->weekday_initial[ __( 'Monday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'M', 'Monday initial' );
    133         $this->weekday_initial[ __( 'Tuesday' ) ]   = /* translators: one-letter abbreviation of the weekday */ _x( 'T', 'Tuesday initial' );
    134         $this->weekday_initial[ __( 'Wednesday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'W', 'Wednesday initial' );
    135         $this->weekday_initial[ __( 'Thursday' ) ]  = /* translators: one-letter abbreviation of the weekday */ _x( 'T', 'Thursday initial' );
    136         $this->weekday_initial[ __( 'Friday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'F', 'Friday initial' );
    137         $this->weekday_initial[ __( 'Saturday' ) ]  = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Saturday initial' );
     131        $this->weekday_initial[ __( 'Sunday' ) ]    = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Sunday initial' );
     132        $this->weekday_initial[ __( 'Monday' ) ]    = /* translators: One-letter abbreviation of the weekday. */ _x( 'M', 'Monday initial' );
     133        $this->weekday_initial[ __( 'Tuesday' ) ]   = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Tuesday initial' );
     134        $this->weekday_initial[ __( 'Wednesday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'W', 'Wednesday initial' );
     135        $this->weekday_initial[ __( 'Thursday' ) ]  = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Thursday initial' );
     136        $this->weekday_initial[ __( 'Friday' ) ]    = /* translators: One-letter abbreviation of the weekday. */ _x( 'F', 'Friday initial' );
     137        $this->weekday_initial[ __( 'Saturday' ) ]  = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Saturday initial' );
    138138
    139139        // Abbreviations for each day.
    140         $this->weekday_abbrev[ __( 'Sunday' ) ]    = /* translators: three-letter abbreviation of the weekday */ __( 'Sun' );
    141         $this->weekday_abbrev[ __( 'Monday' ) ]    = /* translators: three-letter abbreviation of the weekday */ __( 'Mon' );
    142         $this->weekday_abbrev[ __( 'Tuesday' ) ]   = /* translators: three-letter abbreviation of the weekday */ __( 'Tue' );
    143         $this->weekday_abbrev[ __( 'Wednesday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Wed' );
    144         $this->weekday_abbrev[ __( 'Thursday' ) ]  = /* translators: three-letter abbreviation of the weekday */ __( 'Thu' );
    145         $this->weekday_abbrev[ __( 'Friday' ) ]    = /* translators: three-letter abbreviation of the weekday */ __( 'Fri' );
    146         $this->weekday_abbrev[ __( 'Saturday' ) ]  = /* translators: three-letter abbreviation of the weekday */ __( 'Sat' );
     140        $this->weekday_abbrev[ __( 'Sunday' ) ]    = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sun' );
     141        $this->weekday_abbrev[ __( 'Monday' ) ]    = /* translators: Ttree-letter abbreviation of the weekday. */ __( 'Mon' );
     142        $this->weekday_abbrev[ __( 'Tuesday' ) ]   = /* translators: Three-letter abbreviation of the weekday. */ __( 'Tue' );
     143        $this->weekday_abbrev[ __( 'Wednesday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Wed' );
     144        $this->weekday_abbrev[ __( 'Thursday' ) ]  = /* translators: Three-letter abbreviation of the weekday. */ __( 'Thu' );
     145        $this->weekday_abbrev[ __( 'Friday' ) ]    = /* translators: Three-letter abbreviation of the weekday. */ __( 'Fri' );
     146        $this->weekday_abbrev[ __( 'Saturday' ) ]  = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sat' );
    147147
    148148        // The Months
    149         $this->month['01'] = /* translators: month name */ __( 'January' );
    150         $this->month['02'] = /* translators: month name */ __( 'February' );
    151         $this->month['03'] = /* translators: month name */ __( 'March' );
    152         $this->month['04'] = /* translators: month name */ __( 'April' );
    153         $this->month['05'] = /* translators: month name */ __( 'May' );
    154         $this->month['06'] = /* translators: month name */ __( 'June' );
    155         $this->month['07'] = /* translators: month name */ __( 'July' );
    156         $this->month['08'] = /* translators: month name */ __( 'August' );
    157         $this->month['09'] = /* translators: month name */ __( 'September' );
    158         $this->month['10'] = /* translators: month name */ __( 'October' );
    159         $this->month['11'] = /* translators: month name */ __( 'November' );
    160         $this->month['12'] = /* translators: month name */ __( 'December' );
     149        $this->month['01'] = /* translators: Month name. */ __( 'January' );
     150        $this->month['02'] = /* translators: Month name. */ __( 'February' );
     151        $this->month['03'] = /* translators: Month name. */ __( 'March' );
     152        $this->month['04'] = /* translators: Month name. */ __( 'April' );
     153        $this->month['05'] = /* translators: Month name. */ __( 'May' );
     154        $this->month['06'] = /* translators: Month name. */ __( 'June' );
     155        $this->month['07'] = /* translators: Month name. */ __( 'July' );
     156        $this->month['08'] = /* translators: Month name. */ __( 'August' );
     157        $this->month['09'] = /* translators: Month name. */ __( 'September' );
     158        $this->month['10'] = /* translators: Month name. */ __( 'October' );
     159        $this->month['11'] = /* translators: Month name. */ __( 'November' );
     160        $this->month['12'] = /* translators: Month name. */ __( 'December' );
    161161
    162162        // The Months, genitive
    163         $this->month_genitive['01'] = /* translators: month name, genitive */ _x( 'January', 'genitive' );
    164         $this->month_genitive['02'] = /* translators: month name, genitive */ _x( 'February', 'genitive' );
    165         $this->month_genitive['03'] = /* translators: month name, genitive */ _x( 'March', 'genitive' );
    166         $this->month_genitive['04'] = /* translators: month name, genitive */ _x( 'April', 'genitive' );
    167         $this->month_genitive['05'] = /* translators: month name, genitive */ _x( 'May', 'genitive' );
    168         $this->month_genitive['06'] = /* translators: month name, genitive */ _x( 'June', 'genitive' );
    169         $this->month_genitive['07'] = /* translators: month name, genitive */ _x( 'July', 'genitive' );
    170         $this->month_genitive['08'] = /* translators: month name, genitive */ _x( 'August', 'genitive' );
    171         $this->month_genitive['09'] = /* translators: month name, genitive */ _x( 'September', 'genitive' );
    172         $this->month_genitive['10'] = /* translators: month name, genitive */ _x( 'October', 'genitive' );
    173         $this->month_genitive['11'] = /* translators: month name, genitive */ _x( 'November', 'genitive' );
    174         $this->month_genitive['12'] = /* translators: month name, genitive */ _x( 'December', 'genitive' );
     163        $this->month_genitive['01'] = /* translators: Month name, genitive. */ _x( 'January', 'genitive' );
     164        $this->month_genitive['02'] = /* translators: Month name, genitive. */ _x( 'February', 'genitive' );
     165        $this->month_genitive['03'] = /* translators: Month name, genitive. */ _x( 'March', 'genitive' );
     166        $this->month_genitive['04'] = /* translators: Month name, genitive. */ _x( 'April', 'genitive' );
     167        $this->month_genitive['05'] = /* translators: Month name, genitive. */ _x( 'May', 'genitive' );
     168        $this->month_genitive['06'] = /* translators: Month name, genitive. */ _x( 'June', 'genitive' );
     169        $this->month_genitive['07'] = /* translators: Month name, genitive. */ _x( 'July', 'genitive' );
     170        $this->month_genitive['08'] = /* translators: Month name, genitive. */ _x( 'August', 'genitive' );
     171        $this->month_genitive['09'] = /* translators: Month name, genitive. */ _x( 'September', 'genitive' );
     172        $this->month_genitive['10'] = /* translators: Month name, genitive. */ _x( 'October', 'genitive' );
     173        $this->month_genitive['11'] = /* translators: Month name, genitive. */ _x( 'November', 'genitive' );
     174        $this->month_genitive['12'] = /* translators: Month name, genitive. */ _x( 'December', 'genitive' );
    175175
    176176        // Abbreviations for each month.
    177         $this->month_abbrev[ __( 'January' ) ]   = /* translators: three-letter abbreviation of the month */ _x( 'Jan', 'January abbreviation' );
    178         $this->month_abbrev[ __( 'February' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Feb', 'February abbreviation' );
    179         $this->month_abbrev[ __( 'March' ) ]     = /* translators: three-letter abbreviation of the month */ _x( 'Mar', 'March abbreviation' );
    180         $this->month_abbrev[ __( 'April' ) ]     = /* translators: three-letter abbreviation of the month */ _x( 'Apr', 'April abbreviation' );
    181         $this->month_abbrev[ __( 'May' ) ]       = /* translators: three-letter abbreviation of the month */ _x( 'May', 'May abbreviation' );
    182         $this->month_abbrev[ __( 'June' ) ]      = /* translators: three-letter abbreviation of the month */ _x( 'Jun', 'June abbreviation' );
    183         $this->month_abbrev[ __( 'July' ) ]      = /* translators: three-letter abbreviation of the month */ _x( 'Jul', 'July abbreviation' );
    184         $this->month_abbrev[ __( 'August' ) ]    = /* translators: three-letter abbreviation of the month */ _x( 'Aug', 'August abbreviation' );
    185         $this->month_abbrev[ __( 'September' ) ] = /* translators: three-letter abbreviation of the month */ _x( 'Sep', 'September abbreviation' );
    186         $this->month_abbrev[ __( 'October' ) ]   = /* translators: three-letter abbreviation of the month */ _x( 'Oct', 'October abbreviation' );
    187         $this->month_abbrev[ __( 'November' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Nov', 'November abbreviation' );
    188         $this->month_abbrev[ __( 'December' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Dec', 'December abbreviation' );
     177        $this->month_abbrev[ __( 'January' ) ]   = /* translators: Three-letter abbreviation of the month. */ _x( 'Jan', 'January abbreviation' );
     178        $this->month_abbrev[ __( 'February' ) ]  = /* translators: Three-letter abbreviation of the month. */ _x( 'Feb', 'February abbreviation' );
     179        $this->month_abbrev[ __( 'March' ) ]     = /* translators: Three-letter abbreviation of the month. */ _x( 'Mar', 'March abbreviation' );
     180        $this->month_abbrev[ __( 'April' ) ]     = /* translators: Three-letter abbreviation of the month. */ _x( 'Apr', 'April abbreviation' );
     181        $this->month_abbrev[ __( 'May' ) ]       = /* translators: Three-letter abbreviation of the month. */ _x( 'May', 'May abbreviation' );
     182        $this->month_abbrev[ __( 'June' ) ]      = /* translators: Three-letter abbreviation of the month. */ _x( 'Jun', 'June abbreviation' );
     183        $this->month_abbrev[ __( 'July' ) ]      = /* translators: Three-letter abbreviation of the month. */ _x( 'Jul', 'July abbreviation' );
     184        $this->month_abbrev[ __( 'August' ) ]    = /* translators: Three-letter abbreviation of the month. */ _x( 'Aug', 'August abbreviation' );
     185        $this->month_abbrev[ __( 'September' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Sep', 'September abbreviation' );
     186        $this->month_abbrev[ __( 'October' ) ]   = /* translators: Three-letter abbreviation of the month. */ _x( 'Oct', 'October abbreviation' );
     187        $this->month_abbrev[ __( 'November' ) ]  = /* translators: Three-letter abbreviation of the month. */ _x( 'Nov', 'November abbreviation' );
     188        $this->month_abbrev[ __( 'December' ) ]  = /* translators: Three-letter abbreviation of the month. */ _x( 'Dec', 'December abbreviation' );
    189189
    190190        // The Meridiems
     
    197197        // See https://secure.php.net/number_format
    198198
    199         /* translators: $thousands_sep argument for https://secure.php.net/number_format, default is , */
     199        /* translators: $thousands_sep argument for https://secure.php.net/number_format, default is ',' */
    200200        $thousands_sep = __( 'number_format_thousands_sep' );
    201201
     
    210210        $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep;
    211211
    212         /* translators: $dec_point argument for https://secure.php.net/number_format, default is . */
     212        /* translators: $dec_point argument for https://secure.php.net/number_format, default is '.' */
    213213        $decimal_point = __( 'number_format_decimal_point' );
    214214
     
    365365     */
    366366    public function _strings_for_pot() {
    367         /* translators: localized date format, see https://secure.php.net/date */
     367        /* translators: Localized date format, see https://secure.php.net/date */
    368368        __( 'F j, Y' );
    369         /* translators: localized time format, see https://secure.php.net/date */
     369        /* translators: Localized time format, see https://secure.php.net/date */
    370370        __( 'g:i a' );
    371         /* translators: localized date and time format, see https://secure.php.net/date */
     371        /* translators: Localized date and time format, see https://secure.php.net/date */
    372372        __( 'F j, Y g:i a' );
    373373    }
Note: See TracChangeset for help on using the changeset viewer.