Making WordPress.org

Ticket #2571: 2571.3.patch

File 2571.3.patch, 20.1 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/css-sanitization.php

     
    8484        <div class="notice notice-warning">
    8585                <p>
    8686                        <?php printf(
    87                                 __( 'WARNING: <code>@import</code> rules were stripped for security reasons.
    88                                 Please use <a href="%s">the Fonts tool</a> to add web fonts, and merge other stylesheets directly into your custom CSS.',
    89                                 'wordcamporg' ),
    90               admin_url( 'themes.php?page=wc-fonts-options' )
     87                                // translators: 1: '@import', 2: Fonts tool URL
     88                                __(
     89                                        'WARNING: %1$s rules were stripped for security reasons. Please use <a href="%2$s">the Fonts tool</a> to add web fonts, and merge other stylesheets directly into your custom CSS.',
     90                                        'wordcamporg'
     91                                ),
     92                                '<code>@import</code>',
     93                                admin_url( 'themes.php?page=wc-fonts-options' )
    9194            ); ?>
    9295                </p>
    9396        </div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/common/page-generate-badges.php

     
    77
    88<p>
    99        <?php _e(
    10                 'This tool will help you create personalized badges for attendees to wear during the event.
    11                 There are two methods for this, depending on your preferences:',
     10                'This tool will help you create personalized badges for attendees to wear during the event. There are two methods for this, depending on your preferences:',
    1211                'wordcamporg'
    1312        ); ?>
    1413</p>
     
    5049
    5150<p>
    5251        <?php printf(
     52                // translators: 1: Gravatar.com URL, 2: Notify tool URL
    5353                __(
    54                         'Regardless of which method you choose, you\'ll get the best results if you encourage attendees to create <a href="%s">Gravatar</a> accounts before you create the badges.
    55                         You can use <a href="%s">the Notify tool</a> to e-mail everyone.
    56                         Make sure to tell them to create their Gravatar account using the same e-mail address that provided when purchasing a ticket.',
     54                        'Regardless of which method you choose, you\'ll get the best results if you encourage attendees to create <a href="%1$s">Gravatar</a> accounts before you create the badges. You can use <a href="%2$s">the Notify tool</a> to e-mail everyone. Make sure to tell them to create their Gravatar account using the same e-mail address that provided when purchasing a ticket.',
    5755                        'wordcamporg'
    5856                ),
    5957                'https://gravatar.com',
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/indesign-badges/page-indesign-badges.php

     
    1515
    1616<p>
    1717        <?php _e(
    18                 "The process for building InDesign badges hasn't been automated yet, so it requires a developer to run a script.
    19                  That script will create a CSV file and will download Gravatar images for all attendees.
    20                  Once that's done, a designer can take those files into InDesign and use the Data Merge feature to create personalized badges for each attendee.",
     18                "The process for building InDesign badges hasn't been automated yet, so it requires a developer to run a script. That script will create a CSV file and will download Gravatar images for all attendees. Once that's done, a designer can take those files into InDesign and use the Data Merge feature to create personalized badges for each attendee.",
    2119                'wordcamporg'
    2220        ); ?>
    2321</p>
     
    2523<p>
    2624        <?php printf(
    2725                __(
    28                         'Full instructions are <a href="%s">available in the WordCamp Organizer Handbook</a>.
    29                         If you\'d prefer an easier way, <a href="%s">the HTML/CSS method</a> is much more automated at this time.',
     26                        'Full instructions are <a href="%s">available in the WordCamp Organizer Handbook</a>. If you\'d prefer an easier way, <a href="%s">the HTML/CSS method</a> is much more automated at this time.',
    3027                        'wordcamporg'
    3128                ),
    3229                'https://make.wordpress.org/community/handbook/wordcamp-organizer-handbook/first-steps/helpful-documents-and-templates/create-wordcamp-badges-with-gravatars/',
     
    3633
    3734<p>
    3835        <?php printf(
    39                 __( 'if you\'d like to help automate the InDesign process, you can contribute to <a href="%s">Meta ticket #262</a>.', 'wordcamporg' ),
     36                __( 'If you\'d like to help automate the InDesign process, you can contribute to <a href="%s">Meta ticket #262</a>.', 'wordcamporg' ),
    4037                'https://meta.trac.wordpress.org/ticket/262'
    4138        ); ?>
    4239</p>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php

     
    3232                                'title'      => __( 'Coming Soon Page', 'wordcamporg' ),
    3333
    3434                                'description' => __(
    35                                         'When enabled, the Coming Soon page will be displayed to logged-out users,
    36                                         giving you a chance to setup all of your content before your site is visible to the world.',
     35                                        'When enabled, the Coming Soon page will be displayed to logged-out users, giving you a chance to setup all of your content before your site is visible to the world.',
    3736                                        'wordcamporg'
    3837                ) . $GLOBALS['WCCSP_Settings']->render_admin_notices(),
    3938                        )
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/app/user-interface.php

     
    138138
    139139        if ( ! in_array( $parsed_url['host'], $trusted_hostnames, true ) ) {
    140140                throw new \Exception( sprintf(
    141                         __( 'Due to security constraints, only certain third-party platforms can be used,
    142                         and the URL you provided is not hosted by one of our currently-supported platforms.
    143                         To request that it be added, please <a href="%s">create a ticket</a> on Meta Trac.',
    144                         'wordcamporg' ),
     141                        // translators: %s: WordPress Meta Trac URL
     142                        __(
     143                                'Due to security constraints, only certain third-party platforms can be used. We currently only support GitHub, but more platforms can be added if there\'s interest from organizers. To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.',
     144                                'wordcamporg'
     145                        ),
    145146                        'https://meta.trac.wordpress.org/newticket'
    146147                ) );
    147148        }
     
    154155         * sanitized, which would further couple the plugin to Jetpack.
    155156         */
    156157        if ( '.css' !== substr( $parsed_url['path'], strlen( $parsed_url['path'] ) - 4, 4 ) ) {
    157                 throw new \Exception(
    158                         __( 'The URL must be a vanilla CSS file ending in <code>.css</code>.
    159                         If you\'d like to use SASS/LESS, please compile it into vanilla CSS on your server,
    160                         and then enter the URL for that file.',
    161                         'wordcamporg' )
    162                 );
     158                throw new \Exception( sprintf(
     159                        // translators: %s: '.css'
     160                        __(
     161                                'The URL must be a vanilla CSS file ending in %s. If you\'d like to use SASS/LESS, please compile it into vanilla CSS on your server, and then enter the URL for that file.',
     162                                'wordcamporg'
     163                        ),
     164                        '<code>.css</code>'
     165                ) );
    163166        }
    164167
    165168        /*
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-automated-synchronization.php

     
    66?>
    77
    88<p>
    9         <?php _e( "You don't have to manually synchronize the local file every time you make a change to the remote file;
    10         instead, you can setup a webhook to trigger synchronization automatically.", 'wordcamporg' ); ?>
     9        <?php _e(
     10                "You don't have to manually synchronize the local file every time you make a change to the remote file; instead, you can setup a webhook to trigger synchronization automatically.",
     11                'wordcamporg'
     12        ); ?>
    1113</p>
    1214
    1315<h2><?php _e( 'Setup', 'wordcamporg' ); ?></h2>
     
    3537</ol>
    3638
    3739<p>
    38         <?php _e( "If you're not using GitHub, your process will be different, but at the end of the day all you need to do
    39         is setup something to open an HTTP request to the payload URL above whenever your file changes.", 'wordcamporg' ); ?>
     40        <?php _e(
     41                "If you're not using GitHub, your process will be different, but at the end of the day all you need to do is setup something to open an HTTP request to the payload URL above whenever your file changes.",
     42                'wordcamporg'
     43        ); ?>
    4044</p>
    4145
    4246<h2><?php _e( 'Testing &amp; Troubleshooting', 'wordcamporg' ); ?></h2>
    4347
    4448<p>
    45         <?php _e( 'To test if the synchronization is working, make a change to the file, commit it, push it to GitHub,
    46         and then check the site to see if that change is active.', 'wordcamporg' ); ?>
     49        <?php _e(
     50                'To test if the synchronization is working, make a change to the file, commit it, push it to GitHub, and then check the site to see if that change is active.',
     51                'wordcamporg'
     52        ); ?>
    4753</p>
    4854
    4955<p>
    50         <?php _e( "If your change isn't active on WordCamp.org, edit the webhook and scroll down to the <strong>Recent Deliveries</strong> section,
    51         then open the latest delivery and look at the <strong>Response</strong> tab for any errors.", 'wordcamporg' ); ?>
     56        <?php _e(
     57                "If your change isn't active on WordCamp.org, edit the webhook and scroll down to the <strong>Recent Deliveries</strong> section, then open the latest delivery and look at the <strong>Response</strong> tab for any errors.",
     58                'wordcamporg'
     59        ); ?>
    5260</p>
    5361
    5462<p>
    5563        <?php printf(
    56                 __( 'If that doesn\'t help solve the problem, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 'wordcamporg' ),
     64                // translators: %s: WordPress Slack URL */
     65                __(
     66                        'If that doesn\'t help solve the problem, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.',
     67                        'wordcamporg'
     68                ),
    5769                'https://chat.wordpress.org'
    5870        ); ?>
    5971</p>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-basic-setup.php

     
    1313
    1414                <p>
    1515                        <?php printf(
    16                                 __( 'Due to security constraints, only certain third-party platforms can be used.
    17                                 We currently only support GitHub, but more platforms can be added if there\'s interest from organizers.
    18                                 To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.', 'wordcamporg' ),
     16                                // translators: %s: WordPress Meta Trac URL
     17                                __(
     18                                        'Due to security constraints, only certain third-party platforms can be used. We currently only support GitHub, but more platforms can be added if there\'s interest from organizers. To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.',
     19                                        'wordcamporg'
     20                                ),
    1921                                'https://meta.trac.wordpress.org/newticket'
    2022                        ); ?>
    2123                </p>
     
    3133                </p>
    3234
    3335                <p>
    34                         <?php _e( "If you're using GitHub, you can enter the URL in any of the following formats,
    35                         but we'll convert them to use the GitHub API.", 'wordcamporg' ); ?>
     36                        <?php _e(
     37                                "If you're using GitHub, you can enter the URL in any of the following formats, but we'll convert them to use the GitHub API.",
     38                                'wordcamporg'
     39                        ); ?>
    3640                </p>
    3741
    3842                <ul>
     
    5761                <p><?php _e( 'Click the <strong>Update</strong> button.', 'wordcamporg' ); ?></p>
    5862
    5963                <p>
    60                         <?php _e( "WordCamp.org will download the file, sanitize it, minify it, and store a local copy,
    61                         then enqueue the local copy as a stylesheet alongside your theme's default stylesheet.", 'wordcamporg' ); ?>
     64                        <?php _e(
     65                                "WordCamp.org will download the file, sanitize it, minify it, and store a local copy, then enqueue the local copy as a stylesheet alongside your theme's default stylesheet.",
     66                                'wordcamporg'
     67                        ); ?>
    6268                </p>
    6369        </li>
    6470
    6571        <li>
    66                 <?php _e( 'The local copy will need to be <strong>synchronized</strong> whenever you make a change to the file.
    67                 You can either update manually by pushing the <strong>Update</strong> button again, or update automatically by setting up a webhook.
    68                 For instructions on setting up a webhook, open the <strong>Automated Synchronization</strong> tab.', 'wordcamporg' ); ?>
     72                <?php _e(
     73                        'The local copy will need to be <strong>synchronized</strong> whenever you make a change to the file. You can either update manually by pushing the <strong>Update</strong> button again, or update automatically by setting up a webhook. For instructions on setting up a webhook, open the <strong>Automated Synchronization</strong> tab.',
     74                        'wordcamporg'
     75                ); ?>
    6976        </li>
    7077</ol>
    7178
    7279<p>
    7380        <?php printf(
    74                 __( 'If you run into any problems, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 'wordcamporg' ),
     81                // translators: %s: WordPress Slack URL */
     82                __(
     83                        'If you run into any problems, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.',
     84                        'wordcamporg'
     85                ),
    7586                'https://chat.wordpress.org'
    7687        ); ?>
    7788</p>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-overview.php

     
    1010?>
    1111
    1212<p>
    13         <?php _e( 'Remote CSS gives you a lot more flexibility in how you develop your site than the Core/Jetpack editor.
    14         For instance, you can:', 'wordcamporg' ); ?>
     13        <?php _e(
     14                'Remote CSS gives you a lot more flexibility in how you develop your site than the Core/Jetpack editor. For instance, you can:',
     15                'wordcamporg'
     16        ); ?>
    1517</p>
    1618
    1719<ul>
     
    2426</ul>
    2527
    2628<p>
    27         <?php _e( "You can use all of those tools, only some of them, or completely different ones.
    28         It's up to you how you choose to work.", 'wordcamporg' ); ?>
     29        <?php _e(
     30                "You can use all of those tools, only some of them, or completely different ones. It's up to you how you choose to work.",
     31                'wordcamporg'
     32        ); ?>
    2933</p>
    3034
    3135<p>
    32         <?php _e( "This tool works by fetching your CSS file from a remote server (like GitHub.com), sanitizing the CSS, minifying it,
    33         and then storing a local copy on WordCamp.org. The local copy is then enqueued as a stylesheet, either in addition to your theme's stylesheet,
    34         or as a replacement for it. The local copy of the CSS is synchronized with the remote file whenever you press the <strong>Update</strong> button,
    35         and you can also setup webhook notifications for automatic synchronization when the remote file changes.", 'wordcamporg' ); ?>
     36        <?php _e(
     37                "This tool works by fetching your CSS file from a remote server (like GitHub.com), sanitizing the CSS, minifying it, and then storing a local copy on WordCamp.org. The local copy is then enqueued as a stylesheet, either in addition to your theme's stylesheet, or as a replacement for it. The local copy of the CSS is synchronized with the remote file whenever you press the <strong>Update</strong> button, and you can also setup webhook notifications for automatic synchronization when the remote file changes.",
     38                'wordcamporg'
     39        ); ?>
    3640</p>
    3741
    3842<p>
    3943        <?php printf(
     44                // translators: %s: URL to Custom CSS section in the Customizer
    4045                __( 'If you\'re looking for something simpler, <a href="%s">the Core/Jetpack editor</a> is a great option.', 'wordcamporg' ),
    4146                esc_url( $custom_css_url )
    4247        ); ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-tips.php

     
    1919        </li>
    2020
    2121        <li>
    22                 <?php _e( "Don't use post IDs as selectors, because they can change between your development environment and production.
    23                 Instead, use the slug; e.g. <code>body.post-slug-call-for-volunteers</code>, or <code>body.wcb_speaker-slug-sergey-biryukov</code>.
    24                 Just make sure that you update your CSS if you rename a post.", 'wordcamporg' ); ?>
     22                <?php _e(
     23                        "Don't use post IDs as selectors, because they can change between your development environment and production. Instead, use the slug; e.g. <code>body.post-slug-call-for-volunteers</code>, or <code>body.wcb_speaker-slug-sergey-biryukov</code>. Just make sure that you update your CSS if you rename a post.",
     24                        'wordcamporg'
     25                ); ?>
    2526        </li>
    2627
    2728        <li>
     
    3334
    3435        <li>
    3536                <?php printf(
    36                         __( 'Upload your images to <a href="%s">the Media Library</a> rather than hosting them on 3rd party servers.
    37                         That way, visitors will avoid an extra DNS request,
    38                         and you won\'t have to worry about them going offline if there\'s a problem with the external server.', 'wordcamporg' ),
     37                        __(
     38                                'Upload your images to <a href="%s">the Media Library</a> rather than hosting them on 3rd party servers. That way, visitors will avoid an extra DNS request, and you won\'t have to worry about them going offline if there\'s a problem with the external server.',
     39                                'wordcamporg'
     40                        ),
    3941                        esc_url( $media_library_url )
    4042                ); ?>
    4143        </li>
    4244
    4345        <li>
    44                 <?php _e( "This tool plays nicely with the Core/Jetpack editor, and it's possible to use both.
    45                 If you do, the rules in the Core/Jetpack editor will take precedence.", 'wordcamporg' ); ?>
     46                <?php _e(
     47                        "This tool plays nicely with the Core/Jetpack editor, and it's possible to use both. If you do, the rules in the Core/Jetpack editor will take precedence.",
     48                        'wordcamporg'
     49                ); ?>
    4650        </li>
    4751</ul>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/page-remote-css.php

     
    2929        <?php endif; ?>
    3030
    3131        <p>
    32                 <?php _e(
    33                         'Remote CSS allows you to develop your CSS in any environment that you choose, and with whatever tools that you prefer.
    34                         <button type="button" id="wcrcss-open-help-tab" class="button-link">Open the Help tab</button> for detailed instructions.',
    35                         'wordcamporg'
     32                <?php printf(
     33                        // translators: %s: button attributes
     34                        __(
     35                                'Remote CSS allows you to develop your CSS in any environment that you choose, and with whatever tools that you prefer. <button %s>Open the Help tab</button> for detailed instructions.',
     36                                'wordcamporg'
     37                        ),
     38                        'type="button" id="wcrcss-open-help-tab" class="button-link"'
    3639                ); ?>
    3740        </p>
    3841