Making WordPress.org

Changeset 860


Ignore:
Timestamp:
09/12/2014 07:23:26 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Internationalize the content stubs for new sites.

get_stub_me_sponsors() was skipped because that will be pulled from the Multi-Event Sponsor posts on Central
in the future.

See #603

File:
1 edited

Legend:

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

    r753 r860  
    168168        update_option( 'admin_email',                  $admin_email );
    169169        update_option( 'blogname',                     $blog_name );
    170         update_option( 'blogdescription',              'Just another WordCamp' );
     170        update_option( 'blogdescription',              __( 'Just another WordCamp', 'wordcamporg' ) );
    171171        update_option( 'close_comments_for_old_posts', 1 );
    172172        update_option( 'close_comments_days_old',      30 );
     
    248248        $pages = array(
    249249            array(
    250                 'title'   => 'Schedule',
    251                 'content' => '<p><em>Organizers note:</em> You can enter content for this page in the Sessions menu item in the sidebar.</p> <h1>Saturday, January 1st</h1> <p>[schedule date="YYYY-MM-DD" tracks="example-track,another-example-track,yet-another-example-track"]</p>',
    252                 'status'  => 'publish',
    253                 'type'    => 'page',
    254             ),
    255 
    256             array(
    257                 'title'   => 'Speakers',
    258                 'content' => '<p><em>Organizers note:</em> You can enter content for this page in the Speakers menu item in the sidebar.</p> <p>[speakers]</p>',
    259                 'status'  => 'publish',
    260                 'type'    => 'page',
    261             ),
    262 
    263             array(
    264                 'title'   => 'Sessions',
    265                 'content' => '<p><em>Organizers note:</em> You can enter content for this page in the Sessions menu item in the sidebar.</p> <p>[sessions]</p>',
    266                 'status'  => 'publish',
    267                 'type'    => 'page',
    268             ),
    269 
    270             array(
    271                 'title'   => 'Sponsors',
    272                 'content' => "<p><em>Organizers note:</em> Multi-event sponsors have been automatically created in the Sponsors menu, but you'll need to remove the ones that don't apply to your specific event. To find out which ones apply, please visit http://central.wordcamp.org/multi-event-sponsorship-packages/. After that, you should add the sponsors that are specific to your event.</p> <h3>Our Sponsors</h3> <p>Blurb thanking sponsors</p> <p>[sponsors]</p> <h3>Interested in sponsoring WordCamp this year?</h3> <p>Check out our <a href='/call-for-sponsors'>Call for Sponsors</a> post for details on how you can help make this year's WordCamp the best it can be!</p>",
    273                 'status'  => 'publish',
    274                 'type'    => 'page',
    275             ),
    276 
    277             array(
    278                 'title'   => 'Location',
     250                'title'   => __( 'Schedule', 'wordcamporg' ),
     251                'content' =>
     252                    '<p>'  . __( '<em>Organizers note:</em> You can enter content for this page in the Sessions menu item in the sidebar.', 'wordcamporg' ) . '</p> ' .
     253                    '<h1>' . __( 'Saturday, January 1st', 'wordcamporg' ) . '</h1> ' .
     254                    '<p>[schedule date="YYYY-MM-DD" tracks="example-track,another-example-track,yet-another-example-track"]</p>',
     255                'status'  => 'publish',
     256                'type'    => 'page',
     257            ),
     258
     259            array(
     260                'title'   => __( 'Speakers', 'wordcamporg' ),
     261                'content' =>
     262                    '<p>' . __( '<em>Organizers note:</em> You can enter content for this page in the Speakers menu item in the sidebar.', 'wordcamporg' ) . '</p> ' .
     263                    '<p>[speakers]</p>',
     264                'status'  => 'publish',
     265                'type'    => 'page',
     266            ),
     267
     268            array(
     269                'title'   => __( 'Sessions', 'wordcamporg' ),
     270                'content' =>
     271                    '<p>' . __( '<em>Organizers note:</em> You can enter content for this page in the Sessions menu item in the sidebar.', 'wordcamporg' ) . '</p> ' .
     272                    '<p>[sessions]</p>',
     273                'status'  => 'publish',
     274                'type'    => 'page',
     275            ),
     276
     277            array(
     278                'title'   => __( 'Sponsors', 'wordcamporg' ),
     279                'content' =>
     280                    '<p>'  . __( "<em>Organizers note:</em> Multi-event sponsors have been automatically created in the Sponsors menu, but you'll need to remove the ones that don't apply to your specific event. To find out which ones apply, please visit http://central.wordcamp.org/multi-event-sponsorship-packages/. After that, you should add the sponsors that are specific to your event. For non-English sites, make sure the URL below matches Call for Sponsors page.", 'wordcamporg' ) . '</p> ' .
     281                    '<h3>' . __( 'Our Sponsors', 'wordcamporg' ) . '</h3> ' .
     282                    '<p>'  . __( 'Blurb thanking sponsors', 'wordcamporg' ) . '</p> ' .
     283                    '<p>[sponsors]</p> ' .
     284                    '<h3>' . __( 'Interested in sponsoring WordCamp this year?</h3>', 'wordcamporg' ) .
     285                    '<p>'  . __( 'Check out our <a href="/call-for-sponsors">Call for Sponsors</a> post for details on how you can help make this year\'s WordCamp the best it can be!</p>', 'wordcamporg' ),
     286                'status'  => 'publish',
     287                'type'    => 'page',
     288            ),
     289
     290            array(
     291                'title'   => __( 'Location', 'wordcamporg' ),
    279292                'content' => '',
    280293                'status'  => 'publish',
     
    283296
    284297            array(
    285                 'title'   => 'Organizers',
    286                 'content' => '<p><em>Organizers note:</em> You can enter content for this page in the Organizers menu item in the sidebar.</p> <p>[organizers]</p>',
    287                 'status'  => 'publish',
    288                 'type'    => 'page',
    289             ),
    290 
    291             array(
    292                 'title'   => 'Tickets',
    293                 'content' => "<p><em>Organizers note:</em> If you'd like to change the slug for this page, please make sure you do that before opening ticket sales. Changing the page slug after tickets have started selling will break the link that users receive in their receipt e-mail.</p> <p>[camptix]</p>",
     298                'title'   => __( 'Organizers', 'wordcamporg' ),
     299                'content' =>
     300                    '<p>' . __( '<em>Organizers note:</em> You can enter content for this page in the Organizers menu item in the sidebar.', 'wordcamporg' ) . '</p> ' .
     301                    '<p>[organizers]</p>',
     302                'status'  => 'publish',
     303                'type'    => 'page',
     304            ),
     305
     306            array(
     307                'title'   => __( 'Tickets', 'wordcamporg' ),
     308                'content' =>
     309                    '<p>' . __( "<em>Organizers note:</em> If you'd like to change the slug for this page, please make sure you do that before opening ticket sales. Changing the page slug after tickets have started selling will break the link that users receive in their receipt e-mail.", 'wordcamporg' ) . '</p> ' .
     310                    '<p>[camptix]</p>',
    294311                'status'  => 'draft',
    295312                'type'    => 'page',
     
    297314
    298315            array(
    299                 'title'   => 'Attendees',
     316                'title'   => __( 'Attendees', 'wordcamporg' ),
    300317                'content' => '[camptix_attendees columns="3"]',
    301318                'status'  => 'draft',
     
    304321
    305322            array(
    306                 'title'   => 'Videos',
    307                 'content' => '<p><em>Organizers note:</em> After your WordCamp is over and the sessions are published to WordPress.tv, you can embed them here. Just enter the event slug into the shortcode below, and hit the <em>Publish</em> button.</p> <p>[wptv event="enter-event-slug-here"]</p>',
     323                'title'   => __( 'Videos', 'wordcamporg' ),
     324                'content' =>
     325                    '<p>' . __( '<em>Organizers note:</em> After your WordCamp is over and the sessions are published to WordPress.tv, you can embed them here. Just enter the event slug into the shortcode below, and hit the <em>Publish</em> button.', 'wordcamporg' ) . '</p> ' .
     326                     '<p>[wptv event="enter-event-slug-here"]</p>',
    308327                'status'  => 'draft',
    309328                'type'    => 'page',
     
    311330
    312331            array(
    313                 'title'   => 'Slideshow',
    314                 'content' => "<p><em>Organizers note:</em> Upload photos to this page and they'll automagically appear in a slideshow!</p> <p>[slideshow]</p>",
     332                'title'   => __( 'Slideshow', 'wordcamporg' ),
     333                'content' =>
     334                    '<p>' . __( "<em>Organizers note:</em> Upload photos to this page and they'll automagically appear in a slideshow!", 'wordcamporg' ) . '</p> ' .
     335                    '<p>[slideshow]</p>',
    315336                'status'  => 'draft',
    316337                'type'    => 'page',
     
    318339
    319340            array(
    320                 'title'   => 'Contact',
    321                 'content' => "<p>[contact-form to='" . get_option( 'admin_email' ) . "' subject='WordCamp Contact Request'][contact-field label='Name' type='name' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Message' type='textarea' required='1'/][/contact-form]</p>",
    322                 'status'  => 'publish',
    323                 'type'    => 'page',
    324             ),
    325 
    326             array(
    327                 'title'   => 'Social Media Stream',
    328                 'content' => '<p><em>Organizers note:</em> The [[tagregator]] shortcode will pull in a stream of social media posts and display them. In order to use it, you\'ll need to follow the setup instructions at http://wordpress.org/plugins/tagregator/installation, and then update "#wcxyz" below with your hashtag.</p> <p>[tagregator hashtag="#wcxzy"]</p>',
    329                 'status'  => 'publish',
    330                 'type'    => 'page',
    331             ),
    332 
    333             array(
    334                 'title'   => 'Code of Conduct',
    335                 'content' => '<p><em>Organizers note:</em> Below is a boilerplate code of conduct that you can customize; another great example is the Ada Initiative <a href="http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy">anti-harassment policy.</a></p> <p>We also recommend the organizing team read this article on <a href="http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Responding_to_reports">how to take a harassment report</a>.</p> <p>Please update the portions <span style="color: red; text-decoration: underline;">with red text</span>. You can use the "Remove Formatting" button on the toolbar (the eraser icon on the second line) to remove the color and underline.' . $this->get_code_of_conduct(),
     341                'title'   => __( 'Contact', 'wordcamporg' ),
     342                'content' => sprintf(
     343                    '<p>' .
     344                        '[contact-form to="%s" subject="%s"]' .
     345                            '[contact-field label="%s" type="name"     required="1" /]' .
     346                            '[contact-field label="%s" type="email"    required="1" /]' .
     347                            '[contact-field label="%s" type="textarea" required="1" /]' .
     348                        '[/contact-form]' .
     349                    '</p>',
     350                    get_option( 'admin_email' ),
     351                    __( 'WordCamp Contact Request', 'wordcamporg' ),
     352                    __( 'Name', 'wordcamporg' ),
     353                    __( 'Email', 'wordcamporg' ),
     354                    __( 'Message', 'wordcamporg' )
     355                ),
     356                'status'  => 'publish',
     357                'type'    => 'page',
     358            ),
     359
     360            array(
     361                'title'   => __( 'Social Media Stream', 'wordcamporg' ),
     362                'content' =>
     363                    '<p>' . __( '<em>Organizers note:</em> The [[tagregator]] shortcode will pull in a stream of social media posts and display them. In order to use it, you\'ll need to follow the setup instructions at http://wordpress.org/plugins/tagregator/installation, and then update "#wcxyz" below with your hashtag.', 'wordcamporg' ) . '</p> ' .
     364                    '<p>[tagregator hashtag="#wcxzy"]</p>',
     365                'status'  => 'publish',
     366                'type'    => 'page',
     367            ),
     368
     369            array(
     370                'title'   => __( 'Code of Conduct', 'wordcamporg' ),
     371                'content' =>
     372                    '<p>' .
     373                        sprintf(
     374                            __( '<em>Organizers note:</em> Below is a boilerplate code of conduct that you can customize; another great example is the Ada Initiative <a href="%s">anti-harassment policy.</a>', 'wordcamporg' ),
     375                            'http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy'
     376                        ) .
     377                    '</p> ' .
     378
     379                    '<p>' .
     380                        sprintf(
     381                            __( 'We also recommend the organizing team read this article on <a href="%s">how to take a harassment report</a>', 'wordcamporg' ),
     382                            'http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Responding_to_reports'
     383                        ) .
     384                    '</p> ' .
     385
     386                    '<p>' . __( 'Please update the portions <span style="color: red; text-decoration: underline;">with red text</span>. You can use the "Remove Formatting" button on the toolbar (the eraser icon on the second line) to remove the color and underline.', 'wordcamporg' ) .
     387                    $this->get_code_of_conduct(),
    336388                'status'  => 'publish',
    337389                'type'    => 'page',
     
    353405        $posts = array(
    354406            array(
    355                 'title'   => 'Welcome to ' . get_option( 'blogname' ),
    356                 'content' => "<p><em>Organizers note:</em> Please update the portions <span style='color: red; text-decoration: underline;'>with red text</span>.</p> <p>We're happy to announce that <span style='color: red; text-decoration: underline;'>WordCamp YourCityName</span> is officially on the calendar!</p> <p><span style='color: red; text-decoration: underline;'>WordCamp YourCityName</span> will be <span style='color: red; text-decoration: underline;'>DATE(S)</span> at <span style='color: red; text-decoration: underline;'>LOCATION</span>.</p> <p><span style='color: red; text-decoration: underline;'>Subscribe using the form in the sidebar</span> to stay up to date on the most recent news. We’ll be keeping you posted on all the details over the coming months, including speaker submissions, ticket sales and more!</p>",
     407                'title'   => __( 'Welcome to ', 'wordcamporg' ) . get_option( 'blogname' ),
     408                'content' =>
     409                    '<p>' . __( '<em>Organizers note:</em> Please update the portions <span style="color: red; text-decoration: underline;">with red text</span>.', 'wordcamporg' ) . '</p> ' .
     410                    '<p>' . __( 'We\'re happy to announce that <span style="color: red; text-decoration: underline;">WordCamp YourCityName</span> is officially on the calendar!', 'wordcamporg' ) . '</p> ' .
     411                    '<p>' . __( '<span style="color: red; text-decoration: underline;">WordCamp YourCityName</span> will be <span style="color: red; text-decoration: underline;">DATE(S)</span> at <span style="color: red; text-decoration: underline;">LOCATION</span>.', 'wordcamporg' ) . '</p> ' .
     412                    '<p>' . __( '<span style="color: red; text-decoration: underline;">Subscribe using the form in the sidebar</span> to stay up to date on the most recent news. We’ll be keeping you posted on all the details over the coming months, including speaker submissions, ticket sales and more!', 'wordcamporg' ) . '</p> ',
    357413                'status'  => 'publish',
    358414                'type'    => 'post',
     
    360416
    361417            array(
    362                 'title'   => 'Call for Sponsors',
    363                 'content' => "<p><em>Organizers note:</em> Make sure you update the 'to' address and other fields before publishing this page!</p> <p>Blurb with information for potential sponsors.</p> <p>[contact-form to='enter-your-address-here@example.net' subject='WordCamp Sponsor Request'][contact-field label='Contact Name' type='text' required='1'/][contact-field label='Company Name' type='name' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Phone Number' type='text'/][contact-field label='Sponsorship Level' type='text'/][contact-field label='Why Would you Like to Sponsor WordCamp?' type='textarea' required='1'/][contact-field label='Questions / Comments' type='textarea'/][/contact-form] </p>",
     418                'title'   => __( 'Call for Sponsors', 'wordcamporg' ),
     419                'content' =>
     420                    '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .
     421                    '<p>' . __( 'Blurb with information for potential sponsors.', 'wordcamporg' ) . '</p> ' .
     422                    '<p>' .
     423                        sprintf( '
     424                            [contact-form to="enter-your-address-here@example.net" subject="%s"]
     425                            [contact-field label="%s" type="text"     required="1" /]
     426                            [contact-field label="%s" type="name"     required="1" /]
     427                            [contact-field label="%s" type="email"    required="1" /]
     428                            [contact-field label="%s" type="text"                  /]
     429                            [contact-field label="%s" type="text"                  /]
     430                            [contact-field label="%s" type="textarea" required="1" /]
     431                            [contact-field label="%s" type="textarea"              /]
     432                            [/contact-form]',
     433                            __( 'WordCamp Sponsor Request', 'wordcamporg' ),
     434                            __( 'Contact Name', 'wordcamporg' ),
     435                            __( 'Company Name', 'wordcamporg' ),
     436                            __( 'Email', 'wordcamporg' ),
     437                            __( 'Phone Number', 'wordcamporg' ),
     438                            __( 'Sponsorship Level', 'wordcamporg' ),
     439                            __( 'Why Would you Like to Sponsor WordCamp?', 'wordcamporg' ),
     440                            __( 'Questions / Comments', 'wordcamporg' )
     441                        ) .
     442                    '</p>',
    364443                'status'  => 'draft',
    365444                'type'    => 'post',
     
    367446
    368447            array(
    369                 'title'   => 'Call for Speakers',
    370                 'content' => "<p><em>Organizers note:</em> Make sure you update the 'to' address and other fields before publishing this page!</p> <p>Blurb with information for potential speakers.</p> <p>[contact-form to='enter-your-address-here@example.net' subject='WordCamp Speaker Request'][contact-field label='Name' type='text' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Topic(s) You%26#039;d Like to Present On' type='textarea' required='1'/][contact-field label='Intended Audience' type='text' required='1'/][contact-field label='Past Speaking Experience (not necessary to apply)' type='textarea'/][/contact-form]</p>",
     448                'title'   => __( 'Call for Speakers', 'wordcamporg' ),
     449                'content' =>
     450                    '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .   
     451                    '<p>' . __( 'Blurb with information for potential speakers.', 'wordcamporg' ) . '</p> ' .
     452                    '<p>' .
     453                        sprintf( '
     454                            [contact-form to="enter-your-address-here@example.net" subject="%s"]
     455                                [contact-field label="%s" type="text"     required="1" /]
     456                                [contact-field label="%s" type="email"    required="1" /]
     457                                [contact-field label="%s" type="textarea" required="1" /]
     458                                [contact-field label="%s" type="text"     required="1" /]
     459                                [contact-field label="%s" type="textarea"              /]
     460                            [/contact-form]',
     461                            __( 'WordCamp Speaker Request', 'wordcamporg' ),
     462                            __( 'Name', 'wordcamporg' ),
     463                            __( 'Email', 'wordcamporg' ),
     464                            __( 'Topic(s) You would Like to Present On', 'wordcamporg' ),
     465                            __( 'Intended Audience', 'wordcamporg' ),
     466                            __( 'Past Speaking Experience (not necessary to apply)', 'wordcamporg' )
     467                        ) .
     468                    '</p>',
    371469                'status'  => 'draft',
    372470                'type'    => 'post',
     
    374472
    375473            array(
    376                 'title'   => 'Call for Volunteers',
    377                 'content' => "<p><em>Organizers note:</em> Make sure you update the 'to' address and other fields before publishing this page!</p> <p>Blurb with information for potential volunteers.</p> <p>[contact-form to='enter-your-address-here@example.net' subject='WordCamp Speaker Request'][contact-field label='Name' type='text' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Skills / Interests / Experience (not necessary to volunteer)' type='textarea' required='1'/][contact-field label='Number of Hours Available' type='text' required='1'/][contact-field label='Questions / Comments' type='textarea'/][/contact-form]</p>",
     474                'title'   => __( 'Call for Volunteers', 'wordcamporg' ),
     475                'content' =>
     476                    '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .
     477                    '<p>' . __( 'Blurb with information for potential volunteers.', 'wordcamporg' ) . '</p> ' .
     478                    '<p>' .
     479                        sprintf( '
     480                            [contact-form to="enter-your-address-here@example.net" subject="%s"]
     481                                [contact-field label="%s" type="text"     required="1" /]
     482                                [contact-field label="%s" type="email"    required="1" /]
     483                                [contact-field label="%s" type="textarea" required="1" /]
     484                                [contact-field label="%s" type="text"     required="1" /]
     485                                [contact-field label="%s" type="textarea"              /]
     486                            [/contact-form]',
     487                            __( 'WordCamp Speaker Request', 'wordcamporg' ),
     488                            __( 'Name', 'wordcamporg' ),
     489                            __( 'Email', 'wordcamporg' ),
     490                            __( 'Skills / Interests / Experience (not necessary to volunteer)', 'wordcamporg' ),
     491                            __( 'Number of Hours Available', 'wordcamporg' ),
     492                            __( 'Questions / Comments', 'wordcamporg' )
     493                        ) .
     494                    '</p>',
    378495                'status'  => 'draft',
    379496                'type'    => 'post',
     
    474591            if ( ! empty( $assigned_me_sponsors[ $sponsorship_level->ID ] ) ) {
    475592                $pages[] = array(
    476                     'title'   => sprintf( 'Thank you to our %s sponsors', $sponsorship_level->post_title ),
     593                    'title'   => sprintf( __( 'Thank you to our %s sponsors', 'wordcamporg' ), $sponsorship_level->post_title ),
    477594                    'content' => sprintf(
    478595                        '%s %s',
Note: See TracChangeset for help on using the changeset viewer.