diff options
author | Gary Martin <gary@garycmartin.com> | 2008-09-26 17:37:26 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2008-09-26 17:37:26 (GMT) |
commit | a1c12d0bcc924c9a222b63f865725a59a4f3ffb7 (patch) | |
tree | 8921fe30cec9f0bd6bc2e01686aa27b2dbeb0472 /moon.py | |
parent | 531fd3656bf8c467ca22eb1bd93c93dab8f0ead7 (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-x | moon.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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} |