Project

General

Profile

Actions

Task #3407

open

Allow language-country BCP-47 tags for all languages in help URLs

Added by Mike Kaganski over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Currently, URLs like

https://help.libreoffice.org/7.0/ru-RU/text/swriter/guide/globaldoc.html

redirect to starting English help page, instead of to

https://help.libreoffice.org/7.0/ru/text/swriter/guide/globaldoc.html

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?

Actions #1

Updated by Olivier Hallot over 3 years ago

Oliver, what is your opinion?

Fall back is ok.

OTOH, using full BCP-47 in makefile --with-lang=ALL variable is going to trigger a lot of changes.

Actions #2

Updated by Mike Kaganski over 3 years 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.

Actions

Also available in: Atom PDF