-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Disabling languages produces unexpected results in 0.123.0-DEV #11958
Comments
But I guess the numbers adds up if you consider the disabled languages. I'm guessing that we now (wrongly) detect "disabled French" (as an example) content as "default language". Which is a little odd that we don't have a test for. But thanks for the report. |
Well, the numbers won't add up as per the environment. It looks like |
Actually, I've built the website and the stats are as follows:
It is 64 thousand pages, and processed images a way off. Building with 0.122 shows 21 thousand images and 1 image per translation (as we don't load images from translated page resource, as I've said in another issue). Also, it is weird that it is such a great difference in number of images in languages after FI (hundreds vs 3) |
Again, I'm not able to reproduce this in my tests/test sites. I'm not saying that this isn't an issue/bug, but it does suggest that there is something "special" about your setup. Again, if you could produce a simpler and running setup that demonstrates the above, that would be appreciated. |
So, I've got the website with reproduction code here. Running it in default environment works well. Running with |
Thanks; yea, I see it now. My tests for this were not ... great. I will fix this tomorrow. Thanks for the demo. |
This should be fixed in 4174a78 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We have multi-language website. During development we use another environment, that disables most of languages and also ignores some content directories for faster builds. The development environment config has a
disableLanguages
directive with multiple languages listed. There are 2 weird things happening:First, translation pages of disabled languages seems to be processed as regular pages, as we start getting
duplicate menu entry with identifier "home" in menu "main"
warnings from_index.xx.md
files, wherexx
are disabled languages. Building entire website has no this issue, neither there is such a problem in latest stable release.Second, the stats are way off for the default language:
Compare it with 0.122.0 on the same files:
Notice Pages and Processed images stats for EN language are way off.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
No, everything works fine
The text was updated successfully, but these errors were encountered: