WordPress.org

Making WordPress.org

Changeset 4655


Ignore:
Timestamp:
01/13/2017 04:36:57 AM (3 years ago)
Author:
coreymckrill
Message:

WordCamp Dashboard Widgets: i18n for text strings

Fixes #2143
Props chandrapatel, coreymckrill

File:
1 edited

Legend:

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

    r4238 r4655  
    2525            wp_add_dashboard_widget(
    2626                'wordcamp_reminders',
    27                 'WordCamp Reminders',
     27                esc_html__( 'WordCamp Reminders', 'wordcamporg' ),
    2828                array( $this, 'render_wordcamp_reminders' )
    2929            );
     
    3232        wp_add_dashboard_widget(
    3333            'new_wordcamporg_tools',
    34             'New WordCamp.org Tools',
     34            esc_html__( 'New WordCamp.org Tools', 'wordcamporg' ),
    3535            array( $this, 'render_new_wordcamporg_tools' )
    3636        );
     
    171171        <ul class="ul-disc">
    172172            <?php if ( $this->need_central_about_info ) : ?>
    173                 <li>Please send us <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/your-page-on-central-wordcamp-org/">the "about" text and banner image</a> for your central.wordcamp.org page.</a></li>
     173                <li>
     174                    <?php
     175                        printf(
     176                            wp_kses(
     177                                __( 'Please send us <a href="%s">the "about" text and banner image</a> for your central.wordcamp.org page.', 'wordcamporg' ),
     178                                array( 'a' => array( 'href' => true ) )
     179                            ),
     180                            'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/your-page-on-central-wordcamp-org/'
     181                        );
     182                    ?>
     183                </li>
    174184            <?php endif; ?>
    175185
    176186            <?php if ( in_array( 'attendees', $this->needed_pages ) ) : ?>
    177                 <li>Tickets are on sale now! Don’t forget to <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/using-camptix-event-ticketing-plugin/#attendees-list">publish an Attendees page</a>, so everyone can see what amazing people are coming to your WordCamp.</li>
     187                <li>
     188                    <?php
     189                        printf(
     190                            wp_kses(
     191                                __( 'Tickets are on sale now! Don’t forget to <a href="%s">publish an Attendees page</a>, so everyone can see what amazing people are coming to your WordCamp.', 'wordcamporg' ),
     192                                array( 'a' => array( 'href' => true ) )
     193                            ),
     194                            'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/using-camptix-event-ticketing-plugin/#attendees-list'
     195                        );
     196                    ?>
     197                    </li>
    178198            <?php endif; ?>
    179199
    180200            <?php if ( in_array( 'schedule', $this->needed_pages ) ) : ?>
    181                 <li>Tickets sell a lot faster when people can see who's speaking at your WordCamp. How about <a href="https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/custom-tools-for-building-wordcamp-content/#schedule">publishing a schedule</a> today?</li>
     201                <li>
     202                    <?php
     203                        printf(
     204                            wp_kses(
     205                                __( 'Tickets sell a lot faster when people can see who&#8217;s speaking at your WordCamp. How about <a href="%s">publishing a schedule</a> today?', 'wordcamporg' ),
     206                                array( 'a' => array( 'href' => true ) )
     207                            ),
     208                            'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/web-presence/custom-tools-for-building-wordcamp-content/#schedule'
     209                        );
     210                    ?>
     211                </li>
    182212            <?php endif; ?>
    183213        </ul>
     
    193223
    194224        <p>
    195             <?php _e( "Here are some of the tools we've recently launched to help you organize:", 'wordcamporg' ); ?>
     225            <?php esc_html_e( 'Here are some of the tools we&#8217;ve recently launched to help you organize:', 'wordcamporg' ); ?>
    196226        </p>
    197227
    198228        <ul class="ul-disc">
    199             <li><a href="https://make.wordpress.org/community/2016/04/26/new-tool-for-creating-personalized-wordcamp-badges/">Create personalized attendee badges</a>.</li>
    200             <li><a href="https://make.wordpress.org/community/2016/03/01/new-automated-payments-and-invoicing/">Invoice sponsors, pay vendors, and get reimbursed</a>.</li>
    201             <li><a href="https://make.wordpress.org/community/2015/07/09/site-cloner-v1-is-now-available/">Quickly clone another WordCamp site</a> instead of building yours from scratch.</li>
    202             <li><a href="https://make.wordpress.org/community/2015/11/24/remote-css-plugin-launched-on-wordcamp-org/">Edit CSS in your local environment</a> and manage it in a GitHub repository.</li>
     229            <li>
     230                <a href="https://make.wordpress.org/community/2016/04/26/new-tool-for-creating-personalized-wordcamp-badges/">
     231                    <?php esc_html_e( 'Create personalized attendee badges.', 'wordcamporg' ); ?>
     232                </a>
     233            </li>
     234            <li>
     235                <a href="https://make.wordpress.org/community/2016/03/01/new-automated-payments-and-invoicing/">
     236                    <?php esc_html_e( 'Invoice sponsors, pay vendors, and get reimbursed.', 'wordcamporg' ); ?>
     237                </a>
     238            </li>
     239            <li>
     240                <?php
     241                    printf(
     242                        wp_kses(
     243                            __( '<a href="%s">Quickly clone another WordCamp site</a> instead of building yours from scratch.', 'wordcamporg' ),
     244                            array( 'a' => array( 'href' => true ) )
     245                        ),
     246                        'https://make.wordpress.org/community/2015/07/09/site-cloner-v1-is-now-available/'
     247                    );
     248                ?>
     249            </li>
     250            <li>
     251                <?php
     252                    printf(
     253                        wp_kses(
     254                            __( '<a href="%s">Edit CSS in your local environment</a> and manage it in a GitHub repository.', 'wordcamporg' ),
     255                            array( 'a' => array( 'href' => true ) )
     256                        ),
     257                        'https://make.wordpress.org/community/2015/11/24/remote-css-plugin-launched-on-wordcamp-org/'
     258                    );
     259                ?>
     260            </li>
    203261        </ul>
    204262
Note: See TracChangeset for help on using the changeset viewer.