[hamster-applet] fix intltool warnings. fixes bug 605628



commit bc1fa4d47fe09fa5b8ac178abc6a593b82d9c018
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Dec 29 16:21:13 2009 +0000

    fix intltool warnings. fixes bug 605628

 hamster/charting.py              |    6 +++---
 hamster/eds.py                   |    2 +-
 hamster/graphics.py              |    4 ++--
 hamster/widgets/__init__.py      |    2 +-
 hamster/widgets/activityentry.py |    2 +-
 hamster/widgets/tags.py          |   12 ++++++------
 hamster/widgets/timeline.py      |    2 +-
 po/POTFILES.in                   |    1 -
 po/POTFILES.skip                 |    2 ++
 9 files changed, 17 insertions(+), 16 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index 5eed151..cc3ac36 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -177,7 +177,7 @@ class Chart(graphics.Area):
 
         self.show()
 
-        if not data: #if there is no data, let's just draw blank
+        if not data: #if there is no data, just draw blank
             self.redraw_canvas()
             return
 
@@ -347,7 +347,7 @@ class BarChart(Chart):
                               last_color)
 
 
-            if self.values_on_bars:  # it's either stack labels or values at the end for now
+            if self.values_on_bars:  # it is either stack labels or values at the end for now
                 if self.stack_keys:
                     total_value = sum(data[i])
                 else:
@@ -488,7 +488,7 @@ class HorizontalBarChart(Chart):
             self.fill_area(self.graph_x, self.graph_y, self.graph_width, self.graph_height, self.chart_background)
 
     
-        if not self.data:  #if we have nothing, let's go home
+        if not self.data:  # go home if we have nothing
             return
 
         positions = {}
diff --git a/hamster/eds.py b/hamster/eds.py
index 1e9a0aa..4a51abe 100644
--- a/hamster/eds.py
+++ b/hamster/eds.py
@@ -48,6 +48,6 @@ def get_eds_tasks():
                     if task.get_status() in [ecal.ICAL_STATUS_NONE, ecal.ICAL_STATUS_INPROCESS]:
                         tasks.append({'name': task.get_summary(), 'category' : category})
         return tasks
-    except Exception, e: # TODO's are not priority - print warning and go home
+    except Exception, e:
         logging.warn(e)
         return []
diff --git a/hamster/graphics.py b/hamster/graphics.py
index c0c32e3..6897e04 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -112,8 +112,8 @@ class Area(gtk.DrawingArea):
 
 
     def animate(self, object, params = {}, duration = None, easing = None, callback = None):
-        if duration: params["tweenTime"] = duration  # if none will fallback to tweener's default
-        if easing: params["tweenType"] = easing    # if none will fallback to tweener's default
+        if duration: params["tweenTime"] = duration  # if none will fallback to tweener default
+        if easing: params["tweenType"] = easing    # if none will fallback to tweener default
         if callback: params["onCompleteFunction"] = callback
         self.tweener.addTween(object, **params)
         self.redraw_canvas()
diff --git a/hamster/widgets/__init__.py b/hamster/widgets/__init__.py
index ab3b9a2..0a82f24 100644
--- a/hamster/widgets/__init__.py
+++ b/hamster/widgets/__init__.py
@@ -50,7 +50,7 @@ def add_hint(entry, hint):
             return self.real_get_text()
         
     def _set_hint(self, widget, event):
-        if self.get_text(): # don't mess with user entered text
+        if self.get_text(): # do not mess with user entered text
             return 
 
         self.modify_text(gtk.STATE_NORMAL, gtk.gdk.Color("gray"))
diff --git a/hamster/widgets/activityentry.py b/hamster/widgets/activityentry.py
index 7925e30..c1a5ece 100644
--- a/hamster/widgets/activityentry.py
+++ b/hamster/widgets/activityentry.py
@@ -147,7 +147,7 @@ class ActivityEntry(gtk.Entry):
         
         labels = [row[0] for row in model]
         shortest = min([len(label) for label in labels])
-        first = labels[0] #since we are looking for common prefix, we don't care which label we use for comparisons
+        first = labels[0] #since we are looking for common prefix, we do not care which label we use for comparisons
         
         for i in range(len(subject), shortest):
             letter_matching = all([label[i]==first[i] for label in labels])
diff --git a/hamster/widgets/tags.py b/hamster/widgets/tags.py
index f6d528c..a7cdb6c 100644
--- a/hamster/widgets/tags.py
+++ b/hamster/widgets/tags.py
@@ -272,7 +272,7 @@ class TagBox(graphics.Area):
         cur_x, cur_y = 4, 4
         for tag in self.tags:
             w, h = self.tag_size(tag)
-            if cur_x + w >= width - 5:  #if we don't fit, we wrap
+            if cur_x + w >= width - 5:  #if we do not fit, we wrap
                 cur_x = 5
                 cur_y += h + 6
             
@@ -283,7 +283,7 @@ class TagBox(graphics.Area):
         cur_x, cur_y = 4, 4
         for tag in self.tags:
             w, h = self.tag_size(tag)
-            if cur_x + w >= self.width - 5:  #if we don't fit, we wrap
+            if cur_x + w >= self.width - 5:  #if we do not fit, we wrap
                 cur_x = 5
                 cur_y += h + 6
             
@@ -317,7 +317,7 @@ class TagCellRenderer(gtk.GenericCellRenderer):
     def __init__(self):
         gtk.GenericCellRenderer.__init__(self)
         self.height = 0
-        self.width = None #that's like, two tags or something
+        self.width = None
         self.data = None
         
         self._font = pango.FontDescription(gtk.Style().font_desc.to_string())
@@ -374,7 +374,7 @@ class TagCellRenderer(gtk.GenericCellRenderer):
         cur_x, cur_y = 4, 2
         for tag in tags:
             w, h = self.tag_size(tag)
-            if cur_x + w >= self.width - 5:  #if we don't fit, we wrap
+            if cur_x + w >= self.width - 5:  #if we do not fit, we wrap
                 cur_x = 5
                 cur_y += h + 6
             
@@ -417,7 +417,7 @@ class TagCellRenderer(gtk.GenericCellRenderer):
             cur_x, cur_y = 4, 2
             for tag in tags:
                 w, h = self.tag_size(tag)
-                if cur_x + w >= self.width - 5:  #if we don't fit, we wrap
+                if cur_x + w >= self.width - 5:  #if we do not fit, we wrap
                     cur_x = 5
                     cur_y += h + 6
                 
@@ -425,7 +425,7 @@ class TagCellRenderer(gtk.GenericCellRenderer):
 
             cur_y += h + 3
     
-            self.height = cur_y # this should actually trigger whole tree redraw if heights don't match
+            self.height = cur_y # TODO - this should actually trigger whole tree redraw if heights do not match
         
         return (0, 0, min_width, self.height)
     
diff --git a/hamster/widgets/timeline.py b/hamster/widgets/timeline.py
index 06e07ca..a9b78f0 100644
--- a/hamster/widgets/timeline.py
+++ b/hamster/widgets/timeline.py
@@ -178,7 +178,7 @@ class TimeLine(graphics.Area):
             current_time += major_step
             x += major_tick_step
             
-            if current_time >= self.end_time: # TODO - fix the loop so we don't have to break
+            if current_time >= self.end_time: # TODO - fix the loop so we do not have to break
                 break
             
             if major_step < DAY:  # about the same day
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b5fbde1..17140d7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,7 +7,6 @@ data/Hamster_Applet.xml
 data/hamster-applet.schemas.in
 [type: gettext/glade]data/applet.ui
 [type: gettext/glade]data/stats.ui
-[type: gettext/glade]data/stats_overview.ui
 [type: gettext/glade]data/stats_reports.ui
 [type: gettext/glade]data/stats_stats.ui
 hamster/about.py
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index f4c4a42..efe47d0 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1 +1,3 @@
 data/Hamster_Applet.server.in
+data/hamster.ui
+hamster/standalone.py



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]