diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-04-10 01:49:25 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-04-10 01:49:25 +0200 |
commit | 86a3016a6f85b87fd26c8e61f3cb89c453404042 (patch) | |
tree | d491643e581540aed82d63190069e86ef992f134 /lib | |
parent | 518832da28456259bf9fc0030d26e1a090e30f67 (diff) |
Document messages for which clarification was requested.
Because N/S/E/W were on the same lines, and the "// TRANS:" comment must be directly above the line in which the message is located to work, I added the messages to a variable first.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/noticelist.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 4f997a328..b78550487 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -426,10 +426,18 @@ class NoticeListItem extends Widget if (empty($name)) { $latdms = $this->decimalDegreesToDMS(abs($lat)); $londms = $this->decimalDegreesToDMS(abs($lon)); + // TRANS: Used in coordinates as abbreviation of north + $north = _('N') + // TRANS: Used in coordinates as abbreviation of south + $south = _('S') + // TRANS: Used in coordinates as abbreviation of east + $east = _('E') + // TRANS: Used in coordinates as abbreviation of west + $west = _('W') $name = sprintf( _('%1$u°%2$u\'%3$u"%4$s %5$u°%6$u\'%7$u"%8$s'), - $latdms['deg'],$latdms['min'], $latdms['sec'],($lat>0?_('N'):_('S')), - $londms['deg'],$londms['min'], $londms['sec'],($lon>0?_('E'):_('W'))); + $latdms['deg'],$latdms['min'], $latdms['sec'],($lat>0? $north:$south)), + $londms['deg'],$londms['min'], $londms['sec'],($lon>0? $east:$west)); } $url = $location->getUrl(); |