Skip to content

Commit

Permalink
fixed: send export complete notification in recipient language
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 14, 2024
1 parent 14bc059 commit af810c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/CSVExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,13 @@ protected function complete(): void {
}

$owner = $this->getOwnerEntity();
$language = $owner instanceof \ElggUser ? $owner->getLanguage() : '';

$subject = elgg_echo('csv_exporter:notify:complete:subject', [$title]);
$subject = elgg_echo('csv_exporter:notify:complete:subject', [$title], $language);
$message = elgg_echo('csv_exporter:notify:complete:message', [
$title,
elgg_normalize_url($download_link),
]);
], $language);

$params = [
'object' => $this,
Expand Down

0 comments on commit af810c4

Please sign in to comment.