Making WordPress.org

Changeset 8104


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.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
7 edited

Legend:

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

    r5136 r8104  
    109109
    110110        ?>
    111             <h3><?php _e( 'WordCamps', 'wcpt' ); ?></h3>
     111            <h3><?php _e( 'WordCamps', 'wordcamporg' ); ?></h3>
    112112
    113113            <table class="form-table">
    114114                <tr valign="top">
    115                     <th scope="row"><?php _e( 'WordCamps', 'wcpt' ); ?></th>
     115                    <th scope="row"><?php _e( 'WordCamps', 'wordcamporg' ); ?></th>
    116116                    <td>
    117117
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-application.php

    r8085 r8104  
    220220     */
    221221    public function notify_applicant_application_received( $email_address, $event_city ) {
    222         //translators: Name of the event. Egs WordCamp.
    223         $subject = sprintf( __( "We've received your %s application", 'wpct' ), $this->get_event_label() );
     222        //translators: Name of the event. E.g. WordCamp or meetup.
     223        $subject = sprintf( __( "We've received your %s application", 'wordcamporg' ), $this->get_event_label() );
    224224        $headers = array( 'Reply-To: support@wordcamp.org' );
    225         //translators: Name and city of the event. Egs WordCamp in New York.
     225        //translators: Name and city of the event. E.g. WordCamp New York.
    226226        $message = sprintf(
    227227            __(
    228228                "Thank you for applying to organize a %1\$s in %2\$s! We'll send you a follow-up e-mail once we've had a chance to review your application.",
    229                 'wpct'
     229                'wordcamporg'
    230230            ),
    231231            $this->get_event_label(),
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-loader.php

    r8085 r8104  
    2828     */
    2929    class WCPT_Loader {
    30 
    3130        /**
    3231         * The main WordCamp Post Type loader
     
    8786        }
    8887    }
    89 
    9088endif; // class_exists check.
    9189
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/class-meetup-admin.php

    r8085 r8104  
    9090            $columns = array(
    9191                'cb'                   => '<input type="checkbox" />',
    92                 'title'                => __( 'Title', 'wcpt' ),
    93                 'taxonomy-meetup_tags' => __( 'Meetup Tags', 'wcpt' ),
    94                 'organizer'            => __( 'Organizer', 'wcpt' ),
    95                 'date'                 => __( 'Date', 'wcpt' ),
    96                 'meetup.com_url'       => __( 'Meetup URL', 'wcpt' ),
    97                 'helpscout_url'        => __( 'HelpScout Link', 'wcpt' ),
     92                'title'                => __( 'Title',          'wordcamporg' ),
     93                'taxonomy-meetup_tags' => __( 'Meetup Tags',    'wordcamporg' ),
     94                'organizer'            => __( 'Organizer',      'wordcamporg' ),
     95                'date'                 => __( 'Date',           'wordcamporg' ),
     96                'meetup.com_url'       => __( 'Meetup URL',     'wordcamporg' ),
     97                'helpscout_url'        => __( 'HelpScout Link', 'wordcamporg' ),
    9898            );
    9999
     
    185185            add_meta_box(
    186186                'wcpt_meetup_meetup_information',
    187                 __( 'Meetup Information', 'wcpt' ),
     187                __( 'Meetup Information', 'wordcamporg' ),
    188188                array( $this, 'wcpt_meetup_information_metabox' ),
    189189                Meetup_Application::POST_TYPE,
     
    193193            add_meta_box(
    194194                'wcpt_meetup_application',
    195                 __( 'Application Information', 'wcpt' ),
     195                __( 'Application Information', 'wordcamporg' ),
    196196                array( $this, 'wcpt_application_metabox' ),
    197197                Meetup_Application::POST_TYPE,
     
    201201            add_meta_box(
    202202                'wcpt_meetup_organizer_info',
    203                 __( 'Organizer Information', 'wcpt' ),
     203                __( 'Organizer Information', 'wordcamporg' ),
    204204                array( $this, 'wcpt_organizer_info_metabox' ),
    205205                Meetup_Application::POST_TYPE,
     
    209209            add_meta_box(
    210210                'wcpt_meetup_swag',
    211                 __( 'Swag Information', 'wcpt' ),
     211                __( 'Swag Information', 'wordcamporg' ),
    212212                array( $this, 'wcpt_swag_metabox' ),
    213213                Meetup_Application::POST_TYPE,
     
    217217            add_meta_box(
    218218                'wcpt_meetup_metadata',
    219                 __( 'Meetup.com API sync', 'wcpt' ),
     219                __( 'Meetup.com API sync', 'wordcamporg' ),
    220220                array( $this, 'wcpt_meetup_sync' ),
    221221                Meetup_Application::POST_TYPE,
  • 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            }
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php

    r7853 r8104  
    6464        // WordCamp post type labels
    6565        $wcpt_labels = array (
    66             'name'                  => __( 'WordCamps',                   'wcpt' ),
    67             'singular_name'         => __( 'WordCamp',                    'wcpt' ),
    68             'add_new'               => __( 'Add New',                     'wcpt' ),
    69             'add_new_item'          => __( 'Create New WordCamp',         'wcpt' ),
    70             'edit'                  => __( 'Edit',                        'wcpt' ),
    71             'edit_item'             => __( 'Edit WordCamp',               'wcpt' ),
    72             'new_item'              => __( 'New WordCamp',                'wcpt' ),
    73             'view'                  => __( 'View WordCamp',               'wcpt' ),
    74             'view_item'             => __( 'View WordCamp',               'wcpt' ),
    75             'search_items'          => __( 'Search WordCamps',            'wcpt' ),
    76             'not_found'             => __( 'No WordCamps found',          'wcpt' ),
    77             'not_found_in_trash'    => __( 'No WordCamps found in Trash', 'wcpt' ),
    78             'parent_item_colon'     => __( 'Parent WordCamp:',            'wcpt' )
     66            'name'                  => __( 'WordCamps',                   'wordcamporg' ),
     67            'singular_name'         => __( 'WordCamp',                    'wordcamporg' ),
     68            'add_new'               => __( 'Add New',                     'wordcamporg' ),
     69            'add_new_item'          => __( 'Create New WordCamp',         'wordcamporg' ),
     70            'edit'                  => __( 'Edit',                        'wordcamporg' ),
     71            'edit_item'             => __( 'Edit WordCamp',               'wordcamporg' ),
     72            'new_item'              => __( 'New WordCamp',                'wordcamporg' ),
     73            'view'                  => __( 'View WordCamp',               'wordcamporg' ),
     74            'view_item'             => __( 'View WordCamp',               'wordcamporg' ),
     75            'search_items'          => __( 'Search WordCamps',            'wordcamporg' ),
     76            'not_found'             => __( 'No WordCamps found',          'wordcamporg' ),
     77            'not_found_in_trash'    => __( 'No WordCamps found in Trash', 'wordcamporg' ),
     78            'parent_item_colon'     => __( 'Parent WordCamp:',            'wordcamporg' )
    7979        );
    8080
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-template.php

    r2898 r8104  
    504504        // Set return string
    505505        if ( $total > 1 )
    506             $retstr = sprintf( __( 'Viewing %1$s to %2$s (of %3$s)', 'wcpt' ), $from_num, $to_num, $total );
     506            $retstr = sprintf( __( 'Viewing %1$s to %2$s (of %3$s)', 'wordcamporg' ), $from_num, $to_num, $total );
    507507        else
    508             $retstr = sprintf( __( 'Viewing %1$s WordCamp', 'wcpt' ), $total );
     508            $retstr = sprintf( __( 'Viewing %1$s WordCamp', 'wordcamporg' ), $total );
    509509
    510510        // Filter and return
Note: See TracChangeset for help on using the changeset viewer.