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.
Comment | File | Size | Author |
---|---|---|---|
#23 | Screen Shot 2016-04-01 at 14.41.53.png | 95.02 KB | alexpott |
#23 | Screen Shot 2016-04-01 at 14.42.24.png | 96.91 KB | alexpott |
#16 | 2600798-16.patch | 26.13 KB | alexpott |
#10 | 2600798-10.patch | 26.64 KB | alexpott |
#10 | 6-10-interdiff.txt | 26.98 KB | alexpott |
Comments
Comment #2
johnvThe 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.
Comment #3
hass CreditAttribution: hass commentedComment #4
xjm@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 actuallydrupal-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).Comment #5
alexpott@johnv did you install using Drush?
Comment #6
alexpottSo 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.
Comment #7
alexpottThe 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.Comment #8
Gábor HojtsyThe 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.
Comment #10
alexpottDiscussed 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.
Comment #13
alexpottComment #14
alexpottComment #16
alexpottOkay interesting - can't simplify the logic in locale_translation_build_projects()
Comment #17
johnv@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.
Comment #18
johnvComment #19
johnvThe patches handle only dev versions. OP complains about the RC2-version, too.
Shouldn't the patch be amended with RC, ALFA and BETA suffixes?
Comment #20
alexpott@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.
Comment #21
alexpott@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.
Comment #22
dawehnerIn an ideal world this function would also live inside the ExtensionVersioning namespace and would be tested. We change the behaviour here ...
Comment #23
alexpott@johnv I can't repeat your precise issue...
Steps I've done:
const VERSION = '8.2.0-rc1';
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.
Comment #24
nonsieFor 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.
Comment #25
Kristen PolComment #27
vijaycs85@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?
Comment #28
Gábor HojtsyWell, 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:
This is still a possibility. @vijaycs85 did you check with drush to reproduce?
Comment #33
andypostI 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