WordPress.org

Plugin Directory

Changeset 621847


Ignore:
Timestamp:
11/06/12 22:31:15 (18 months ago)
Author:
knutsp
Message:

Updated to version 1.1

Location:
weather-forecast-shortcode/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • weather-forecast-shortcode/trunk/class.yrdisplay.php

    r615593 r621847  
    161161        <thead> 
    162162          <tr> 
    163             <th class="v" colspan="3"><strong>Varsel for $name</strong></th> 
    164             <th>Nedb&oslash;r</th> 
    165             <th>Temp.</th> 
    166             <th class="v">Vind</th> 
    167             <th>Vindstyrke</th> 
     163            <th scope="col" class="v" colspan="3"><strong>Varsel for $name</strong>&nbsp;</th> 
     164            <th scope="col">Nedbør&nbsp;</th> 
     165            <th scope="col">Temp.</th> 
     166            <th scope="col" class="v">Vind</th> 
     167            <th scope="col">Vindstyrke</th> 
    168168          </tr> 
    169169        </thead> 
     
    177177        <thead> 
    178178          <tr> 
    179             <th class="v" colspan="3"><strong>Forecast for $name</strong></th> 
    180             <th>Precip.</th> 
    181             <th>Temp.</th> 
    182             <th class="v">Wind</th> 
    183             <th>speed</th> 
     179            <th scope="col" class="v" colspan="3"><strong>Forecast for $name</strong>&nbsp;</th> 
     180            <th scope="col">Precip.</th> 
     181            <th scope="col">Temp.</th> 
     182            <th scope="col" class="v">Wind</th> 
     183            <th scope="col">speed</th> 
    184184          </tr> 
    185185        </thead> 
     
    239239                    else $rain=round($rain); 
    240240                } 
    241                 $rain.=" mm"; 
     241                $rain.="&nbsp;mm"; 
    242242                // Behandle vind 
    243243                $winddir=round($yr_var3['WINDDIRECTION'][0]['ATTRIBUTES']['DEG']/22.5); 
    244                 $winddirtext=$this->yr_vindrettninger[$winddir]; 
    245                 $winddirtext = strtolower(utf8_encode($yr_var3['WINDDIRECTION'][0]['ATTRIBUTES']['NAME'])); // knutsp 
     244//              $winddirtext=$this->yr_vindrettninger[$winddir]; 
     245//              $winddirtext = strtolower(utf8_encode($yr_var3['WINDDIRECTION'][0]['ATTRIBUTES']['NAME'])); // knutsp 
     246                 
     247                $winddirtext = $yr_var3['WINDDIRECTION'][0]['ATTRIBUTES']['NAME'];  // knutsp 
     248                $winddirtext = mb_convert_encoding( $winddirtext, 'UTF-8', 'UTF-8, ISO-8859-1' );   // knutsp 
     249                if ( $this->lang=='nb' ) 
     250                    $winddirtext = strtolower( $winddirtext );  // knutsp 
    246251                // Behandle temperatur 
    247252                $temper=round($yr_var3['TEMPERATURE'][0]['ATTRIBUTES']['VALUE']); 
     
    265270            <td><img src="$this->yr_imgpath/$imgvar.png" width="38" height="38" alt="$s" /></td> 
    266271            <td>$rain</td> 
    267             <td class="$tempclass">$temper &deg;C</td> 
     272            <td class="$tempclass">$temper&nbsp;&deg;C</td> 
    268273            <td class="v">$w $from $winddirtext</td> 
    269             <td>$r m/s</td> 
     274            <td>$r&nbsp;m/s</td> 
    270275          </tr> 
    271276 
  • weather-forecast-shortcode/trunk/index.php

    r615664 r621847  
    77terms and conditions stated by yr.no. More info at <a href="http://om.yr.no/verdata/free-weather-data/">yr.no</a>. 
    88Author: Knut Sparhell and Lennart André Rolland 
    9 Version: 1.0 
     9Version: 1.1 
    1010Author URI: http://nytt-nettsted.no/om-oss/ 
    1111*/ 
  • weather-forecast-shortcode/trunk/readme.txt

    r616745 r621847  
    4949* timeout (max seconds to wait for yr.no, defaults to 10) 
    5050 
     51= Languages fully supported = 
     52 
     53* English [en_US] 
     54* Norwegian (bokmål) [nb_NO] 
     55 
     56Other languages available on yr.no will work, somewhat mixed with English text 
     57 
    5158= Caching = 
    5259 
     
    6067== Changelog == 
    6168 
     69= 1.1 = 
     70 
     71* Improved character set handling and conversion for UTF-8 versus ISO-8859-1. 
     72* Added a non-breaking space between: 
     73** rain value and mm unit 
     74** wind value and m/s unit 
     75** temeprature value and degrees unit sign 
     76 
    6277= 1.0 = 
    6378* Initial release. 
Note: See TracChangeset for help on using the changeset viewer.