Allow language-country BCP-47 tags for all languages in help URLs
Currently, URLs like
redirect to starting English help page, instead of to
because for Russian, "ru-RU" help does not exist, only "ru".
On the other hand, for en, pt, and zh variants, the full BCP-47 tags are needed. This distinction leads to code like https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/tipofthedaydlg.cxx?r=728548f8#129, where we effectively hardcode in core, which help modules are per-country, and which aren't.
It looks reasonable to allow uniform URLs with full BCP-47 tags, which would fallback as necessary on the website level.
Oliver, what is your opinion?
Updated by Mike Kaganski 3 months ago
Olivier Hallot wrote:
OTOH, using full BCP-47 in makefile --with-lang=ALL variable is going to trigger a lot of changes.
No-no-no, of course no :-) sorry for being unclear. The proposal is not to change the building process / set of actually existing directories. Only to change redirection of the URL sent to web server, so that if it doesn't find the URL in this form, it tried to remove country part from language tag section of the URL, and try again.