text: Title: [BUG] Cms check show wrong error
  Body: <!--
  Please fill in each section below, otherwise, your issue will be closed.
  This info allows django CMS maintainers to diagnose (and fix!) your issue
  as quickly as possible.
  -->
  
  ## Description
  Wrong error with MIDDLEWARE_CLASSES after check command, with wrong middleware.
  
  ## Steps to reproduce
  First of:
  ```
  Package                          Version
  -------------------------------- -------
  ...
  Django                           5.0
  django-cms                       4.1.0
  ```
  
  
  When you accidentally write the wrong Middleware like:
  ```
  MIDDLEWARE = [
      ...
      "django:django.middleware.locale.LocaleMiddleware",  # not installed by default
      ...
  ]
  ```
  instead of middleware:
   `django.middleware.locale.LocaleMiddleware`
  after that, the command:
  `python manage.py cms check`
  will show an error:
  ```
  Middlewares
  ===========
  
    - django.middleware.locale.LocaleMiddleware middleware must be in MIDDLEWARE_CLASSES [ERROR]
  
  ```
  but it is not true, because MIDDLEWARE_CLASSES is deprecated in Django
  ## Expected behaviour
  
  
  error should be:
  ```
  Middlewares
  ===========
  
    - django.middleware.locale.LocaleMiddleware middleware must be in MIDDLEWARE [ERROR]
  
  ```
  ## Actual behaviour
  
  error:
  ```
  Middlewares
  ===========
  
    - django.middleware.locale.LocaleMiddleware middleware must be in MIDDLEWARE_CLASSES [ERROR]
  
  ```
  
  ## Screenshots
  If wrong:
  ![image](https://github.com/django-cms/django-cms/assets/61647680/1dcb0315-048d-4ed5-8c85-824b3b74393e)
  ![image](https://github.com/django-cms/django-cms/assets/61647680/083d73e0-27d8-4bca-a770-6c91c68930aa)
  if not wrong:
  ![image](https://github.com/django-cms/django-cms/assets/61647680/52201234-bf61-41ce-9459-285a4097e109)
  ![image](https://github.com/django-cms/django-cms/assets/61647680/617a501f-c452-4edb-b0b0-b33fedc0f3d5)
  ![image](https://github.com/django-cms/django-cms/assets/61647680/a1089e99-ec3e-4aca-8f92-fe4fe99a6caa)
  
  
  ## Additional information (CMS/Python/Django versions)
  ```
  pip list
  Package                          Version
  -------------------------------- -------
  annotated-types                  0.6.0
  asgiref                          3.7.2
  crispy-bootstrap5                2023.10
  Django                           5.0
  django-admin-rangefilter         0.12.0
  django-bootstrap-datepicker-plus 5.0.5
  django-classy-tags               4.1.0
  django-cleanup                   8.0.0
  django-cms                       4.1.0
  django-crispy-forms              2.1
  django-debug-toolbar             4.3.0
  django-formtools                 2.5.1
  django-sekizai                   4.1.0
  django-treebeard                 4.7.1
  djangocms-admin-style            3.3.0
  packaging                        23.2
  Pillow                           10.1.0
  pip                              22.0.2
  psycopg                          3.1.14
  psycopg-binary                   3.1.14
  pydantic                         2.6.0
  pydantic_core                    2.16.1
  setuptools                       59.6.0
  sqlparse                         0.4.4
  typing_extensions                4.9.0
  wheel                            0.37.1
  ```
  settings.py
  ```
  INSTALLED_APPS = [
      'e5_app',
      "djangocms_admin_style",
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rangefilter',
      'django_cleanup.apps.CleanupConfig',
      'bootstrap_datepicker_plus',
      'crispy_forms',
      'crispy_bootstrap5',
      'debug_toolbar',
      "django.contrib.sites",
      "cms",
      "menus",
      "treebeard",
      "sekizai"
  ]
  
  MIDDLEWARE = [
      'cms.middleware.utils.ApphookReloadMiddleware'
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'debug_toolbar.middleware.DebugToolbarMiddleware',
  
      "django.middleware.locale.LocaleMiddleware",  # not installed by default
  
      "cms.middleware.user.CurrentUserMiddleware",
      "cms.middleware.page.CurrentPageMiddleware",
      "cms.middleware.toolbar.ToolbarMiddleware",
      "cms.middleware.language.LanguageCookieMiddleware",
  ]
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
                  "cms.context_processors.cms_settings",
                  "django.template.context_processors.i18n",
                  "sekizai.context_processors.sekizai",
              ],
          },
      },
  ]
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': 'e5_db',
          'USER': 'django',
          'PASSWORD': 'django',
          'HOST': 'localhost',
          'PORT': '5432',
      }
  }
  
  LANGUAGES = [
      ("ru", "Russian"),
      ("en", "English"),
  ]
  
  LANGUAGE_CODE = 'ru'
  
  # For django-cms
  SITE_ID = 1
  CMS_CONFIRM_VERSION4 = True
  X_FRAME_OPTIONS = "SAMEORIGIN"
  ```
  ## Do you want to help fix this issue?
  
  <!-- 
  The django CMS project is managed and kept alive by its open source community and is backed by the [django CMS Association](https://www.django-cms.org/en/about-us/). We therefore welcome any help and are grateful if people contribute to the project. Please use 'x' to check the items below.
  -->
  
  * [ ] Yes, I want to help fix this issue and I will join #workgroup-pr-review on [Slack](https://www.django-cms.org/slack) to confirm with the community that a PR is welcome. 
  * [x] No, I only want to report the issue.
  