Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-05-08 00:34:30 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-05-08 00:34:30 (GMT)
commit1c2d4603ef3748e9ac96dafce15c7bd7360ad26b (patch)
treedd65fe0d069e3b5efece9c344e10602a2357899c
parent5ce1f97ec6d144b90c2330e9d17b40a0e433d30e (diff)
Added pootle friendly string change to show current date information SL#2749
-rwxr-xr-xmoon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/moon.py b/moon.py
index f9eca9d..63d7f11 100755
--- a/moon.py
+++ b/moon.py
@@ -247,7 +247,8 @@ class MoonActivity(activity.Activity):
"""
self.data_model.update_moon_calculations(time.time())
information_string = ""
- information_string += _("Today's Moon Information\n\n")
+ information_string += _("Today's Moon Information\n\n")[:-2]
+ information_string += ":\n%s\n\n" % (time.strftime(LOCALE_DATE_FORMAT))
information_string += _("Phase:\n%s\n\n") % (self.data_model.moon_phase_name(self.data_model.phase_of_moon))
information_string += _("Julian Date:\n%.2f (astronomical)\n\n") % (self.data_model.julian_date)
information_string += _("Age:\n%(days).0f days, %(hours).0f hours, %(minutes).0f minutes\n\n") % {'days':self.data_model.days_old, 'hours':self.data_model.hours_old, 'minutes':self.data_model.minutes_old}