Making WordPress.org


Ignore:
Timestamp:
01/18/2019 08:23:53 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Migrate to wordcamporg text domain.

This makes it consistent with all the other code, and makes it available in GlotPress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r8085 r8104  
    6565            add_meta_box(
    6666                'wcpt_information',
    67                 __( 'WordCamp Information', 'wcpt' ),
     67                __( 'WordCamp Information', 'wordcamporg' ),
    6868                'wcpt_wordcamp_metabox',
    6969                WCPT_POST_TYPE_ID,
     
    7474            add_meta_box(
    7575                'wcpt_organizer_info',
    76                 __( 'Organizing Team', 'wcpt' ),
     76                __( 'Organizing Team', 'wordcamporg' ),
    7777                'wcpt_organizer_metabox',
    7878                WCPT_POST_TYPE_ID,
     
    8383            add_meta_box(
    8484                'wcpt_venue_info',
    85                 __( 'Venue Information', 'wcpt' ),
     85                __( 'Venue Information', 'wordcamporg' ),
    8686                'wcpt_venue_metabox',
    8787                WCPT_POST_TYPE_ID,
     
    9292            add_meta_box(
    9393                'wcpt_contributor_info',
    94                 __( 'Contributor Day Information', 'wcpt' ),
     94                __( 'Contributor Day Information', 'wordcamporg' ),
    9595                'wcpt_contributor_metabox',
    9696                WCPT_POST_TYPE_ID,
     
    547547            ?>
    548548
    549         <h3><?php esc_html_e( 'WordCamps', 'wcpt' ); ?></h3>
     549        <h3><?php esc_html_e( 'WordCamps', 'wordcamporg' ); ?></h3>
    550550
    551551        <table class="form-table">
    552552            <tr valign="top">
    553                 <th scope="row"><?php esc_html_e( 'WordCamps', 'wcpt' ); ?></th>
     553                <th scope="row"><?php esc_html_e( 'WordCamps', 'wordcamporg' ); ?></th>
    554554
    555555                <td>
     
    571571            $columns = array(
    572572                'cb'             => '<input type="checkbox" />',
    573                 'title'          => __( 'Title', 'wcpt' ),
    574                 // 'wcpt_location'    => __( 'Location', 'wcpt' ),
    575                 'wcpt_date'      => __( 'Date', 'wcpt' ),
    576                 'wcpt_organizer' => __( 'Organizer', 'wcpt' ),
    577                 'wcpt_venue'     => __( 'Venue', 'wcpt' ),
    578                 'date'           => __( 'Status', 'wcpt' ),
     573                'title'          => __( 'Title',     'wordcamporg' ),
     574                // 'wcpt_location'    => __( 'Location', 'wordcamporg' ),
     575                'wcpt_date'      => __( 'Date',      'wordcamporg' ),
     576                'wcpt_organizer' => __( 'Organizer', 'wordcamporg' ),
     577                'wcpt_venue'     => __( 'Venue',     'wordcamporg' ),
     578                'date'           => __( 'Status',    'wordcamporg' ),
    579579            );
    580580            return $columns;
     
    594594            switch ( $column ) {
    595595                case 'wcpt_location':
    596                     echo esc_html( wcpt_get_wordcamp_location() ? wcpt_get_wordcamp_location() : __( 'No Location', 'wcpt' ) );
     596                    echo esc_html( wcpt_get_wordcamp_location() ? wcpt_get_wordcamp_location() : __( 'No Location', 'wordcamporg' ) );
    597597                    break;
    598598
     
    605605                        $end = wcpt_get_wordcamp_end_date();
    606606                        if ( $end ) {
    607                             $string_date = sprintf( __( 'Start: %1$s<br />End: %2$s', 'wcpt' ), $start, $end );
    608 
     607                            $string_date = sprintf( __( 'Start: %1$s<br />End: %2$s', 'wordcamporg' ), $start, $end );
    609608                            // No end date.
    610609                        } else {
    611                             $string_date = sprintf( __( 'Start: %1$s', 'wcpt' ), $start );
     610                            $string_date = sprintf( __( 'Start: %1$s', 'wordcamporg' ), $start );
    612611                        }
    613612
    614613                        // No date.
    615614                    } else {
    616                         $string_date = __( 'No Date', 'wcpt' );
     615                        $string_date = __( 'No Date', 'wordcamporg' );
    617616                    }
    618617
     
    621620
    622621                case 'wcpt_organizer':
    623                     echo esc_html( wcpt_get_wordcamp_organizer_name() ? wcpt_get_wordcamp_organizer_name() : __( 'No Organizer', 'wcpt' ) );
     622                    echo esc_html( wcpt_get_wordcamp_organizer_name() ? wcpt_get_wordcamp_organizer_name() : __( 'No Organizer', 'wordcamporg' ) );
    624623                    break;
    625624
    626625                case 'wcpt_venue':
    627                     echo esc_html( wcpt_get_wordcamp_venue_name() ? wcpt_get_wordcamp_venue_name() : __( 'No Venue', 'wcpt' ) );
     626                    echo esc_html( wcpt_get_wordcamp_venue_name() ? wcpt_get_wordcamp_venue_name() : __( 'No Venue', 'wordcamporg' ) );
    628627                    break;
    629628            }
Note: See TracChangeset for help on using the changeset viewer.