Skip to content

[Bug]: No translation in MimeTypeMigrationAvailable class #53691

@gaudryc

Description

@gaudryc

⚠️ This issue respects the following points: ⚠️

Bug description

The following strings are not translated (neither in the Web interface nor in the `occ setupchecks' command results) :

  • Mimetype migrations available
  • One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command occ maintenance:repair --include-expensive to perform the migrations.

Steps to reproduce

  1. Set a language to something other than English.
  2. Upgrade Nextcloud to version 31.0.6 (to get MIME type migrations)
  3. Run the 'occ setupchecks' command or display the Overview page.

Expected behavior

The two strings must be translated.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

Not needed

List of activated Apps

Not needed

Nextcloud Signing status

Not needed

Nextcloud Logs

Not needed

Additional info

This issue can affect all versions of Nextcloud due to its origin, as you can see in the following solution:

--- server-master/apps/settings/lib/SetupChecks/MimeTypeMigrationAvailable.php	2025-06-25 17:22:42.000000000 +0200
+++ server-master/apps/settings/lib/SetupChecks/MimeTypeMigrationAvailable.php	2025-06-26 09:34:01.000000000 +0200
@@ -18,13 +18,13 @@
 	private IL10N $l10n;
 
 	public function __construct(
 		IFactory $l10nFactory,
 		private RepairMimeTypes $repairMimeTypes,
 	) {
-		$this->l10n = $l10nFactory->get('core');
+		$this->l10n = $l10nFactory->get('settings');
 	}
 
 	public function getCategory(): string {
 		return 'system';
 	}
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions