Problem

  • Something goes completely wrong when installing Drupal in a different language than English — a single simple installer test takes 7 minutes to complete.

Potential causes

  1. Recursive batch [unsupported] triggered by translation download.
  2. Translation is re-downloaded in every single step of the installer.

Most likely, it's a combination of both (1) + (2), since the verbose browser output shows a (batch) ?id=2 in the install.php requests when the batch for installing the profile+modules is executed.

Comments

sun’s picture

Gábor Hojtsy’s picture

The download should happen when you pick the language from then on the downloaded file should be used. The downloaded file will be parsed multiple times until it can be imported to the database (much later in the process). Until then, all requests need translation so they will parse the file. There are multiple batches handling translation (#1993452: Fix confusing UX by merging "Translate configuration" into "Finish translations" task). Not sure where are the bugs and what are just side effects of how this works.

valthebald’s picture

I have just fresh-installed latest 8.x in English, Spanish and German.
English site: installation 1 min 10 sec
Spanish: installation 1 min 50 sec + 30 sec importing translations
German: installation 1 min 30 sec + 20 sec importing translations.
Is the issue still relevant?

myforgedoteu’s picture

I cannot reproduce, time are still correct and acceptable. I don't believe the issue is relevant anymore.

Gábor Hojtsy’s picture

Status: Active » Closed (cannot reproduce)

The original report was for the test system. But looks like it is not happening anymore. We made measures in the meantime to not download translations in most tests, even when testing the installer language features BTW. :)