Project

General

Profile

Actions

Task #3407

open

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

Added by Mike Kaganski about 4 years ago. Updated about 4 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

Also available in: Atom PDF