Commit 4cd58f92 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-2796: adding translation ability to event archive title

parent 3edfe5ee
......@@ -273,10 +273,10 @@ function uw_ct_event_views_pre_render(&$view) {
// If we dont have that format it is just YYYY.
if (preg_match('/[0-9]{4}-[0-9]{1,2}/', $date)) {
$display_date = date("F Y", strtotime($date));
$view->build_info['title'] = 'Events - ' . $display_date;
$view->build_info['title'] = t('Events - ' . $display_date);
}
else {
$view->build_info['title'] = 'Events - ' . $date;
$view->build_info['title'] = t('Events - ' . $date);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment