Skip to content

Commit

Permalink
Merge pull request #732 from Project60/tsVariableStrings
Browse files Browse the repository at this point in the history
Fix `ts()` calls with variable strings
  • Loading branch information
bjendres authored Aug 19, 2024
2 parents 68a1f13 + 5f5eed6 commit 1aa047e
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 730 deletions.
2 changes: 1 addition & 1 deletion CRM/Sepa/Logic/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function loadFormatClass($fileFormatName) {
if ($file && file_exists($file)) {
require_once $file;
} else {
throw new Exception(ts("Class format file '{$file}' not found."));
throw new Exception("Class format file '{$file}' not found.");
}
$format_class = 'CRM_Sepa_Logic_Format_'.$fileFormatName;
return new $format_class($fileFormatName);
Expand Down
8 changes: 4 additions & 4 deletions CRM/Sepa/Logic/Queue/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ protected function __construct($cmd, $mode, $creditor_id = NULL, $offset = NULL,
break;

case 'UPDATE':
$this->title = ts("Process {$this->mode} mandates (%1-%2)",
array(1 => $this->offset, 2 => $this->offset+$this->limit, 'domain' => 'org.project60.sepa'));
$this->title = ts("Process %1 mandates (%2-%3)",
array(1 => $this->mode, 2 => $this->offset, 3 => $this->offset+$this->limit, 'domain' => 'org.project60.sepa'));
break;

case 'CLEANUP':
$this->title = ts("Cleaning up {$this->mode} groups",
array(1 => $this->offset, 2 => $this->offset+$this->limit, 'domain' => 'org.project60.sepa'));
$this->title = ts("Cleaning up %1 groups",
array(1 => $this->mode, 'domain' => 'org.project60.sepa'));
break;

case 'FINISH':
Expand Down
Loading

0 comments on commit 1aa047e

Please sign in to comment.