Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #change line 293
- set input [string map "{%w2%} {${incith::weather::seperator}[ibold "Condições:"] [translate $html(conditions)]}" $input]
- #create the translate proc
- proc translate {condition} {
- proc translate {condition} {
- array set conditions {
- "Overcast" "Carregado"
- "Mostly Cloudy" "Encoberto"
- "Partly Cloudy" "Parcialmente nublado"
- "Cloudy" "Nublado"
- "Scattered Clouds" "Algumas nuvens"
- "Clear" "Limpo"
- "Heavy Thunderstorm Rain" "Forte tempestade"
- "Light Thunderstorm Rain" "Tempestade moderada"
- "Thunderstorm" "Temporal"
- "Thunderstorm Rain" "Temporal"
- "Blizzard" "Nevasca"
- "Rain" "Chuva"
- "Hevay Rain" "Chuva forte"
- "Haze" "Neblina"
- "Havey Haze" "Forte neblina"
- }
- set translatedCond $conditions($condition)
- if {[string length $translatedCond] == 0} {
- set translatedCond $condition
- }
- return $translatedCond
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement