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

Petr Kovar wrote:
Adding Fred who maintains the site, he might know more.

Thanks Petr.

On Tue, 13 Feb 2018 21:12:15 +0100
Gunnar Hjalmarsson <gunnarhj ubuntu com> wrote:

A HTML build of the Mallard pages are published at 
<>, similar to 
<>. 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="" select="concat('.html.',$libgo.lang)"/>

($libgo.lang contains the language being generated)

This is from

Hope it helps,


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