~ubuntu-branches/ubuntu/maverick/awn-extras-applets/maverick

« back to all changes in this revision

Viewing changes to applets/maintained/cairo-clock/locations.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-08-29 14:29:52 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100829142952-rhvuetyms9bv5uu7
Tags: upstream-0.4.0+bzr1372
ImportĀ upstreamĀ versionĀ 0.4.0+bzr1372

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import glib
28
28
import pango
29
29
 
 
30
from awn.extras import _
 
31
 
30
32
try:
31
33
    from dateutil import tz
32
34
except ImportError:
137
139
        return tz is not None and gweather is not None
138
140
 
139
141
    def get_name(self):
140
 
        return "Locations"
 
142
        return _("Locations")
141
143
 
142
144
    def get_callback(self):
143
 
        return ("Edit", self.edit_action_cb)
 
145
        return (_("Edit"), self.edit_action_cb)
144
146
 
145
147
    def edit_action_cb(self):
146
148
        self.__applet.applet.dialog.toggle("preferences", "show")