Make WordPress Core

Ticket #21751: 21751.3.diff

File 21751.3.diff, 1.4 KB (added by obenland, 12 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    115115
    116116        /* translators: If there are characters in your language that are not supported
    117117           by Open Sans, translate this to 'off'. Do not translate into your own language. */
    118         if ( 'off' == _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
     118        if ( 'on' == _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
    119119
    120120                $subsets = 'latin,latin-ext';
    121121
    122122                /* translators: To add an additional Open Sans character subset specific to your language, translate
    123123                   this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */
     124                $subset = _x( ' ', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
    124125
    125                 $subset = _x( ' ', 'Open Sans font: add new subset (greek, cyrllic, vietnamese)', 'twentytwelve' );
    126 
    127                 if ( $subset == 'cyrillic' )
     126                if ( 'cyrillic' == $subset )
    128127                        $subsets .= ',cyrillic,cyrillic-ext';
    129                 elseif ( $subset == 'greek' )
     128                elseif ( 'greek' == $subset )
    130129                        $subsets .= ',greek,greek-ext';
    131                 elseif ( $subsets == 'vietnamese' )
     130                elseif ( 'vietnamese' == $subset )
    132131                        $subsets .= ',vietnamese';
    133132
    134133                $protocol = is_ssl() ? 'https' : 'http';