Skip to content

Commit 07c97bc

Browse files
authored
Merge pull request #4412 from nextcloud/backport/4411/stable31
[stable31] fix: translation format specifier
2 parents 5676ac6 + 7df3cac commit 07c97bc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/Conversion/ConversionProvider.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,18 @@ public function convertFile(File $file, string $targetMimeType): mixed {
148148
private function getMimeProvidersFor(array $inputMimeTypes, string $outputMimeType): array {
149149
$outputMimeInfo = $this->getMimeInfoFor($outputMimeType);
150150
if ($outputMimeInfo === null) {
151-
$this->logger->error($this->l10n->t('Unable to fetch information on $s', [$outputMimeType]));
151+
$this->logger->error(
152+
/*
153+
* TRANSLATORS
154+
* Shows the MIME type of the file (the file type)
155+
* For example:
156+
* - application/pdf (.pdf)
157+
* - application/msword (.doc)
158+
* - text/plain (.txt)
159+
*/
160+
$this->l10n->t('Unable to fetch information on %1$s',
161+
[$outputMimeType]
162+
));
152163
throw new \Exception();
153164
}
154165

0 commit comments

Comments
 (0)