[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

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 :)



Reply to: