Changeset 1882

Show
Ignore:
Timestamp:
14/11/08 17:28:15 (8 weeks ago)
Author:
duncan
svm:headrev:

cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11164
Message:

Oneclick weather update for translations patch applied
Patch from Helmut Auer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • freevo/src/plugins/oneclick.py

    r1880 r1882  
    575575        """ gets the current conditions """ 
    576576        _debug_('getCurrentCondition()', 2) 
    577         return "%s" % (self.current_conditions) 
     577        return "%s" % (_(self.current_conditions)) 
    578578 
    579579    def getIcon(self): 
     
    594594    def getPressureChange(self): 
    595595        _debug_('getPressureChange()', 2) 
    596         return "%s" % (self.pressure_change) 
     596        return "%s" % (_(self.pressure_change)) 
    597597 
    598598    def getWind(self): 
     
    602602        elif self.wind_direction == 'VAR': 
    603603            return "%s %s %s %s" % (_('Variable'), _('at a rate of'), self.wind_speed, self.unit_s) 
    604         return "%s %s %s %s" % (self.wind_direction, _('at a rate of'), self.wind_speed, self.unit_s) 
     604        return "%s %s %s %s" % (_(self.wind_direction), _('at a rate of'), self.wind_speed, self.unit_s) 
    605605 
    606606    def getWindDir(self): 
     
    622622    def getUvIndex(self): 
    623623        _debug_('getUvIndex()', 2) 
    624         return "%s" % (self.uv_index) 
     624        return "%s" % (_(self.uv_index)) 
    625625 
    626626    def getUvType(self): 
    627627        _debug_('getUvType()', 2) 
    628         return "%s" % (self.uv_type) 
     628        return "%s" % (_(self.uv_type)) 
    629629 
    630630    def getDewPoint(self): 
     
    638638    def getMoonPhase(self): 
    639639        _debug_('getMoonPhase()', 2) 
    640         return "%s" % (self.moon_phase) 
     640        return "%s" % (_(self.moon_phase)) 
    641641 
    642642    def getSunrise(self): 
     
    10321032            y = y_start 
    10331033 
    1034             self.week_item(x, y, Unicode(self.parent.weather.date[day]), self.key_font, 160) 
     1034            self.week_item(x, y, _(Unicode(self.parent.weather.date[day])), self.key_font, 160) 
    10351035 
    10361036            self.draw_image(self.parent.weather.weatherIcon[day], 
     
    10381038 
    10391039            y = y_start + self.yscale(200) 
    1040             self.week_item(x, y, Unicode(self.parent.weather.weatherType[day]), self.small_font, 160) 
     1040            self.week_item(x, y, _(Unicode(self.parent.weather.weatherType[day])), self.small_font, 160) 
    10411041 
    10421042            y = y_start + self.yscale(240)