diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/redshift-gtk/statusicon.py | 2 | ||||
-rw-r--r-- | src/redshift.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py index 2efbc07..3e66649 100644 --- a/src/redshift-gtk/statusicon.py +++ b/src/redshift-gtk/statusicon.py @@ -296,7 +296,7 @@ class RedshiftStatusIcon(object): elif key == 'Period': self.change_period(value) elif key == 'Location': - self.change_location(tuple(float(x) for x in value.split(', '))) + self.change_location(value.split(', ')) def child_stdout_line_cb(self, line): if line: 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. */ |