Ticket #9758: 9758-untranslated.diff

File 9758-untranslated.diff, 1.4 KB (added by Denis-de-Bernardy, 3 years ago)
  • wp-includes/functions.php

     
    31143114                $i++; 
    31153115        } 
    31163116 
    3117         asort($zonen); 
     3117        usort($zonen, create_function( 
     3118                '$a, $b', ' 
     3119                if ( $a["continent"] == $b["continent"] && $a["city"] == $b["city"] ) 
     3120                        return strnatcasecmp($a["subcity"], $b["subcity"]); 
     3121                elseif ( $a["continent"] == $b["continent"] ) 
     3122                        return strnatcasecmp($a["city"], $b["city"]); 
     3123                else 
     3124                        return strnatcasecmp($a["continent"], $b["continent"]); 
     3125                ')); 
     3126         
    31183127        $structure = ''; 
    31193128        $pad = '   '; 
    31203129 
     
    31383147                        if ( !empty($subcity) ) { 
    31393148                                $city = $city . '/'. $subcity; 
    31403149                        } 
    3141                         $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".str_replace('_',' ',$city)."</option>\n"; //Timezone 
     3150                        $display = str_replace('_',' ',$city); 
     3151                        if ( $continent == 'Etc' ) 
     3152                                $display = strtr($display, '+-', '-+'); 
     3153                        $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".$display."</option>\n"; //Timezone 
    31423154                } else { 
    31433155                        $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">".$continent."</option>\n"; //Timezone 
    31443156                }