Convert locale.compare.inc to a service

Created on 2 March 2019, over 5 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

Part of 🌱 [META] Remove all usages of drupal_static() & drupal_static_reset() Active effort. Removes drupal_static() from locale.compare.inc.

Proposed resolution

  • Move the logic from locale.compare.inc into a new service locale.project_status.
  • Deprecate all functions from locale.compare.inc.

Remaining tasks

None.

User interface changes

None.

API changes

  • New service locale.project_status with honouring the LocaleProjectStatusInterface interface.
  • Deprecated file: locale.compare.inc
  • Deprecated functions:
    • locale_translation_flush_projects()
    • locale_translation_build_projects()
    • locale_translation_project_list()
    • locale_translation_project_list()
    • _locale_translation_prepare_project_list()
    • locale_translation_default_translation_server()
    • locale_translation_check_projects()
    • locale_translation_check_projects_batch()
    • locale_translation_batch_status_build()
    • _locale_translation_batch_status_operations()
    • locale_translation_check_projects_local()

Data model changes

None.

Release notes snippet

N/A

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
LocaleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.71.5 2024