Skip to content

Commit

Permalink
Merge pull request #4411 from nextcloud/fix/translation-format-string
Browse files Browse the repository at this point in the history
fix: translation format specifier
  • Loading branch information
elzody authored Jan 24, 2025
2 parents 174a203 + 319d65b commit b100fc5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Conversion/ConversionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,18 @@ public function convertFile(File $file, string $targetMimeType): mixed {
private function getMimeProvidersFor(array $inputMimeTypes, string $outputMimeType): array {
$outputMimeInfo = $this->getMimeInfoFor($outputMimeType);
if ($outputMimeInfo === null) {
$this->logger->error($this->l10n->t('Unable to fetch information on $s', [$outputMimeType]));
$this->logger->error(
/*
* TRANSLATORS
* Shows the MIME type of the file (the file type)
* For example:
* - application/pdf (.pdf)
* - application/msword (.doc)
* - text/plain (.txt)
*/
$this->l10n->t('Unable to fetch information on %1$s',
[$outputMimeType]
));
throw new \Exception();
}

Expand Down

0 comments on commit b100fc5

Please sign in to comment.