diff options
author | Gary Martin <gary@garycmartin.com> | 2012-05-08 00:38:42 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2012-05-08 00:38:42 (GMT) |
commit | a0e51393aa48d0bf91132be29d127955e4ed5544 (patch) | |
tree | a589bb51394ba03d1aaa711da301c87ba032d185 | |
parent | 1c2d4603ef3748e9ac96dafce15c7bd7360ad26b (diff) |
Pootle friendly removal of some unwanted string newline padding.
-rwxr-xr-x | moon.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -258,7 +258,7 @@ class MoonActivity(activity.Activity): information_string += _("Next Full Moon:\n%(date)s in %(days).0f days\n\n") % {'date':time.strftime(LOCALE_DATE_FORMAT, time.localtime(self.data_model.next_full_moon_date)), 'days':self.data_model.days_until_full_moon} information_string += _("Next New Moon:\n%(date)s in %(days).0f days\n\n") % {'date':time.strftime(LOCALE_DATE_FORMAT, time.localtime(self.data_model.next_new_moon_date)), 'days':self.data_model.days_until_new_moon} information_string += _("Next Lunar eclipse:\n%(date)s in %(days).0f days\n\n") % {'date':time.strftime(LOCALE_DATE_FORMAT, time.localtime(self.data_model.next_lunar_eclipse_date)), 'days':self.data_model.days_until_lunar_eclipse} - information_string += _("Next Solar eclipse:\n%(date)s in %(days).0f days\n\n") % {'date':time.strftime(LOCALE_DATE_FORMAT, time.localtime(self.data_model.next_solar_eclipse_date)), 'days':self.data_model.days_until_solar_eclipse} + information_string += _("Next Solar eclipse:\n%(date)s in %(days).0f days\n\n")[:-2] % {'date':time.strftime(LOCALE_DATE_FORMAT, time.localtime(self.data_model.next_solar_eclipse_date)), 'days':self.data_model.days_until_solar_eclipse} self.info.set_markup(information_string) # Calculate time to next minute cusp and set a new timer |