Making WordPress.org


Ignore:
Timestamp:
12/12/2015 12:12:06 AM (8 years ago)
Author:
iandunn
Message:

WordCamp Coming Soon Page: Internationalize all strings.

Fixes #1441
Props zodiac1978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php

    r1672 r2186  
    164164        if ( isset( $wordcamp_post->ID ) ) {
    165165            if ( ! empty( $wordcamp_post->meta['Start Date (YYYY-mm-dd)'][0] ) ) {
    166                 $dates = date( 'l, F jS Y', $wordcamp_post->meta['Start Date (YYYY-mm-dd)'][0] );
     166                // translators: date format, see https://php.net/date
     167                $dates = date_i18n( __( 'l, F jS Y' , 'wordcamporg' ), $wordcamp_post->meta['Start Date (YYYY-mm-dd)'][0] );
    167168
    168169                if ( ! empty( $wordcamp_post->meta['End Date (YYYY-mm-dd)'][0] ) ) {
    169170                    if ( $wordcamp_post->meta['Start Date (YYYY-mm-dd)'][0] !== $wordcamp_post->meta['End Date (YYYY-mm-dd)'][0] ) {
    170                         $dates .= ' - ' . date( 'l, F jS Y', $wordcamp_post->meta['End Date (YYYY-mm-dd)'][0] );
     171                        // translators: date format, see https://php.net/date
     172                        $dates .= ' - ' . date_i18n( __( 'l, F jS Y' , 'wordcamporg' ), $wordcamp_post->meta['End Date (YYYY-mm-dd)'][0] );
    171173                    }
    172174                }
Note: See TracChangeset for help on using the changeset viewer.