Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/redshift-gtk/statusicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def child_key_change_cb(self, key, value):
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:
Expand Down
6 changes: 4 additions & 2 deletions src/redshift.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down