hamster-applet r667 - in trunk: . hamster



Author: jojeda
Date: Tue Dec 30 01:53:42 2008
New Revision: 667
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=667&view=rev

Log:
Added i18n stuff to some missing strings on html reports

Modified:
   trunk/ChangeLog
   trunk/hamster/reports.py

Modified: trunk/hamster/reports.py
==============================================================================
--- trunk/hamster/reports.py	(original)
+++ trunk/hamster/reports.py	Tue Dec 30 01:53:42 2008
@@ -36,7 +36,7 @@
         title = _(u"Overview for %(start_B)s %(start_d)s â %(end_d)s, %(end_Y)s") % dates_dict
 
     if start_date == end_date:
-        title = _("Overview for %(start_B)s %(start_d)s, %(start_Y)s") % dates_dict
+        title = _(u"Overview for %(start_B)s %(start_d)s, %(start_Y)s") % dates_dict
     
 
     report_path = os.path.join(os.path.expanduser("~"), "%s.html" % title)
@@ -101,13 +101,13 @@
     
     report.write("""<table>
         <tr>
-            <th>Date</th>
-            <th class="largeCell">Activity</th>
-            <th>Category</th>
-            <th>Start</th>
-            <th>End</th>
-            <th>Duration</th>
-            <th class="largeCell">Description</th>
+            <th>""" + _("Date") + """</th>
+            <th class="largeCell">""" + _("Activity") + """</th>
+            <th>""" + _("Category") + """</th>
+            <th>""" + _("Start") + """</th>
+            <th>""" + _("End") + """</th>
+            <th>""" + _("Duration") + """</th>
+            <th class="largeCell">""" + _("Description") + """</th>
         </tr>""")
     
     #get id of last activity so we know when to show current duration
@@ -187,7 +187,7 @@
             rowcount = 2
         else:
             rowcount = 1       
-    report.write("    <tr><th colspan=\"2\" style=\"text-align:right;\">Total Time:</th><th>%s</th></tr>\n" % (stuff.format_duration(tot_time)))
+    report.write("    <tr><th colspan=\"2\" style=\"text-align:right;\">" + _("Total Time") + ":</th><th>%s</th></tr>\n" % (stuff.format_duration(tot_time)))
     report.write("</table>\n")
 
     report.write("</body>\n</html>")



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