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

Beatrice Torracca <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <[email protected]>
On sabato 14 settembre 2019, at 19:41 +0800, Paul Wise wrote:
> On Sat, Sep 14, 2019 at 3:28 PM Beatrice Torracca <[email protected]> wrote:

> Thanks for the API pointer, with that and some grepping in the
> codebase I managed to add a few changes to make my proposal work:
> 
> https://salsa.debian.org/debian/wiki.debian.org/commit/80ae82957ae6cd4e19bbeae55e68908bb4971683
> 
> It is already working on the Italian translation of the DebianReleases
> page, it/DebianReleases links to it/DebianBuster but contains
> <<DebianCodenameLink(stable)>>.

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

> > I did not find anything on a way to extract the iso-code of the language (that does not mean it does not exist).
> 
> I found that macro.formatter.page.pi['language'] contains the language code.

That happens when you know what you are doing :)

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

beatrice
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.