Front page Drupal core stat confusingly may represent D7, D9 or D10 depending on last release time

Created on 28 May 2015, over 9 years ago
Updated 15 November 2024, about 1 month ago

The front page stats (l10n_community_welcome_page()) uses l10n_community_get_l10n_packager_string_count() on localize.drupal.org to display stats of the featured project. l10n_community_get_l10n_packager_string_count() in turn picks the last release that has .po files exported with this query:

  if (empty($rid)) {
    $rid = db_query("SELECT pf.rid FROM {l10n_server_release} sr INNER JOIN {l10n_packager_file} pf ON sr.rid = pf.rid WHERE pid = :pid ORDER BY pf.rid DESC LIMIT 0, 1", array(':pid' => $pid))->fetchField();
  }

This is unfortunate for projects with multiple active release branches like core. The front page may show D6, D7 or D8 stats based on which release is the latest at the time (which is mostly arbitrary). So Drupal may show as VERY WELL translated (D6) or mostly well translated (D7) or not so much translated (D8). We should figure out a way to improve this so the stats don't fluctuate so much depending on last releases.

The trick is the module obviously wants to be agnostic of what projects it is being used for, so maybe we need to add something like a 'release series' input field to the featured release settings to limit which releases are looked at for the last ones. And also ideally print the information on which release was taken into account above or below the stats for clarity and transparency.

🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

User interface

Created by

🇭🇺Hungary Gábor Hojtsy Hungary

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.

Production build 0.71.5 2024