Make WordPress Core

Changeset 2232


Ignore:
Timestamp:
02/06/2005 08:45:10 PM (20 years ago)
Author:
rboren
Message:

Fix May abbreviation translation. Patch by morganiq. http://mosquito.wordpress.org/view.php?id=722

File:
1 edited

Legend:

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

    r1518 r2232  
    4949$month['12'] = __('December');
    5050
    51 // Abbreviations for each month.
    52 $month_abbrev[__('January')] = __('Jan');
    53 $month_abbrev[__('February')] = __('Feb');
    54 $month_abbrev[__('March')] = __('Mar');
    55 $month_abbrev[__('April')] = __('Apr');
    56 $month_abbrev[__('May')] = __('May');
    57 $month_abbrev[__('June')] = __('Jun');
    58 $month_abbrev[__('July')] = __('Jul');
    59 $month_abbrev[__('August')] = __('Aug');
    60 $month_abbrev[__('September')] = __('Sep');
    61 $month_abbrev[__('October')] = __('Oct');
    62 $month_abbrev[__('November')] = __('Nov');
    63 $month_abbrev[__('December')] = __('Dec');
     51// Abbreviations for each month. Uses the same hack as above to get around the
     52// 'May' duplication.
     53$month_abbrev[__('January')] = __('Jan_January_abbreviation');
     54$month_abbrev[__('February')] = __('Feb_February_abbreviation');
     55$month_abbrev[__('March')] = __('Mar_March_abbreviation');
     56$month_abbrev[__('April')] = __('Apr_April_abbreviation');
     57$month_abbrev[__('May')] = __('May_May_abbreviation');
     58$month_abbrev[__('June')] = __('Jun_June_abbreviation');
     59$month_abbrev[__('July')] = __('Jul_July_abbreviation');
     60$month_abbrev[__('August')] = __('Aug_August_abbreviation');
     61$month_abbrev[__('September')] = __('Sep_September_abbreviation');
     62$month_abbrev[__('October')] = __('Oct_October_abbreviation');
     63$month_abbrev[__('November')] = __('Nov_November_abbreviation');
     64$month_abbrev[__('December')] = __('Dec_December_abbreviation');
     65
     66foreach ($month_abbrev as $month_ => $month_abbrev_) {
     67  $month_abbrev[$month_] = preg_replace('/_.+_abbreviation$/', '', $month_abbrev_);
     68}
     69
    6470?>
Note: See TracChangeset for help on using the changeset viewer.