diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-28 14:33:11 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-28 14:33:11 -0500 |
commit | d281e0c1ed2e6f787c17f4b8b5eaad7a2c29f1fb (patch) | |
tree | c5ce3bf26ae0a4713e673df06b80e1cdc232760c /src/redshift.c | |
parent | location: Make translated string about recheck shared between all providers (diff) | |
download | redshift-ng-d281e0c1ed2e6f787c17f4b8b5eaad7a2c29f1fb.tar.gz redshift-ng-d281e0c1ed2e6f787c17f4b8b5eaad7a2c29f1fb.tar.bz2 redshift-ng-d281e0c1ed2e6f787c17f4b8b5eaad7a2c29f1fb.tar.xz |
redshift: Add translation comment to N,S,W,E strings
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/redshift.c b/src/redshift.c index 5f7d22b..c22826b 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -1178,12 +1178,25 @@ main(int argc, char *argv[]) provider->free(&location_state); if (verbose) { - /* TRANSLATORS: Append degree symbols after %f if possible. */ + /* TRANSLATORS: Abbreviation for `north' */ + const char *north = _("N"); + /* TRANSLATORS: Abbreviation for `south' */ + const char *south = _("S"); + /* TRANSLATORS: Abbreviation for `east' */ + const char *east = _("E"); + /* TRANSLATORS: Abbreviation for `west' */ + const char *west = _("W"); + + /* TRANSLATORS: Append degree symbols after %f if possible. + The string following each number is an abreviation for + north, source, east or west (N, S, E, W). */ printf(_("Location: %.2f %s, %.2f %s\n"), - fabs(lat), lat >= 0.f ? _("N") : _("S"), - fabs(lon), lon >= 0.f ? _("E") : _("W")); + fabs(lat), lat >= 0.f ? north : south, + fabs(lon), lon >= 0.f ? east : west); + printf(_("Temperatures: %dK at day, %dK at night\n"), day.temperature, night.temperature); + /* TRANSLATORS: Append degree symbols if possible. */ printf(_("Solar elevations: day above %.1f, night below %.1f\n"), transition_high, transition_low); |