I have installed RC2 from scratch in English.
Than I added German as translation.
Translation has been imported and saved at sites\default\files\translations\drupal-8.0.0-rc2.de.po
If I search this file for msgid "Above the preview" I see the translation msgstr "Oberhalb der Vorschau" in the file.
If I open de/admin/structure/views/settings the string is not translated.
If I check admin/config/regional/translate for Above the preview the translation is missing.

It looks like the import is seriously broken.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hass created an issue. See original summary.

johnv’s picture

The same happens when you install a dev version. Somewhere (dont recall where) you can see which po file is loaded. The filename for the next (not yet existing) version is taken.

hass’s picture

Version: 8.0.0-rc2 » 8.0.x-dev
xjm’s picture

@alexpott came across this (or #2 at least) in #2614824: Tests fail when version constant is stable. According to @alexpott, the installer is looking for drupal-8.2.x.fr.po but it is actually drupal-8.2.0-dev.fr.po. Not sure if the OP was due to the same underlying bug or a different one (it's not entirely clear to me).

alexpott’s picture

@johnv did you install using Drush?

alexpott’s picture

Status: Active » Needs review
FileSize
1.53 KB

So the early installer translation downloading and import is not using the same fallback strategy as the regular translation downloading and import. This results in problems for the non-interactive installer - probably because of caching somewhere. However they should use the same fallback strategy so we don't create unnecessary files.

alexpott’s picture

The patch attached reverts #2614824: Tests fail when version constant is stable to hopefully shown that will the fix in #6 applied Drupal\node\Tests\NodeTypeTranslationTest will always fail.

Gábor Hojtsy’s picture

Issue tags: +D8MI, +sprint, +language-ui

The fix in #6 makes sense. It is indeed unfortunate that we don't use the same fallback code. It would be nice to open an issue about it and reference in the @todo.

Status: Needs review » Needs work

The last submitted patch, 7: 2600798-7.test-revert.patch, failed testing.

alexpott’s picture

Discussed the need to have code available to the installer and translation system with @dawehner - especially in relation to #2677532: Move drupal_check_incompatibility() functionality to a new Dependency class and Version component. We agreed that we should have an ExtensionVersioning component that can handle these sorts of things. It is a component because it should not have outside dependencies. It just a place to encapsulate all of our Drupal rules for manipulating version strings and checking them.

Tagging with random test failures as contrib tests might have the same issue as exposed by #2614824: Tests fail when version constant is stable it might look very random to them. This patch will make the behaviour consistent.

The last submitted patch, 10: 2600798-10.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 10: 2600798-10.patch, failed testing.

alexpott’s picture

Version: 8.0.x-dev » 8.1.x-dev
alexpott’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 10: 2600798-10.patch, failed testing.

alexpott’s picture

Status: Needs work » Needs review
FileSize
26.13 KB

Okay interesting - can't simplify the logic in locale_translation_build_projects()

johnv’s picture

@alexpott, to answer your question #5 to clarify my statement #2: I do not do drush. I download a Drupal version via website, and install with Acquia Dev Desktop 2.0.

xmj in #4 confirms and specifies my finding.

johnv’s picture

Title: Translation files import not working properly » Translation files import not working properly when installling dev-version
johnv’s picture

Status: Needs review » Needs work

The patches handle only dev versions. OP complains about the RC2-version, too.
Shouldn't the patch be amended with RC, ALFA and BETA suffixes?

alexpott’s picture

@johnv in #4 @xjm is just repeating what I told her :) and that was about the -dev issue :). Thanks for answering the question about Drush.

I'll test with an RC version number and see what happens.

alexpott’s picture

@johnv also I do not know how acquia dev desktop works - does it install the site or do you actually use the Drupal 8 installer? Because I suspect there is a difference between interactive and non-interactive install.

dawehner’s picture

+++ b/core/includes/install.core.inc
@@ -5,6 +5,7 @@
@@ -1415,7 +1416,7 @@ function _install_get_version_info($version) {

In an ideal world this function would also live inside the ExtensionVersioning namespace and would be tested. We change the behaviour here ...

alexpott’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
96.91 KB
95.02 KB

@johnv I can't repeat your precise issue...
Steps I've done:

  1. Edited \Drupal to have const VERSION = '8.2.0-rc1';
  2. Installed standard in English (using drush - which should not matter)
  3. Installed locale and language via drush
  4. Used the UI to add the German language - it went add did it's importing as expected.
  5. Went to admin/config/regional/translate and searched for "Above the preview" it found
  6. Went to de/admin/structure/views/settings and found the text translated

I think we should repurpose this issue to solve the early installer problem as the original issue reported is very similar but no longer appears to occur so perhaps we fixed it.

nonsie’s picture

For both Drush and manual install I was able to replicate the original issue.
Tested with 8.1.x-dev which results in drupal-8.1.x.de.po. The string appears both in the .po file, de/admin/structure/views/settings and admin/config/regional/translate.
8.1.1 results in drupal-8.1.1.de.po. The string appears both in the .po file, de/admin/structure/views/settings and admin/config/regional/translate.

Kristen Pol’s picture

Title: Translation files import not working properly when installling dev-version » Translation files import not working properly when installing dev version

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

vijaycs85’s picture

Status: Needs review » Postponed (maintainer needs more info)

@nonsie, I repeated same steps on #23(except I checked out tag 8.2.0-rc1) and can't reproduce the issue. Also compared drupal-8.2.0-rc1.de.po vs drupal-8.1.1.de.po and can't find any difference related to string "Above the preview". Could you check against 8.2.0-rc1 and update if you still facing the issue?

Gábor Hojtsy’s picture

Well, the theory was that #2113955: Rely on proper server side version fallback for translations fixed the dev version mapping once and for all.

As per @alexpott in #6:

So the early installer translation downloading and import is not using the same fallback strategy as the regular translation downloading and import. This results in problems for the non-interactive installer - probably because of caching somewhere. However they should use the same fallback strategy so we don't create unnecessary files.

This is still a possibility. @vijaycs85 did you check with drush to reproduce?

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

andypost’s picture

Status: Postponed (maintainer needs more info) » Needs work

I can reproduce it with composer install - when you install dev version or specific commit then no information exists in info.yml
It makes translation check/update to skip this modules

Probably it needs some changes in d-org packaging

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.