Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.5
-
Fix Version/s: 3.4.6
-
Component/s: Internationalisation
-
Labels:None
Description
In french for example, choose a report with a date offset filter and validate, you'll see a label 'Between ... and ...'.
Attached patch adds a simple ts call around those labels.
Sorry, attachment doesn't work today (following error message : No files were attached. Please add your attachments again (lost during reload).)
Index: CRM/Report/Form.php
===================================================================
— CRM/Report/Form.php (rĂ©vision 36315)
+++ CRM/Report/Form.php (copie de travail)
@@ -1986,7 +1986,7 @@
if ( $from || $to ) {
$statistics['filters'][] =
array( 'title' => $field['title'],
- 'value' => "Between {$from} and {$to}" );
+ 'value' => ts("Between"). " {$from} ". ts("and") . " {$to}" );
} elseif ( in_array( $rel = CRM_Utils_Array::value( "{$fieldName}_relative", $this->_params ),
array_keys( $this->getOperationPair( CRM_Report_FORM::OP_DATE ) ) ) ) {
$pair = $this->getOperationPair( CRM_Report_FORM::OP_DATE );