WordPress.org

Make WordPress Core

Changeset 22066


Ignore:
Timestamp:
09/27/12 17:44:54 (3 years ago)
Author:
lancewillett
Message:

Twenty Twelve: better logic for on/off setting to be translated to turn off the font if translators explicitly say so. Also minor fixes to spelling and to use yoda comparison. Fixes #21751.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/functions.php

    r22052 r22066  
    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' ) ) { 
    119  
     118    if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { 
    120119        $subsets = 'latin,latin-ext'; 
    121120 
    122121        /* translators: To add an additional Open Sans character subset specific to your language, translate 
    123122           this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */ 
    124  
    125         $subset = _x( ' ', 'Open Sans font: add new subset (greek, cyrllic, vietnamese)', 'twentytwelve' ); 
    126  
    127         if ( $subset == 'cyrillic' ) 
     123        $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); 
     124 
     125        if ( 'cyrillic' == $subset ) 
    128126            $subsets .= ',cyrillic,cyrillic-ext'; 
    129         elseif ( $subset == 'greek' ) 
     127        elseif ( 'greek' == $subset ) 
    130128            $subsets .= ',greek,greek-ext'; 
    131         elseif ( $subsets == 'vietnamese' ) 
     129        elseif ( 'vietnamese' == $subset ) 
    132130            $subsets .= ',vietnamese'; 
    133131 
Note: See TracChangeset for help on using the changeset viewer.