Error in translation on line 271 of commons_events_solr.module module

Fixed code:

/**
* Friendlier empty text when there are no events.
*/
function commons_events_solr_apachesolr_search_noresults() {
$destination = drupal_get_destination();
if ($destination['destination'] != 'events') {
// Have to call the actual function since we overrode it to use the current
// function instead.
return theme_apachesolr_search_noresults();
}
$options = array('!create' => t('create one'));
if (node_access('create', 'event')) {
$options['!create'] = l(t('create one'), 'node/add/event');
}
return t('There are no events. Be the first to !create!', $options);
}

Comments

devin carlson’s picture

Version: 7.x-3.23 » 7.x-3.x-dev
Status: Active » Fixed
Issue tags: -user interface bug, -translation

Thanks!

Tested and committed to Commons 7.x-3.x.

  • Devin Carlson committed ab3f846 on 7.x-3.x
    Issue #2460357: Fixed translation issue in Commons Events Solr.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.