Following up on #1260586: Consolidate .po file import to one directory, the installer now expects to find files with names like install.$langcode.po in your file system if you want the Drupal installation to proceed in a language other than English.
However, the on-screen instructions say nothing about files needing to follow that install.$langcode.po pattern; they just direct me to localize.drupal.org, where the files I can download don't match that pattern and therefore aren't recognized by the installer.
This needs to get resolved one way or another - not sure if the issue is with localize.drupal.org not being ready for D8 or something we need to change in the on-screen instructions or both.
Comment | File | Size | Author |
---|---|---|---|
#33 | 1392208-install_english-31.patch | 2.12 KB | steinmb |
#31 | 1392208-install_english-30.patch | 2.15 KB | steinmb |
#29 | 1392208-install_english-29.patch | 2.59 KB | steinmb |
#25 | 1392208-install_english-24.patch | 2.8 KB | Artusamak |
#24 | 1392208-install_english-24.patch | 2.8 KB | Artusamak |
Comments
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedSee also #1392174: install_find_translation_files() breaks if $langcode is passed
Comment #2
Gábor HojtsyYes, this functionality has a component of development on localize.drupal.org to introduce the public download of these files. Currently, these files are only possible to generate on the admin side of localize.drupal.org (and are committed to drupal.org git to be packaged with the l10n_install profile). Distro type projects should get install.po file downloads and the UI for these downloads should display the files. This does need some development on that side and is tracked in #1392330: Add installer .po file downloads for distro type projects.
Until that is done, the best instructions we could provide is to either symlink the core .po file also as installer.$langcode.po for the langcode in question or copy the file under that name. We can get in a quirky temporary install instruction if that looks like a good idea. I thought wordsmithing on interim, temporary solutions is a waste of time.
Comment #3
Gábor HojtsyTagging for D8MI.
Comment #4
catchCould we possibly add a change notice somewhere with the interim instructions, just to have somewhere to point to other than this issue?
I'm tempted to downgrade this and tag it with 'revisit before release' - we should ensure localize.drupal.org has compatible files before 8.0 ships, but I don't think there's much that's actionable in core to either make that happen or work around it if it doesn't.
Comment #5
catchTempted enough I'm going to do that for now.
Comment #6
David_Rothstein CreditAttribution: David_Rothstein commentedMakes sense as long as "revisit before release" actually gets revisited.... I don't think it did in Drupal 7 :)
A better status might be critical + postponed? Per Gábor's comment above, there is not much point in working on this now. However, we will have to make some change to core for this, since the current instructions are very unlikely to wind up being the correct ones regardless of what else happens in Drupal 8. We just don't know exactly what to change it to yet.
Comment #7
catchHeh, I had the same worry, so I opened #1393358: [META-12] Review 'revisit before release candidate' tag.
Critical/postponed might work, not sure whether 'normal' or 'postponed' makes it more or less hidden really (the less hidden the better IMO).
Comment #8
Gábor HojtsyTagging for base language system.
Comment #9
penyaskitoTagging for the sprint, I hope to see this on D8.
Comment #10
Gábor HojtsyMarked #1733766: Localized installation instructions are not self-explanatory as duplicate.
Comment #11
Gábor HojtsyRe-uploading @penyaskito's patch for review.
Comment #12
Gábor HojtsyI think a better short term solution might be to change the install.$langcode.po pattern to drupal-$version.$langcode.po pattern, where we don't check the version at all, just the langcode, so whatever version file we find there, we take that. Something like the attached (not tested). This is still temporary too, but avoids user work while we can just automate this.
Comment #14
penyaskitoThe assertions on the test needs to be changed. This is well test-covered btw :)
Comment #15
lazysoundsystem CreditAttribution: lazysoundsystem commentedI've just tested this and it's working fine.
Comment #16
lazysoundsystem CreditAttribution: lazysoundsystem commentedUnintentional status change from 'needs review' - switching back.
Comment #18
Gábor HojtsySo in the tests, the naming of the files are significant, because we are looking at whether the concerete files were found. Should rename the test installer files as well.
Comment #19
sxnc CreditAttribution: sxnc commentedRan the test locally as well, came back green and worked fine!
Comment #20
sxnc CreditAttribution: sxnc commentedupdating status~
Comment #21
webchickThat sounds like a great fix to me. :)
Committed and pushed to 8.x. Thanks!
Comment #22
LoMo CreditAttribution: LoMo commentedThere are still some issues in the remit of "Impossible to install Drupal in a non-English language when following the provided instructions":
1) It would be nice to just allow the file to be named (anything optional).langcode.po , i.e de.po or whatever.de.po Currently finding that the drupal-7.15.de.po file I downloaded did not get recognized if renamed to de.po, as has always worked in previous versions of Drupal.
2) In core/profiles/standard/translations, the README.txt file reads:
Putting a .po file (however it's named) in this location does NOT work.
3) The directions say to put the translation file in the sites/default/files/translations directory, which does not exist. Once created, files named according to the naming pattern (drupal-7.15.de.po) will be recognized there. Ideally, we should not have the core/profiles/standard/translations directory at all and perhaps as an interim solution, at least the README file should direct users to the correct location (sites/default/files/translations).
4) Assuming you have a second language enabled and install in it, the selector for that language is a bit odd:
Before adding a non-English translation file (normal):
After adding a translation file:
5) Finally (and I think I'll report this as a separate issue), if you install in one non-English language and make it your default, if you attempt to access /en/ paths, you may find that some of the interface text is still translated to the default (e.g. German) language.
Comment #23
ArtusamakI'm gonna test that.
Comment #24
Artusamak1/ The attached patch should fix it.
2 & 3/ The documentation hasn't been updated, the installer isn't looking in the installation profiles anymore we should no longer have those directories either the attached patch is removing them.
4/ I agree that the multiselect is weird and the dropdown is a pattern that makes more sense, we were using the size attribute to limit the size of the multiselect in case we had a ton of available languages, i don't think that for most of the users they will have more than 5 items so the dropdown is more usable in that situation.
Please test the patch :)
Comment #25
ArtusamakSorry for the double post.
Comment #26
BoobaaOkay, 1-2-3-4 is solved by the patch. But 5 needs to be addressed, too: I did have the same bug that was mentioned in #22, but when I changed to the non-English language I have installed with (Hungarian in my case) I could find English strings appearing every here and there that _are_ included in the .po file with proper translations.
Anyway, I don't know what's the proper step next, thus I don't touch the issue status.
Comment #27
bforchhammer CreditAttribution: bforchhammer commentedPatch looks good, but I'm not sure about the regex change in
install_find_translation_files()
... what happens if the user puts other translation files into the same folder? (e.g. for old versions of core, contrib modules etc.).The issue about translated text on english pages (en/ path) has also come up in #1738330-38: Confusing Language negotiation when accessing / and I also think will need its own issue.
Comment #28
bforchhammer CreditAttribution: bforchhammer commentedReverting unintentional status change.
Comment #29
steinmb CreditAttribution: steinmb commentedReverting this changes then i give false language option during installation if the user put module translation into this folder. Adding more details to INSTALL.txt to make sure the user uses the correct naming schema.
Comment #30
steinmb CreditAttribution: steinmb commentedComment #31
steinmb CreditAttribution: steinmb commentedOoobs, let's try that one more time without the stray line.
Comment #32
LoMo CreditAttribution: LoMo commentedConfirmed that everything covered here is now working, as expected. Part #5, I think, is unrelated enough it should have its own issue: #1741170: Installing with non-English language results in mix of languages in some part of the UI
Looking good! :-)
Comment #33
steinmb CreditAttribution: steinmb commentedImproved wording in INSTALL.txt
Comment #34
ArtusamakI was expecting #5 to be in a dedicated issue yes, the new wording looks great to me.
Comment #35
bforchhammer CreditAttribution: bforchhammer commentedLooks good to me as well.
Comment #36
webchickJust made a couple of small edits to the text in INSTALL.txt w/ the help of Gábor and Julien to make it more clear what the "x"s in that string meant:
Committed and pushed to 8.x. Thanks!
Comment #37
Gábor HojtsyThe changes documented here happened earlier so no changelog needed. Fully done for D8 and off the sprint. (Adding automated .po downloads will necessitate updating this instruction again, but that is a different issue).
Comment #39
ianthomas_ukA fix has been suggested and applied after the revisit tag was added, so the tag is no longer needed.