Making WordPress.org


Ignore:
Timestamp:
08/17/2017 10:12:36 PM (7 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.