WordPress.org

Plugin Directory

Changeset 621859


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

Added English links

File:
1 edited

Legend:

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

    r621847 r621859  
    101101      $this->ht.=<<<EOT 
    102102      <h2><a href="$url" target="$target">V&aelig;rvarsel for $this->yr_name</a></h2> 
    103       <p><a href="http://www.yr.no/" target="$target"><strong>V&aelig;rvarsel fra yr.no, levert av Meteorologisk institutt og NRK.</strong></a></p> 
     103      <p><a href="http://www.yr.no/" target="$target" title="Til yr.no for full værmelding"><strong>Værvarsel fra yr.no, levert av Meteorologisk institutt og NRK.</strong></a></p> 
    104104 
    105105EOT 
     
    108108      $this->ht.=<<<EOT 
    109109      <h2><a href="$url" target="$target">Forecast for $this->yr_name</a></h2> 
    110       <p><a href="http://www.yr.no/" target="$target"><strong>Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK.</strong></a></p> 
     110      <p><a href="http://www.yr.no/" target="$target" title="To yr.no for complete forecast"><strong>Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK.</strong></a></p> 
    111111 
    112112EOT 
     
    141141        $url=YRComms::convertEncodingEntities($this->yr_url); 
    142142        // Spytt ut 
    143         $this->ht.=<<<EOT 
    144       <p class="yr-lenker">$this->yr_name p&aring; yr.no: 
    145         <a href="$url/" target="$target">Varsel med kart</a> 
     143      if ( $this->lang=='nb' ) { 
     144        $this->ht.=<<<EOT 
     145      <p class="yr-lenker">$this->yr_name på yr.no: 
    146146        <a href="$url/time_for_time.html" target="$target">Time for time</a> 
    147         <a href="$url/helg.html" target="$target">Helg</a> 
    148147        <a href="$url/langtidsvarsel.html" target="$target">Langtidsvarsel</a> 
     148        <a href="$url/radar.html" target="$target">Radar</a> 
     149        <a href="$url/avansert_kart.html" target="$target">Avansert kart</a> 
     150        <a href="$url/statistikk.html" target="$target">Været som var</a> 
    149151      </p> 
    150152 
    151153EOT 
    152154        ; 
     155      } else { 
     156        $this->ht.=<<<EOT 
     157      <p class="yr-lenker">$this->yr_name on yr.no: 
     158        <a href="$url/" target="$target">Overview</a> 
     159        <a href="$url/hour_by_hour.html" target="$target">Hour by hour</a> 
     160        <a href="$url/long.html" target="$target">Long term</a> 
     161        <a href="$url/radar.html" target="$target">Radar</a> 
     162        <a href="$url/advanced_map.html" target="$target">Advanced map</a> 
     163        <a href="$url/statistics.html" target="$target">Statistics</a> 
     164      </p> 
     165 
     166EOT 
     167        ; 
     168      } 
    153169    } 
    154170 
     
    248264                $winddirtext = mb_convert_encoding( $winddirtext, 'UTF-8', 'UTF-8, ISO-8859-1' );   // knutsp 
    249265                if ( $this->lang=='nb' ) 
    250                     $winddirtext = strtolower( $winddirtext );  // knutsp 
     266                    $winddirtext = mb_convert_case( $winddirtext, MB_CASE_LOWER );  // knutsp 
    251267                // Behandle temperatur 
    252268                $temper=round($yr_var3['TEMPERATURE'][0]['ATTRIBUTES']['VALUE']); 
Note: See TracChangeset for help on using the changeset viewer.