Commit 33a2b658 authored by merlinofchaos's avatar merlinofchaos
Browse files

#110212: Round 2

parent abcacedd
......@@ -141,7 +141,8 @@ function comment_views_tables() {
'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'),
......@@ -149,7 +150,8 @@ function comment_views_tables() {
'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'),
),
),
......
......@@ -211,7 +211,8 @@ function node_views_tables() {
'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'),
......@@ -219,7 +220,8 @@ function node_views_tables() {
'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'),
......
......@@ -170,7 +170,8 @@ function profile_views_add_filter(&$table, $field) {
);
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(),
......
......@@ -1858,3 +1858,16 @@ function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed
}
}
/**
* 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.');
}
}
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