diff --git a/classes/CSVExport.php b/classes/CSVExport.php index b92c6ba..7cd4027 100644 --- a/classes/CSVExport.php +++ b/classes/CSVExport.php @@ -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,