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

« back to all changes in this revision

Viewing changes to applets/maintained/battery/battery.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:
23
23
import gtk
24
24
from gtk import gdk
25
25
 
26
 
from awn.extras import awnlib, __version__
 
26
from awn.extras import _, awnlib, __version__
27
27
from messagehandler import MessageHandler
28
28
 
29
29
try:
34
34
# Interval in seconds between two successive checks of the status
35
35
check_status_interval = 5.0
36
36
 
37
 
applet_name = "Battery Status"
38
 
applet_description = "An applet which displays battery information"
 
37
applet_name = _("Battery Status")
 
38
applet_description = _("An applet which displays battery information")
39
39
 
40
40
# Themed logo of the applet, used as the applet's icon and shown in the GTK About dialog
41
41
applet_theme_logo = "battery"
96
96
            self.set_battery_missing()
97
97
 
98
98
    def set_battery_missing(self):
99
 
        self.applet.tooltip.set("No batteries")
 
99
        self.applet.tooltip.set(_("No batteries"))
100
100
 
101
101
        icon = os.path.join(themes_dir, self.settings["theme"], "battery-missing.svg")
102
102
        self.applet.icon.file(icon, size=awnlib.Icon.APPLET_SIZE)
428
428
        "theme": applet_theme_logo,
429
429
        "author": "onox, Randal Barlow",
430
430
        "copyright-year": "2008 - 2009",
431
 
        "authors": ["onox <denkpadje@gmail.com>", "Randal Barlow <im.tehk at gmail.com>"]},
432
 
        ["settings-per-instance"])
 
431
        "authors": ["onox <denkpadje@gmail.com>", "Randal Barlow <im.tehk at gmail.com>"]})