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



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

Log:
ah, actually fixing the problem this time.

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 17:07:41 2009
@@ -340,7 +340,7 @@
         """
         end_date = end_date or date        
 
-        return self.fetchall(query, (_("Unsorted"), date, end_date))
+        return self.fetchall(query, (unicode(_("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(_(work_category["name"]))
+            work_cat_id = self.__add_category(unicode(work_category["name"]))
             for entry in work_category["entries"]:
-                self.__add_activity(_(entry), work_cat_id)
+                self.__add_activity(unicode(entry), work_cat_id)
         
-            nonwork_cat_id = self.__add_category(_(nonwork_category["name"]))
+            nonwork_cat_id = self.__add_category(unicode(nonwork_category["name"]))
             for entry in nonwork_category["entries"]:
-                self.__add_activity(_(entry), nonwork_cat_id)
+                self.__add_activity(unicode(entry), nonwork_cat_id)
         
         
         



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