Overhaul of releases//index (Re: how to get more recent translations for important web pages)

2023-12-06 Thread Holger Wansing
[Adding debian-ww to the loop]

Hi,

Holger Wansing  wrote (Sun, 3 Dec 2023 00:08:21 +0100):
> And for usual changings:
> I think we need to much resources (on the English side as well as on
> translator's) for repeating tasks like pages under ../releases.
> Basically, the files under 
> ../releases/buster
> ../releases/bullseye
> ../releases/bookworm
> ../releases/trixie
> are nearly the same, but with small differences in codenames, release
> dates and such.
> But nevertheless all those pages need to be touched by translators
> many times over the release cycle (if translators want to keep their
> files up-to-date).
> Even pages for oldstable need translator's time to be up-to-date
> (I just spotted exactly this situation for Bullseye today!)
> And remember: if one changes a page in English, that might imply work for 
> dozens of translators!!!
> 
> 
> I can think about changing the whole mechanism behind these pages, to create
> a basis, which has content for all situations during the whole release
> lifetime, without any need to change that underway:
> 
> So, we would create such "template" for English, translators work on 
> translating the relevant parts and then they have their template for
> their language as well, and when a new release comes, we just run a
> sed script, which changes the codenames from the stable one to oldstable,
> testing to stable, and so on. The release dates need to be adjusted, 
> but with that most of the work should be done.
> Another relevant situation is when LTS period starts or ends for a
> release, but I imagine we can get this done be just changing an entity,
> which is used for all languages, and we are done.

I have a tested and working proposal ready now (here for 
../releases/bookworm/index).

It contains six sets of different content, which makes it possible, to
dynamically enable the needed content for the respective situations over
the whole release cycle.

That all is controlled via these six variables:

--
# Is -2 the current release ? (yes/no)


# Is -1 the current release ? (yes/no)


# Is  the current release ? (yes/no)


# Is +1 the current release ? (yes/no)


# Security updates discontinued for current release ? (yes/no)


# Has LTS period begun for current release ? (yes/no)

--

Apart from that, I have converted the hardcoded dates for "initial release
of Debian 12.0" and "security updates discontinued for Bookworm" into
tags defined in ./english/template/debian/release_info.wml, so no need to
change the index file, when the time for those change comes, just change
the tag.



I filed this as MR:
https://salsa.debian.org/webmaster-team/webwml/-/merge_requests/944


Holger

-- 
Holger Wansing 
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076



webwml failed

2023-12-06 Thread Debian Webmaster
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Entering directory 
'/srv/www.debian.org/webwml/dutch/releases/wheezy'
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/releases/wheezy'
/srv/www.debian.org/cron/log/wml_run.log-make -C woody install
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Entering directory 
'/srv/www.debian.org/webwml/dutch/releases/woody'
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/releases/woody'
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/releases'
/srv/www.debian.org/cron/log/wml_run.log-make -C reports install
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Entering directory 
'/srv/www.debian.org/webwml/dutch/reports'
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/reports'
/srv/www.debian.org/cron/log/wml_run.log-make -C security install
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Entering directory 
'/srv/www.debian.org/webwml/dutch/security'
/srv/www.debian.org/cron/log/wml_run.log-cd ../../english/security && make -C 
data dsa.data
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Entering directory 
'/srv/www.debian.org/webwml/english/security/data'
/srv/www.debian.org/cron/log/wml_run.log-make[3]: Leaving directory 
'/srv/www.debian.org/webwml/english/security/data'
/srv/www.debian.org/cron/log/wml_run.log-wml -q -D CUR_YEAR=2023 -o 
UNDEFuNL:new.nl.html@g+w   new.wml
/srv/www.debian.org/cron/log/wml_run.log:** WML:Error: file not found: 
security-sources.inc
/srv/www.debian.org/cron/log/wml_run.log:make[2]: *** 
[../../Makefile.common:123: new.nl.html] Error 1
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/security'
/srv/www.debian.org/cron/log/wml_run.log:make[1]: [../Makefile.common:84: 
security-install] Error 2 (ignored)
/srv/www.debian.org/cron/log/wml_run.log-make -C users install
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Entering directory 
'/srv/www.debian.org/webwml/dutch/users'
/srv/www.debian.org/cron/log/wml_run.log-make[2]: Leaving directory 
'/srv/www.debian.org/webwml/dutch/users'
/srv/www.debian.org/cron/log/wml_run.log-make -C vote install