Project

General

Profile

Task #3407

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

Added by Mike Kaganski about 1 year ago. Updated about 1 year ago.

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

0%

Tags:
URL:

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?

#1

Updated by Olivier Hallot about 1 year 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.

#2

Updated by Mike Kaganski about 1 year 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.

Also available in: Atom PDF