Make WordPress Core


Ignore:
Timestamp:
03/26/2015 08:55:34 PM (10 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-admin/themes.php

    r31497 r31905  
    223223
    224224    <?php if ( $theme['active'] ) { ?>
    225         <h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
     225        <h3 class="theme-name" id="<?php echo $aria_name; ?>">
     226            <?php
     227            /* translators: %s: theme name */
     228            printf( __( '<span>Active:</span> %s' ), $theme['name'] );
     229            ?>
     230        </h3>
    226231    <?php } else { ?>
    227232        <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
     
    320325
    321326    <# if ( data.active ) { #>
    322         <h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
     327        <h3 class="theme-name" id="{{ data.id }}-name">
     328            <?php
     329            /* translators: %s: theme name */
     330            printf( __( '<span>Active:</span> %s' ), '{{ data.name }}' );
     331            ?>
     332        ></h3>
    323333    <# } else { #>
    324334        <h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
Note: See TracChangeset for help on using the changeset viewer.