diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-20 23:17:58 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-08-16 22:34:57 -0400 |
commit | 7027488b032734eda664e43e6f4a1a9d9c813776 (patch) | |
tree | 29793e88baa39ae1062bc9064f302ed5cba2f547 /src/redshift.c | |
parent | Merge pull request #92 from jonls/fix-91-makerule (diff) | |
download | redshift-ng-7027488b032734eda664e43e6f4a1a9d9c813776.tar.gz redshift-ng-7027488b032734eda664e43e6f4a1a9d9c813776.tar.bz2 redshift-ng-7027488b032734eda664e43e6f4a1a9d9c813776.tar.xz |
Fix #90: Print N/S and E/W in the location
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 6 |
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. */ |