Skip to content

Commit

Permalink
feat: add more context for translators
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody authored and backportbot[bot] committed Jan 24, 2025
1 parent 9ea1cc4 commit 7df3cac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Conversion/ConversionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ private function getMimeProvidersFor(array $inputMimeTypes, string $outputMimeTy
$outputMimeInfo = $this->getMimeInfoFor($outputMimeType);
if ($outputMimeInfo === null) {
$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]
));
Expand Down

0 comments on commit 7df3cac

Please sign in to comment.