' var user = null; '.
(($actionName == 'showstream') ? ' user = scrapeUser(); ' : '') .
' var notices = scrapeNotices(user); ' .
- ' var canvas = $("#map_canvas")[0]; ' .
+ ' var canvas = $("#map_canvas")[0]; ' .
' if (typeof(canvas) != "undefined") { showMapstraction(canvas, notices); } '.
'});');
}
$action->elementStart('div', array('id' => 'entity_map',
'class' => 'section'));
+ // TRANS: Header for Map widget that displays a map with geodata for notices.
$action->element('h2', null, _m('Map'));
$action->element('div', array('id' => 'map_canvas',
$action->element('a', array('href' => $mapUrl),
// TRANS: Clickable item to allow opening the map in full size.
- _m("Full size"));
+ _m('Full size'));
$action->elementEnd('div');
}
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:Mapstraction',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Show maps of users\' and friends\' notices '.
'with <a href="http://www.mapstraction.com/">Mapstraction</a>.'));
return true;