summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/views_comment.inc6
-rw-r--r--modules/views_node.inc6
-rw-r--r--modules/views_profile.inc3
-rw-r--r--views.module13
4 files changed, 23 insertions, 5 deletions
diff --git a/modules/views_comment.inc b/modules/views_comment.inc
index ae582a3..8036659 100644
--- a/modules/views_comment.inc
+++ b/modules/views_comment.inc
@@ -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'),
),
),
diff --git a/modules/views_node.inc b/modules/views_node.inc
index 4c0c608..0f3133d 100644
--- a/modules/views_node.inc
+++ b/modules/views_node.inc
@@ -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'),
diff --git a/modules/views_profile.inc b/modules/views_profile.inc
index 58ba7fc..fb730ba 100644
--- a/modules/views_profile.inc
+++ b/modules/views_profile.inc
@@ -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(),
diff --git a/views.module b/views.module
index ce1ffa3..045d7f1 100644
--- a/views.module
+++ b/views.module
@@ -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.');
+ }
+}