Re: Rebuilding translations when needed (was: translation-check's maxdelta oddities)

Holger Wansing <[email protected]>
Newsgroups gmane.linux.debian.devel.boot,gmane.linux.debian.devel.www,gmane.linux.debian.devel.vote
Message-ID <[email protected]>
Hi,

Holger Wansing <[email protected]> wrote:
> Hi,
> 
> Cyril Brulebois <[email protected]> wrote:
> > Hi,
> > 
> > [ Initially a debian-boot vs. debian-www topic but I think
> > vote.debian.org might be having a similar issue. ]
> > 
> > Holger Wansing <[email protected]> (2015-10-31):
> > > Cyril Brulebois <[email protected]> wrote:
> > > > Could it be that images.data's being updated doesn't lead to a rebuild
> > > > of the relevant translations? And that those are only rebuilt when their
> > > > files actually get updated? That would explain why building them locally
> > > > led to the expected results, while the website getting updated would
> > > > still have the old contents?
> > > > 
> > > > (I'm not sure how dependencies between files are declared/detected, and
> > > > I don't think I'll find time tonight to check this out, hence just
> > > > throwing the idea for the time being.)
> > > 
> > > Hmm, looking at the swedish variant of that page, it seems that Kibi's
> > > assumption might be correct:
> > > 
> > > The corresponding swedish wml file correctly contains the entity 
> > > <humanversion />, but the website shows "Stretch Alpha 3".
> > > 
> > > There was no commit for the swedish errata file since the release of
> > > Alpha 4, and it seems the swedish translation of errata was not newly
> > > build since then.
> > > 
> > > I have no clue what to do about this though...
> > 
> > There's some fun going on with votes right now too.
> > 
> > https://www.debian.org/vote/index.fr.html has:
> > | En attente de sponsors
> > |     Résolution générale : mise à jour de la procédure standard de Résolution
> > 
> > (i.e. waiting for seconds)
> > 
> > while https://www.debian.org/vote/index.en.html has:
> > | Voting Open
> > |     General Resolution: Update Standard Resolution Procedure
> > 
> > The wml_p1_ipp manpage makes me think the following construct might help
> > get translations rebuilt even if their actual source didn't change:
> > |    Special `Depends' Variant
> > |        You can easily write fragments of Makefiles with the -M flag (see below) to keep tracks of which
> > |        files the output file depends on, When "ipp" is invoked as a piece of "WML", the final output file
> > |        may depend on other files.  You can tell "ipp" about these hidden dependencies by using the
> > |        "#depends" variant , e.g.
> > | 
> > |          #depends 'foo.dat'
> > |          #depends "*/*.dat"
> > |          #depends <file>
> > | 
> > |        The contents of the file is not inserted, only information about dependencies are updated.
> 
> I have just committed this for the german d-i errata:
> 
> 
> --- errata.wml  28 Oct 2015 20:18:01 -0000      1.117
> +++ errata.wml  5 Dec 2015 22:08:26 -0000
> @@ -1,6 +1,7 @@
>  #use wml::debian::template title="Debian-Installer - Errata"
>  #use wml::debian::recent_list
>  #include "$(ENGLISHDIR)/devel/debian-installer/images.data"
> +#depends "$(ENGLISHDIR)/devel/debian-installer/errata.wml"
>  #use wml::debian::translation-check translation="1.220" mindelta="1" maxdelta="1"
>  # $Id: errata.wml,v 1.117 2015/10/28 20:18:01 holger-guest Exp $
>  # Original-Translator: Frank Lichtenheld <[email protected]>, 2003-11-11
> 
> 
> Let's see what happens with the next d-i alpha/beta release...
> (and what the build log looks like tomorrow :-) German builds fine
> here locally though.)

This did not work.
The german page still shows 
"Errata für Stretch Alpha 4" and no "Attention: outdated translation. Read
the original."

Interestingly: the french site does everything right: "Alpha 5" and the
"Attention: outdated translation. ... "
There was no commit for french! As there was no for german.


Holger

-- 
============================================================
Created with Sylpheed 3.5.0 under
	D E B I A N   L I N U X   8 . 0   " J E S S I E " .

Registered Linux User #311290 - https://linuxcounter.net/
============================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.