Improve installation language requirement descriptions and offline detection

Created on 9 February 2013, over 12 years ago
Updated 5 September 2025, about 19 hours ago

Problem/Motivation

In #1887046: Convert drupal_http_request usage in install.core.inc to Guzzle. β†’ (#31) the language requirement error description caused confusion. A website which could not connect to the translation server, probably due to a firewall, reported to be offline.
Currently the code does not differentiate between offline and not able to connect the translation server. Once the guzzle http library is being used for http requests (the mentioned issue) this becomes possible.

Proposed resolution

* Separately detect and report online/offline.
* Separately detect and report whether the translation server can be connected.

Test this patch in the following situations:

  • Drupal 8 located on a server behind a firewall which blocks HTTP access to ftp.drupal.org
  • Drupal 8 located on a server behind a proxy server which blocks HTTP access to ftp.drupal.org
  • Drupal 8 located on a (localhost) server with no connection to internet
  • Drupal 8 located on a (localhost) server with an unreliable internet connection. E.g. 3G while traveling
  • Install with a non-existing language code in the url. E.g. core/install.php?langcode=xyz
  • And finally ;) Drupal 8 located on a (localhost) server a normal internet connection installing in a regular language.

Check if the failure situation is correctly detected. Check if the help text is clear and helpfull.

Remaining tasks

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

Changing language requirements report.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

install system

Created by

πŸ‡³πŸ‡±Netherlands sutharsan

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • 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!

Production build 0.71.5 2024