Re: HTML build: Howto append language to internal link URLs

Frederic Peters <[email protected]>
Newsgroups gmane.comp.gnome.documentation
Message-ID <[email protected]>
Petr Kovar wrote:
> Adding Fred who maintains the help.gnome.org site, he might know more.

Thanks Petr.

> On Tue, 13 Feb 2018 21:12:15 +0100
> Gunnar Hjalmarsson <[email protected]> wrote:
> 
> > A HTML build of the Mallard pages are published at 
> > <https://help.ubuntu.com/stable/ubuntu-help/>, similar to 
> > <https://help.gnome.org/users/gnome-help/stable/>. However, there is one 
> > important detail which differs: The URLs of the internal links on the 
> > GNOME site include a language suffix. For instance, while the link at 
> > the index page to "Your desktop" looks like this on GNOME:
> > 
> > <a href="shell-overview.html.en" title="shell-overview">Your desktop</a>
> > 
> > it looks like this on Ubuntu:
> > 
> > <a href="shell-overview.html" title="Your desktop">Your desktop</a>
> > 
> > i.e. we don't have the ".en" (or ".fr" or ".de" etc.) suffix.
> > 
> > So I have a simple question: How do you do that?

library-web adjust some parameters; this change comes from:

  <xsl:param name="mal.link.extension" select="concat('.html.',$libgo.lang)"/>

($libgo.lang contains the language being generated)

This is from https://git.gnome.org/browse/library-web/tree/data/xslt/mal2html.xsl


Hope it helps,

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