Re: Debian Wiki - macro like <<DebianCodenameLink(oldstable)>> for translated pages?

Paul Wise <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <CAKTje6GhhADhCraM81pPWyy=bMjoGYapDpg3jPTmfwKY8pBgEQ@mail.gmail.com>
On Sat, Sep 14, 2019 at 9:42 PM Beatrice Torracca wrote:

> Perfect!! and with no work at all to do for translators *bg*

I learned to be lazy through automation early on :)

> On sabato 14 settembre 2019, at 19:41 +0800, Paul Wise wrote:
> > I found that macro.formatter.page.pi['language'] contains the language code.
>
> That happens when you know what you are doing :)

I had no idea beforehand, I just searched the builtin macro code for
'language' and eventually found a function that stores the page info
into the pi dictionary. OTOH, I did know Python before doing this :)

> Thanks a lot for this. Seems like a small detail maybe, but you made my day.

Glad I could help :)
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.