'value' => views_handler_filter_date_value_form(),
'handler' => 'views_handler_filter_timestamp',
'option' => 'string',
- 'help' => t('This filter allows nodes to be filtered by the timestamp for the last comment or node edit. The "Value" can either be a date in the format: CCYY-MM-DD HH:MM:SS or the word "NOW" to use the current time. You may enter a positive or negative number in the "Option" field that will represent the amount of seconds that will be added or substracted to the time; this is most useful when combined with "NOW". If you have the jscalendar module from jstools installed, you can use a popup date picker here.'),
+ 'help' => t('This filter allows nodes to be filtered by the timestamp for the last comment or node edit.')
+ .' '. views_t_strings('filter date'),
),
'last_changed' => array(
'name' => t('Comment: Last Changed Time'),
'value' => views_handler_filter_date_value_form(),
'handler' => 'views_handler_filter_last_changed',
'option' => 'string',
- 'help' => t('This filter allows nodes to be filtered by the timestamp for the last comment or node edit. The "Value" can either be a date in the format: CCYY-MM-DD HH:MM:SS or the word "NOW" to use the current time. You may enter a positive or negative number in the "Option" field that will represent the amount of seconds that will be added or substracted to the time; this is most useful when combined with "NOW". If you have the jscalendar module from jstools installed, you can use a popup date picker here.'),
+ 'help' => t('This filter allows nodes to be filtered by the timestamp for the last comment or node edit.')
+ .' '. views_t_strings('filter date'),
),
),
'value' => views_handler_filter_date_value_form(),
'handler' => 'views_handler_filter_timestamp',
'option' => 'string',
- 'help' => t('This filter allows nodes to be filtered by their creation date. Enter dates in the format: CCYY-MM-DD HH:MM:SS. Enter \'now\' to use the current time. You may enter a delta (in seconds) to the option that will be added to the time; this is most useful when combined with now. If you have the jscalendar module from jstools installed, you can use a popup date picker here.'),
+ 'help' => t('This filter allows nodes to be filtered by their creation date.')
+ .' '. views_t_strings('filter date'),
),
'changed' => array(
'name' => t('Node: Updated Time'),
'value' => views_handler_filter_date_value_form(),
'handler' => 'views_handler_filter_timestamp',
'option' => 'string',
- 'help' => t('This filter allows nodes to be filtered by their creation date. Enter dates in the format: CCYY-MM-DD HH:MM:SS. Enter \'now\' to use the current time. You may enter a delta (in seconds) to the option that will be added to the time; this is most useful when combined with now. If you have the jscalendar module from jstools installed, you can use a popup date picker here.'),
+ 'help' => t('This filter allows nodes to be filtered by the time they were updated.')
+ .' '. views_t_strings('filter date'),
),
'body' => array(
'name' => t('Node: Body'),
);
break;
case 'date':
- $help = t('This filter allows nodes to be filtered by their creation date. Enter dates in the format: CCYY-MM-DD HH:MM:SS. Enter \'now\' to use the current time. You may enter a delta (in seconds) to the option that will be added to the time; this is most useful when combined with now. If you have the jscalendar module from jstools installed, you can use a popup date picker here.');
+ $help = t('This filter allows nodes to be filtered by their creation date.')
+ .' '. views_t_strings('filter date');
$others = array(
'operator' => 'views_handler_operator_gtlt',
//'value' => views_handler_filter_date_value_form(),
}
}
+
+/**
+ * This function is used as a central place to manage some translatable text strings
+ * that are used in different places.
+ * @param $text
+ * which string to return.
+ */
+function views_t_strings($text) {
+ switch ($text) {
+ case 'filter date':
+ return t('The "Value" can either be a date in the format: CCYY-MM-DD HH:MM:SS or the word "now" to use the current time. You may enter a positive or negative number in the "Option" field that will represent the amount of seconds that will be added or substracted to the time; this is most useful when combined with "now". If you have the jscalendar module from jstools installed, you can use a popup date picker here.');
+ }
+}