aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redshift.c')
-rw-r--r--src/redshift.c6
1 files changed, 4 insertions, 2 deletions
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. */