Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8905

In Civicrm Reports, the between {$from} and {$to} label isn't translated

    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 );

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              tonthon tonthon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified