Making WordPress.org

Changeset 5819


Ignore:
Timestamp:
08/17/2017 10:12:36 PM (6 years ago)
Author:
coreymckrill
Message:

WordCamp: Remove tabs and newlines from internationalized strings

  • Fix the issue for the remaining WordCamp.org strings.
  • Add translator comments for placeholders in the edited strings.
  • Remove some unnecessary HTML from the edited strings.

Fixes #2571
Props SergeyBiryukov

Location:
sites/trunk/wordcamp.org/public_html/wp-content
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/css-sanitization.php

    r4587 r5819  
    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>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/common/page-generate-badges.php

    r3015 r5819  
    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    ); ?>
     
    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        ),
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/indesign-badges/page-indesign-badges.php

    r4316 r5819  
    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    ); ?>
     
    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        ),
     
    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    ); ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php

    r5603 r5819  
    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(),
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/app/user-interface.php

    r5118 r5819  
    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        ) );
     
    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
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-automated-synchronization.php

    r2124 r5819  
    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
     
    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
     
    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    ); ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-basic-setup.php

    r3192 r5819  
    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            ); ?>
     
    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
     
    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>
     
    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    ); ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-overview.php

    r4578 r5819  
    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
     
    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 )
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-tips.php

    r4578 r5819  
    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
     
    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        ); ?>
     
    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

    r4578 r5819  
    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>
Note: See TracChangeset for help on using the changeset viewer.