locale_translation_check_projects() should return batch or NULL.

Created on 21 January 2015, over 10 years ago
Updated 28 April 2025, 4 months ago
/**
 * Check for the latest release of project translations.
 *
 * @param array $projects
 *   Array of project names to check. Defaults to all translatable projects.
 * @param string $langcodes
 *   Array of language codes. Defaults to all translatable languages.
 *
 * @return array
 *   Available sources indexed by project and language.
 *
 * @todo Return batch or NULL.
 */
function locale_translation_check_projects($projects = array(), $langcodes = array()) {

The @return annotation is incorrect because the @todo was never done.

Note that the @return will be removed in #1807062: Add missing type hinting to Locale module docblocks β†’ and can be re-added here as needed.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

locale.module

Created by

πŸ‡ΊπŸ‡ΈUnited States mile23 Seattle, WA

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • Status changed to Active about 11 hours ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Checking the code there still appears to be a todo. But since this ticket was created :void has been added which seems more correct.

    So lets remove the todo and update the summary

    Tagging as novice as seems like a great task.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave
Production build 0.71.5 2024