Hi,

Thomas Lange <la...@cs.uni-koeln.de> wrote (Thu, 23 Nov 2023 13:39:16 +0100):
> thanks for all the feedback. It seems that there's more work to do
> than I've expected. Currently I will not work on fixing the po
> statistics, because I want to concentrate on the security pages.
> So, if anyone else likes to work on this, feel free to do so.

I have a tested patch here, which allows to strip out some of the language
entries out of the 'langs' list, so those entries do no longer show up at
https://www.debian.org/international/l10n/po/ and the respective html
pages are not built as well.

For the first step I have chosen to delete most of the "Unknown language"
entries and some more, which are false-positives because of wrongly
named files/directories in packages.
It workes fine here locally.

The functionality is as the following:
When make is executed in the ./english/international/l10n/po directory,
the gen-files.sh script is called, which builds the list of languages
out of the material from https://i18n.debian.org/material/.
This list of languages is written to ./english/international/l10n/data/langs.

I have now created a script named strip-langs.sh, which removes entries 
by choice from this langs file (you can define in this script, which 
entries to remove).
The strip-langs.sh is called after the gen-files.sh run.
And then the html files for all the left languages are built.

With this, we would have an infrastructure, to remove single language
entries from the langs list choice by choice.

In additional steps, we could also remove entries like de_AT, de_CH, de_DE
and only leave 'de', as mentioned by Thomas.
But that's another discussion.


I have filed this as a merge request:
https://salsa.debian.org/webmaster-team/webwml/-/merge_requests/947

Holger


-- 
Holger Wansing <hwans...@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

Reply via email to