From 7027488b032734eda664e43e6f4a1a9d9c813776 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 20 May 2014 23:17:58 +0200 Subject: Fix #90: Print N/S and E/W in the location --- src/redshift.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/redshift.c') diff --git a/src/redshift.c b/src/redshift.c index 6fc2895..e39caa3 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -1000,8 +1000,10 @@ main(int argc, char *argv[]) provider->free(&location_state); if (verbose) { - /* TRANSLATORS: Append degree symbols if possible. */ - printf(_("Location: %f, %f\n"), lat, lon); + /* TRANSLATORS: Append degree symbols after %f if possible. */ + printf(_("Location: %f %s, %f %s\n"), + fabs(lat), lat >= 0.f ? _("N") : _("S"), + fabs(lon), lon >= 0.f ? _("E") : _("W")); printf(_("Temperatures: %dK at day, %dK at night\n"), temp_day, temp_night); /* TRANSLATORS: Append degree symbols if possible. */ -- cgit v1.2.3-70-g09d2