Conversation
|
To me, it makes sense to only boost the main language. There is not good reason to down-boast (0.8) the 3rd language. |
|
Ready to get merged. |
|
Code looks good and I also wonder why the previous setting was basically demoting the 3rd language. https://github.com/mugoweb/ezpublish-legacy/blob/master/settings/site.ini#L918 |
|
The proposed new code uses [RegionalSettings]Locale, which brings up the question: why not use the first language in SiteLanguageList instead? For our multi-language sites those values are the same, but are they ever different? |
|
I wouldn't think so. The comment above SiteLanguageList reads like that same assumption to me. If we go with that (1st Language), perhaps two comments? One above Locale explaining the boost and one more above SiteLanguageList saying the default boosting on those entries is gone, but the first is boosted by default? |
|
In general (not only for ezfind), I think SiteLanguageList is used for the ContentObjectTranslations. RegionalSettings/Locale is probably used for the translation files. Is the first entry of SiteLanguageList ever different to RegionalSettings/Locale? I cannot come up with a real use case: maybe somebody creates a Texan dialect teng_US translation files. You could set a new locale setting and keep the existing ContentObjectTranslation. But that question raises a good point: I think it makes more sense to boost the first entry from the SiteLanguageList. Currently it uses the RegionalSettings/Locale setting with the assumption that it will always match. |
Upstream pull request:
ezsystems#90