WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/26/2015 08:55:34 PM (6 years ago)
Author:
ocean90
Message:

Improve newly added strings for i18n:

  • Use a placeholder for the theme name to be able to reorder words.
  • Uppercase D for "Theme Details" to match existing strings.
  • Merge two revision date formats.
  • Add translator comment to strings with placeholders.

props obenland.
see #31776.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r31698 r31905  
    12141214
    12151215            <# if ( data.theme.active ) { #>
    1216                 <h3 class="theme-name" id="{{ data.theme.id }}-name"><span><?php _ex( 'Previewing:', 'theme' ); ?></span> {{ data.theme.name }}</h3>
     1216                <h3 class="theme-name" id="{{ data.theme.id }}-name">
     1217                    <?php
     1218                    /* translators: %s: theme name */
     1219                    printf( __( '<span>Previewing:</span> %s' ), '{{ data.theme.name }}' );
     1220                    ?>
     1221                </h3>
    12171222            <# } else { #>
    12181223                <h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
     
    12871292        <span class="reorder-toggle" tabindex="0">
    12881293            <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span>
    1289             <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer'  ); ?></span>
     1294            <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span>
    12901295        </span>
    12911296        <?php
Note: See TracChangeset for help on using the changeset viewer.