-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation not available during installation #6717
Translation not available during installation #6717
Comments
Our current trouble is reliable reproduction. On some environments this problem occurs, but not on others. Ideally we'd figure out the culprit on some hosting. Otherwise it's tricky to fix. I'm one of those who can't reproduce it at all. @olafgrabienski do you have a playground webspace with failure? One that really doesn't matter to you? |
Yes, I have a testing site. Which code? |
Oops, this is trickier, that I thought. At this early stage both, debug() and var_dump() output gets silently swallowed. 😬
So, let's be rude: In file core/includes/install.core.inc around line 1570:
Add the line with This also means, the site won't install at all, but that shouldn't be a problem. |
Thanks for the debug code. The result (this time I tried to install in Italian):
|
Ohhhh.... 💡 Now I get it. It's the version string, that makes this fail. Silly me, I tested with a dev (1.x) - unaware that dev works as opposed to regular stable installs. 😬 |
Here's in incomplete PR for early testing: backdrop/backdrop#4873 @olafgrabienski this should fix the problem with installing - as long as this particular translation file already exists (that's why this still needs work). This also means: it's not at all related to hosting environments. It just worked for people testing with dev versions. This never worked for stable releases, because of the faulty (unstripped) version pattern. |
Updated to a more complete approach: backdrop/backdrop#4873 This now also works, if the translation file hasn't been generated, yet - be it because |
@indigoxela - I guess I have just tested the PR before you made the update. I was however able to install Backdrop in German. Does it make sense to test the updated PR, or not (may be not possible at the moment, as the translation files are available)? |
Oops, can happen. 🤷 Many thanks for verifying, though. 😉
Absolutely. I had to switch the logic quite a bit, to better account for version specific translation files (existing or not existing yet, fallback...). That the fallback works, can now be tested with a recent dev (it's now 1.30.x-dev and that should fall back to a translation file like backdropcms-1.x.de.po). |
Okay, I'll test again later ... if nobody beats me to it. |
Thanks, @indigoxela . I've tested locally and WFM:
|
For testers - if you get the chance, you can also verify the file name of the downloaded file. It's in /files/translations. Just to make sure, you got the right version/variant. 😉 It's not essential, just nice to know. |
Checked on the file name: backdropcms-1.29.es.po Seems correct. |
Tested the PR with Name of the downloaded language file: |
This is utmost priority for us. Having a headline new feature not work is bad. |
Description of the bug
When I try to install Backdrop in another language, I get a requirements problem: "The German translation is not available." The same happens with other languages (other than English).
Steps To Reproduce
Note: This seems to be an issue which happens only in certain hosting environments. See the "Additional information" section below.To reproduce the behavior:
1.29.0
installation: database, code directory, etc.https://test.example.com/core/install.php?langcode=de
Actual behavior
You see a page with title "Requirements problem" and the following message:
Screenshot:
Expected behavior
Backdrop is installed in the chosen language. (This is a new feature introduced with Backdrop 1.29.)
Additional information
(a) In a related Zulip thread we were discussing if this is a hosting environment issue. I was however able to reproduce the issue with two different shared hosting services.
(b) When I continue the installation in English, everything works as usual, and after the installation I'm able to download and install modules via the user interface.
Technical info:
The text was updated successfully, but these errors were encountered: