Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/moon.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2008-09-26 17:37:26 (GMT)
committer Gary Martin <gary@garycmartin.com>2008-09-26 17:37:26 (GMT)
commita1c12d0bcc924c9a222b63f865725a59a4f3ffb7 (patch)
tree8921fe30cec9f0bd6bc2e01686aa27b2dbeb0472 /moon.py
parent531fd3656bf8c467ca22eb1bd93c93dab8f0ead7 (diff)
Added French locale by Bastien Guerry (thanks!)v7
Reduced frame padding to allow more space for longer French strings. Fixed encoding issue affecting one string in the po file for both FR and ES.
Diffstat (limited to 'moon.py')
-rwxr-xr-xmoon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/moon.py b/moon.py
index a23479c..ee58344 100755
--- a/moon.py
+++ b/moon.py
@@ -120,7 +120,7 @@ class MoonActivity(activity.Activity):
# Create Moon information panel
self.infoPanel = gtk.VBox()
- self.infoPanel.set_border_width(17)
+ self.infoPanel.set_border_width(10)
self.info = gtk.Label()
self.info.set_justify(gtk.JUSTIFY_LEFT)
self.infoPanel.pack_start(self.info, False, False, 0)
@@ -221,7 +221,7 @@ class MoonActivity(activity.Activity):
informationString += _("Age:\n%(days).0f days, %(hours).0f hours, %(minutes).0f minutes\n\n") % {'days':self.dataModel.daysOld, 'hours':self.dataModel.hoursOld, 'minutes':self.dataModel.minutesOld}
informationString += _("Lunation:\n%(phase).2f%% through lunation %(lunation)d\n\n") % {'phase':self.dataModel.phaseOfMoon * 100, 'lunation':self.dataModel.lunation}
informationString += _("Surface Visibility:\n%.0f%% (estimated)\n\n") % (self.dataModel.percentOfFullMoon * 100)
- informationString += _("Selenographic Terminator Longitude:\n%(deg).1f˚%(westOrEast)s (%(riseOrSet)s)\n\n") % {'deg':self.dataModel.selenographicDeg, 'westOrEast':self.dataModel.westOrEast, 'riseOrSet':self.dataModel.riseOrSet}
+ informationString += _(u"Selenographic Terminator Longitude:\n%(deg).1f\u00b0%(westOrEast)s (%(riseOrSet)s)\n\n") % {'deg':self.dataModel.selenographicDeg, 'westOrEast':self.dataModel.westOrEast, 'riseOrSet':self.dataModel.riseOrSet}
informationString += _("Next Full Moon:\n%(date)s in %(days).0f days\n\n") % {'date':time.ctime(self.dataModel.nextFullMoonDate), 'days':self.dataModel.daysUntilFullMoon}
informationString += _("Next New Moon:\n%(date)s in %(days).0f days\n\n") % {'date':time.ctime(self.dataModel.nextNewMoonDate), 'days':self.dataModel.daysUntilNewMoon}
informationString += _("Next Lunar eclipse:\n%(date)s in %(days).0f days\n\n") % {'date':time.ctime(self.dataModel.nextLunarEclipseDate), 'days':self.dataModel.daysUntilLunarEclipse}