WordPress.org

Make WordPress Core

Changeset 8418


Ignore:
Timestamp:
07/23/08 18:52:50 (7 years ago)
Author:
azaozz
Message:

Use conditional for whole sentence. Fixes #7385 for 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/admin-header.php

    r8414 r8418  
    7676<?php 
    7777if ( ! $is_opera ) {  
    78     $gears_menu = $is_safari ? __('the Safari menu') : __('your browser Tools menu'); 
    7978?> 
    8079    <div id="gears-info-box" class="info-box" style="display:none;"> 
     
    9291    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3> 
    9392    <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p>  
    94     <p><?php printf( __('To enable it, make sure this web site is not on the denied list in Gears Settings under %s, then click the button below.'), $gears_menu ); ?></p> 
     93    <p><?php  
     94     
     95    if ( $is_safari ) 
     96        _e('To enable it, make sure this web site is not on the denied list in Gears Settings under the Safari menu, then click the button below.'); 
     97    else 
     98        _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser Tools menu, then click the button below.');  
     99     
     100    ?></p> 
    95101    <p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p> 
    96102    <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button> 
     
    100106    <div id="gears-msg3" style="display:none;"> 
    101107    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3> 
    102     <p><?php printf( __('Gears is installed and enabled on this computer. You can disable it from %s.'), $gears_menu ); ?></p></p> 
     108    <p><?php 
     109     
     110    if ( $is_safari ) 
     111        _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.'); 
     112    else 
     113        _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.');  
     114     
     115    ?></p> 
    103116    <p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p> 
    104117    <p><?php _e('Local storage status:'); ?> <span id="gears-wait"><span style="color:#f00;"><?php _e('Please wait! Updating files:'); ?></span> <span id="gears-upd-number"></span></span></p> 
Note: See TracChangeset for help on using the changeset viewer.