WordPress.org

Support

Support » Plugins and Hacks » Weather Underground » [Plugin: Weather Forecast – WP Wunderground] Turkish translation available

[Plugin: Weather Forecast – WP Wunderground] Turkish translation available

  • 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/

  • The topic ‘[Plugin: Weather Forecast – WP Wunderground] Turkish translation available’ is closed to new replies.
Skip to toolbar