WordPress.org

Make WordPress Core

Ticket #6226: tinymce-use-wp-month-weekday-translations.diff

File tinymce-use-wp-month-weekday-translations.diff, 2.1 KB (added by nbachiyski, 7 years ago)

TinyMCE should use WordPress's translations for month and weekdays names and abbreviations

  • wp-includes/js/tinymce/langs/wp-langs.php

     
    3737time_fmt:"' . mce_escape( __('%H:%M:%S') ) . '", 
    3838insertdate_desc:"' . mce_escape( __('Insert date') ) . '", 
    3939inserttime_desc:"' . mce_escape( __('Insert time') ) . '", 
    40 months_long:"' . mce_escape( _c('January,February,March,April,May,June,July,August,September,October,November,December|Comma separated list of the months. No spaces between them.') ) . '", 
    41 months_short:"' . mce_escape( _c('Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec|Comma separated list of the abbreviated names of the months. No spaces between them.') ) . '", 
    42 day_long:"' . mce_escape( _c('Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday|Comma separated list of the days of the week. No spaces between them.') ) . '", 
    43 day_short:"' . mce_escape( _c('Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun|Comma separated list of the abbreviated names for the days of the week. No spaces between them.') ) . '" 
     40months_long:"' . mce_escape( __('January').','.__('February').','.__('March').','.__('April').','.__('May').','.__('June').','.__('July').','.__('August').','.__('September').','.__('October').','.__('November').','.__('December') ) . '", 
     41months_short:"' . mce_escape( __('Jan_January_abbreviation').','.__('Feb_February_abbreviation').','.__('Mar_March_abbreviation').','.__('Apr_April_abbreviation').','.__('May_May_abbreviation').','.__('Jun_June_abbreviation').','.__('Jul_July_abbreviation').','.__('Aug_August_abbreviation').','.__('Sep_September_abbreviation').','.__('Oct_October_abbreviation').','.__('Nov_November_abbreviation').','.__('Dec_December_abbreviation') ) . '", 
     42day_long:"' . mce_escape( __('Sunday').','.__('Monday').','.__('Tuesday').','.__('Wednesday').','.__('Thursday').','.__('Friday').','.__('Saturday') ) . '", 
     43day_short:"' . mce_escape( __('Sun').','.__('Mon').','.__('Tue').','.__('Wed').','.__('Thu').','.__('Fri').','.__('Sat') ) . '" 
    4444}, 
    4545print:{ 
    4646print_desc:"' . mce_escape( __('Print') ) . '"