- $these = implode(', ', $this->allowedExtensions);
- return ['error' => DI::l10n()->t('File has an invalid extension, it should be one of ') . $these . '.'];
+ return ['error' => DI::l10n()->t('File has an invalid extension, it should be one of %s.', implode(', ', $this->allowedExtensions))];