hamster-applet r596 - trunk/hamster



Author: tbaugis
Date: Fri Oct 24 12:46:18 2008
New Revision: 596
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=596&view=rev

Log:
hinting strings containing dash as unicode, 
so they get picked up on translations

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

Modified: trunk/hamster/reports.py
==============================================================================
--- trunk/hamster/reports.py	(original)
+++ trunk/hamster/reports.py	Fri Oct 24 12:46:18 2008
@@ -26,11 +26,11 @@
     
     
     if start_date.year != end_date.year:
-        title = _("Overview for %(start_B)s %(start_d)s, %(start_Y)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
+        title = _(u"Overview for %(start_B)s %(start_d)s, %(start_Y)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
     elif start_date.month != end_date.month:
-        title = _("Overview for %(start_B)s %(start_d)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
+        title = _(u"Overview for %(start_B)s %(start_d)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
     else:
-        title = _("Overview for %(start_B)s %(start_d)s â %(end_d)s, %(end_Y)s") % dates_dict
+        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

Modified: trunk/hamster/stats.py
==============================================================================
--- trunk/hamster/stats.py	(original)
+++ trunk/hamster/stats.py	Fri Oct 24 12:46:18 2008
@@ -271,17 +271,17 @@
             # overview label if start and end years don't match
             # letter after prefixes (start_, end_) is the one of
             # standard python date formatting ones- you can use all of them
-            overview_label = _("Overview for %(start_B)s %(start_d)s, %(start_Y)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
+            overview_label = _(u"Overview for %(start_B)s %(start_d)s, %(start_Y)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
         elif self.start_date.month != self.end_date.month:
             #overview label if start and end month do not match
             # letter after prefixes (start_, end_) is the one of
             # standard python date formatting ones- you can use all of them
-            overview_label = _("Overview for %(start_B)s %(start_d)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
+            overview_label = _(u"Overview for %(start_B)s %(start_d)s â %(end_B)s %(end_d)s, %(end_Y)s") % dates_dict
         else:
             #overview label for interval in same month
             # letter after prefixes (start_, end_) is the one of
             # standard python date formatting ones- you can use all of them
-            overview_label = _("Overview for %(start_B)s %(start_d)s â %(end_d)s, %(end_Y)s") % dates_dict
+            overview_label = _(u"Overview for %(start_B)s %(start_d)s â %(end_d)s, %(end_Y)s") % dates_dict
 
         if self.day_view.get_active():
             # overview label for single day



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