hamster-applet r855 - branches/gnome-2-26/hamster



Author: tbaugis
Date: Thu Mar 12 18:17:05 2009
New Revision: 855
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=855&view=rev

Log:
reverting commit that i wanted actually to perform on HEAD

Modified:
   branches/gnome-2-26/hamster/db.py

Modified: branches/gnome-2-26/hamster/db.py
==============================================================================
--- branches/gnome-2-26/hamster/db.py	(original)
+++ branches/gnome-2-26/hamster/db.py	Thu Mar 12 18:17:05 2009
@@ -340,7 +340,7 @@
         """
         end_date = end_date or date        
 
-        return self.fetchall(query, (unicode(_("Unsorted")), date, end_date))
+        return self.fetchall(query, (_("Unsorted"), date, end_date))
 
     def __remove_fact(self, fact_id):
         query = """
@@ -702,13 +702,13 @@
         category_count = self.fetchone("select count(*) from categories")[0]
         
         if category_count == 0:
-            work_cat_id = self.__add_category(unicode(work_category["name"]))
+            work_cat_id = self.__add_category(_(work_category["name"]))
             for entry in work_category["entries"]:
-                self.__add_activity(unicode(entry), work_cat_id)
+                self.__add_activity(_(entry), work_cat_id)
         
-            nonwork_cat_id = self.__add_category(unicode(nonwork_category["name"]))
+            nonwork_cat_id = self.__add_category(_(nonwork_category["name"]))
             for entry in nonwork_category["entries"]:
-                self.__add_activity(unicode(entry), nonwork_cat_id)
+                self.__add_activity(_(entry), nonwork_cat_id)
         
         
         



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