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.
git-svn-id: https://develop.svn.wordpress.org/trunk@22066 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1ee0534f98
commit
295237f41f
|
@ -115,20 +115,18 @@ function twentytwelve_scripts_styles() {
|
|||
|
||||
/* translators: If there are characters in your language that are not supported
|
||||
by Open Sans, translate this to 'off'. Do not translate into your own language. */
|
||||
if ( 'off' == _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
||||
|
||||
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
||||
$subsets = 'latin,latin-ext';
|
||||
|
||||
/* translators: To add an additional Open Sans character subset specific to your language, translate
|
||||
this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */
|
||||
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
|
||||
|
||||
$subset = _x( ' ', 'Open Sans font: add new subset (greek, cyrllic, vietnamese)', 'twentytwelve' );
|
||||
|
||||
if ( $subset == 'cyrillic' )
|
||||
if ( 'cyrillic' == $subset )
|
||||
$subsets .= ',cyrillic,cyrillic-ext';
|
||||
elseif ( $subset == 'greek' )
|
||||
elseif ( 'greek' == $subset )
|
||||
$subsets .= ',greek,greek-ext';
|
||||
elseif ( $subsets == 'vietnamese' )
|
||||
elseif ( 'vietnamese' == $subset )
|
||||
$subsets .= ',vietnamese';
|
||||
|
||||
$protocol = is_ssl() ? 'https' : 'http';
|
||||
|
|
Loading…
Reference in New Issue