[library-web] do not include the "missing translations" paragraph on developer.gnome.org
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] do not include the "missing translations" paragraph on developer.gnome.org
- Date: Sat, 6 Sep 2014 10:54:40 +0000 (UTC)
commit e30ca67fe947469868275e48f2253be438bd23d9
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Sep 6 12:54:07 2014 +0200
do not include the "missing translations" paragraph on developer.gnome.org
data/xslt/common_indexes.xsl | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/xslt/common_indexes.xsl b/data/xslt/common_indexes.xsl
index 94f305b..3fcaaa5 100644
--- a/data/xslt/common_indexes.xsl
+++ b/data/xslt/common_indexes.xsl
@@ -226,6 +226,13 @@ $lang]"/>
select="'development-version-doc'"/></xsl:call-template></a>
</p>
</xsl:if>
+
+<xsl:if test="@channel != 'devel'">
+ <!-- in most cases the developer documentation doesn't have proper
+ translation infrastructure, therefore we do not display the
+ missing language warning as it would appear on most documents
+ and clutter the page way too much --!>
+
<xsl:if test="substring($lang, 1, 2) != substring(@lang, 1, 2) and @path">
<p class="no-translation">
<xsl:call-template name="gettext"><xsl:with-param name="lang"
@@ -240,6 +247,7 @@ $lang]"/>
</xsl:if>
</p>
</xsl:if>
+</xsl:if> <!-- @channel != 'devel' -->
</dd>
</xsl:if>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]