WordPress.org

Ready to get started?Download WordPress

Forums

Weather Forecast - WP Wunderground
Turkish translation available (1 post)

  1. gezginrocker
    Member
    Posted 1 year ago #

    Hello,

    Thanks to info provided by Zurd, I was able to translate plugin to Turkish.

    Usage:

    Go to plugin options, uncheck "Cache forecast results"

    Go to Plugins, Editor. Edit wunderground/wunderground.php & place the translation code after:

    $label = $this->format_date($date, $todaylabel, $datelabel);

    and before:

    $tablehead .= "\n\t\t\t\t\t\t\t".'<th scope="col" width="'.$colwi....

    Translation Code:

    if ( $label == 'Sunday' ) { $label = 'Pazar'; }
    else if ( $label == 'Monday' ) { $label = 'Pazartesi'; }
    else if ( $label == 'Tuesday' ) { $label = 'Salı'; }
    else if ( $label == 'Wednesday' ) { $label = 'Çarşamba'; }
    else if ( $label == 'Thursday' ) { $label = 'Perşembe'; }
    else if ( $label == 'Friday' ) { $label = 'Cuma'; }
    else if ( $label == 'Saturday' ) { $label = 'Cumartesi'; }

    if ( $conditions == 'Clear' ) { $conditions = 'Açık'; }
    else if ( $conditions == 'Partly Cloudy' ) { $conditions = 'Parçalı Bulutlu'; }
    else if ( $conditions == 'Overcast' ) { $conditions = 'Bulutlu'; }
    else if ( $conditions == 'Thunderstorm' ) { $conditions = 'Gökgürültülü Sağanak Yağışlı'; }
    else if ( $conditions == 'Chance of a Thunderstorm' ) { $conditions = 'Gökgürültülü Sağanak Yağış İhtimali'; }
    else if ( $conditions == 'Chance of Rain' ) { $conditions = 'Yağmur İhtimali'; }
    else if ( $conditions == 'Mostly Cloudy' ) { $conditions = 'Çok Bulutlu'; }
    else if ( $conditions == 'Scattered Clouds' ) { $conditions = 'Az Bulutlu'; }
    else if ( $conditions == 'Fog' ) { $conditions = 'Sisli'; }

    http://wordpress.org/extend/plugins/wunderground/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.