Skip to content

Commit

Permalink
Include city/state/country in description.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 5, 2016
1 parent d9d008d commit 10c2394
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion horde/lib/Block/Metar.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ protected function _params()
$rows = $this->_weather->getLocations();
$locations = array();
foreach ($rows as $row) {
$locations[Horde_Nls_Translation::t($row['country'])][$row['icao']] = $row['name'];
$locations[Horde_Nls_Translation::t(Horde_Nls::getCountryISO($row['country']))][$row['icao']] = sprintf(
'%s (%s, %s, %s)',
$row['name'],
$row['municipality'],
$row['state'],
$row['country']
);
}
uksort($locations, 'strcoll');

Expand Down

0 comments on commit 10c2394

Please sign in to comment.