Merge pull request #53704 from nextcloud/backport/53695/stable31

[stable31] fix(settings): use correct scope for translations
This commit is contained in:
Andy Scherzinger 2025-07-03 15:26:05 +02:00 committed by GitHub
commit 56e18d6190
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,18 +10,15 @@ namespace OCA\Settings\SetupChecks;
use OC\Repair\RepairMimeTypes;
use OCP\IL10N;
use OCP\L10N\IFactory;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class MimeTypeMigrationAvailable implements ISetupCheck {
private IL10N $l10n;
public function __construct(
IFactory $l10nFactory,
private RepairMimeTypes $repairMimeTypes,
private IL10N $l10n,
) {
$this->l10n = $l10nFactory->get('core');
}
public function getCategory(): string {