[yelp-xsl] mal2html-page: Status badges for outdated and candidate
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-page: Status badges for outdated and candidate
- Date: Mon, 30 May 2011 21:04:33 +0000 (UTC)
commit 3a4b6fa3382f0a06de43b19b87e325747083b704
Author: Shaun McCance <shaunm gnome org>
Date: Mon May 30 17:08:29 2011 -0400
mal2html-page: Status badges for outdated and candidate
xslt/gettext/domains/yelp-xsl.pot | 66 +++++++++++++++++-----------------
xslt/gettext/domains/yelp-xsl.xml.in | 3 --
xslt/mallard/html/mal2html-page.xsl | 38 +++++++++++++------
3 files changed, 59 insertions(+), 48 deletions(-)
---
diff --git a/xslt/gettext/domains/yelp-xsl.pot b/xslt/gettext/domains/yelp-xsl.pot
index 6908878..2cb8f14 100644
--- a/xslt/gettext/domains/yelp-xsl.pot
+++ b/xslt/gettext/domains/yelp-xsl.pot
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2011-05-23 20:53-0400\n"
+"POT-Creation-Date: 2011-05-30 17:07-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL ADDRESS>\n"
"Language-Team: LANGUAGE <LL li org>\n"
@@ -87,114 +87,114 @@ msgstr ""
#. Revision status of a document or page. Content has been written and
#. reviewed, and it awaiting a final approval.
#.
-#: yelp-xsl.xml.in:110(msg/msgstr)
+#: yelp-xsl.xml.in:108(msg/msgstr)
msgid "Candidate"
msgstr ""
#. Default title for a colophon section.
-#: yelp-xsl.xml.in:116(msg/msgstr)
+#: yelp-xsl.xml.in:114(msg/msgstr)
msgid "Colophon"
msgstr ""
#. Title of the listing of subsections.
-#: yelp-xsl.xml.in:122(msg/msgstr)
+#: yelp-xsl.xml.in:120(msg/msgstr)
msgid "Contents"
msgstr ""
#. Default title for a dedication section.
-#: yelp-xsl.xml.in:127(msg/msgstr)
+#: yelp-xsl.xml.in:125(msg/msgstr)
msgid "Dedication"
msgstr ""
#. Revision status of a document or page. Most content has been
#. written, but revisions are still happening.
#.
-#: yelp-xsl.xml.in:135(msg/msgstr)
+#: yelp-xsl.xml.in:133(msg/msgstr)
msgid "Draft"
msgstr ""
#. Revision status of a document or page. A senior member of the
#. documentation team has reviewed and approved.
#.
-#: yelp-xsl.xml.in:143(msg/msgstr)
+#: yelp-xsl.xml.in:141(msg/msgstr)
msgid "Final"
msgstr ""
#. Automatic heading above a list of related links.
-#: yelp-xsl.xml.in:148(msg/msgstr)
+#: yelp-xsl.xml.in:146(msg/msgstr)
msgid "Further Reading"
msgstr ""
#. Default title for a glossary.
-#: yelp-xsl.xml.in:153(msg/msgstr)
+#: yelp-xsl.xml.in:151(msg/msgstr)
msgid "Glossary"
msgstr ""
#. Revision status of a document or page. Work has begun, but
#. not all content has been written.
#.
-#: yelp-xsl.xml.in:161(msg/msgstr)
+#: yelp-xsl.xml.in:159(msg/msgstr)
msgid "Incomplete"
msgstr ""
#. Default title for an index of terms in a book.
-#: yelp-xsl.xml.in:166(msg/msgstr)
+#: yelp-xsl.xml.in:164(msg/msgstr)
msgid "Index"
msgstr ""
#. Automatic heading above a list of guide links.
-#: yelp-xsl.xml.in:171(msg/msgstr)
+#: yelp-xsl.xml.in:169(msg/msgstr)
msgid "More About"
msgstr ""
#. Default title for a refnamediv element. This is the common section
#. title found in most UNIX man pages.
#.
-#: yelp-xsl.xml.in:180(msg/msgstr)
+#: yelp-xsl.xml.in:178(msg/msgstr)
msgid "Name"
msgstr ""
#. Link text for a link to the next page in a series.
-#: yelp-xsl.xml.in:185(msg/msgstr)
+#: yelp-xsl.xml.in:183(msg/msgstr)
msgid "Next"
msgstr ""
#. Revision status of a document or page. Content was once current,
#. but needs to be updated to reflect software updates.
#.
-#: yelp-xsl.xml.in:194(msg/msgstr)
+#: yelp-xsl.xml.in:191(msg/msgstr)
msgid "Outdated"
msgstr ""
#. Tooltip on play/pause buttons for audio and video objects.
-#: yelp-xsl.xml.in:199(msg/msgstr)
+#: yelp-xsl.xml.in:196(msg/msgstr)
msgid "Pause"
msgstr ""
#. Tooltip on play/pause buttons for audio and video objects.
-#: yelp-xsl.xml.in:204(msg/msgstr)
+#: yelp-xsl.xml.in:201(msg/msgstr)
msgid "Play"
msgstr ""
#. Default title for a preface to a book.
-#: yelp-xsl.xml.in:210(msg/msgstr)
+#: yelp-xsl.xml.in:207(msg/msgstr)
msgid "Preface"
msgstr ""
#. Link text for a link to the previous page in a series.
-#: yelp-xsl.xml.in:215(msg/msgstr)
+#: yelp-xsl.xml.in:212(msg/msgstr)
msgid "Previous"
msgstr ""
#. Revision status of a document or page. Content has been written
#. and should be reviewed by other team members.
#.
-#: yelp-xsl.xml.in:223(msg/msgstr)
+#: yelp-xsl.xml.in:220(msg/msgstr)
msgid "Ready for review"
msgstr ""
#. Automatic heading above a list of see-also links.
-#: yelp-xsl.xml.in:228(msg/msgstr)
+#: yelp-xsl.xml.in:225(msg/msgstr)
msgid "See Also"
msgstr ""
@@ -202,27 +202,27 @@ msgstr ""
#. This is used a tooltip on a link to shrink images back down after
#. they've been expanded to full size.
#.
-#: yelp-xsl.xml.in:237(msg/msgstr)
+#: yelp-xsl.xml.in:234(msg/msgstr)
msgid "Scale images down"
msgstr ""
#. Revision status of a document or page. No content has been written yet.
#.
-#: yelp-xsl.xml.in:244(msg/msgstr)
+#: yelp-xsl.xml.in:241(msg/msgstr)
msgid "Stub"
msgstr ""
#. Default title for a refsynopsisdiv element. This is the common section
#. title found in most UNIX man pages.
#.
-#: yelp-xsl.xml.in:252(msg/msgstr)
+#: yelp-xsl.xml.in:249(msg/msgstr)
msgid "Synopsis"
msgstr ""
#. Figures can automatically scale images down to fit the page width.
#. This is used a tooltip on a link to expand images to full size.
#.
-#: yelp-xsl.xml.in:260(msg/msgstr)
+#: yelp-xsl.xml.in:257(msg/msgstr)
msgid "View images at normal size"
msgstr ""
@@ -246,7 +246,7 @@ msgstr ""
#. with single quotation marks in your language, use the corresponding
#. double quotation mark for the watermark image.
#.
-#: yelp-xsl.xml.in:287(msg/msgstr)
+#: yelp-xsl.xml.in:284(msg/msgstr)
msgid "yelp-quote-201C.png"
msgstr ""
@@ -259,7 +259,7 @@ msgstr ""
#.
#. <label/> - The term being defined by the glossary entry
#.
-#: yelp-xsl.xml.in:304(msg/msgstr)
+#: yelp-xsl.xml.in:301(msg/msgstr)
msgid "View the bibliography entry <label/>."
msgstr ""
@@ -281,7 +281,7 @@ msgstr ""
#.
#. <biblioentry.label/> - The text content of the bibliography label
#.
-#: yelp-xsl.xml.in:424(msg/msgstr)
+#: yelp-xsl.xml.in:421(msg/msgstr)
msgid "[<biblioentry.label/>]"
msgstr ""
@@ -297,7 +297,7 @@ msgstr ""
#. <citation/> - The text content of the citation element, possibly
#. as a link to an entry in the bibliography
#.
-#: yelp-xsl.xml.in:441(msg/msgstr)
+#: yelp-xsl.xml.in:438(msg/msgstr)
msgid "[<citation/>]"
msgstr ""
@@ -308,7 +308,7 @@ msgstr ""
#.
#. <string/> - The linked-to email address
#.
-#: yelp-xsl.xml.in:453(msg/msgstr)
+#: yelp-xsl.xml.in:450(msg/msgstr)
msgid "Send email to â??<string/>â??."
msgstr ""
@@ -319,7 +319,7 @@ msgstr ""
#.
#. <glossterm/> - The term being defined by the glossary entry
#.
-#: yelp-xsl.xml.in:465(msg/msgstr)
+#: yelp-xsl.xml.in:462(msg/msgstr)
msgid "Read the definition for â??<glossterm/>â??."
msgstr ""
@@ -339,7 +339,7 @@ msgstr ""
#.
#. <glosssee/> - The actual link or links of the cross reference
#.
-#: yelp-xsl.xml.in:486(msg/msgstr)
+#: yelp-xsl.xml.in:483(msg/msgstr)
msgid "See <glosssee/>."
msgstr ""
@@ -360,7 +360,7 @@ msgstr ""
#.
#. <glosssee/> - The actual link or links of the cross reference
#.
-#: yelp-xsl.xml.in:508(msg/msgstr)
+#: yelp-xsl.xml.in:505(msg/msgstr)
msgid "See also <glosssee/>."
msgstr ""
diff --git a/xslt/gettext/domains/yelp-xsl.xml.in b/xslt/gettext/domains/yelp-xsl.xml.in
index 7780853..9f9a6b1 100644
--- a/xslt/gettext/domains/yelp-xsl.xml.in
+++ b/xslt/gettext/domains/yelp-xsl.xml.in
@@ -100,8 +100,6 @@ to 'qanda', this string will be used to label answers.
<msgstr>Bibliography</msgstr>
</msg>
-<!-- FIXME: update code to call this -->
-<!-- FIXME -->
<msg id="Candidate">
<its:locNote>
Revision status of a document or page. Content has been written and
@@ -185,7 +183,6 @@ title found in most UNIX man pages.
<msgstr>Next</msgstr>
</msg>
-<!-- FIXME: update code to call this -->
<msg id="Outdated">
<its:locNote>
Revision status of a document or page. Content was once current,
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 2d62e5d..976a762 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -162,11 +162,9 @@ REMARK: Describe this template
<xsl:with-param name="role" select="$role"/>
</xsl:call-template>
</a>
- <xsl:if test="$role = 'guide'">
- <xsl:call-template name="mal2html.editor.badge">
- <xsl:with-param name="target" select="$target"/>
- </xsl:call-template>
- </xsl:if>
+ <xsl:call-template name="mal2html.editor.badge">
+ <xsl:with-param name="target" select="$target"/>
+ </xsl:call-template>
<xsl:if test="not($nodesc)">
<xsl:variable name="desc" select="$target/mal:info/mal:desc"/>
<xsl:if test="$desc">
@@ -477,11 +475,21 @@ REMARK: Describe this template
<xsl:with-param name="msgid" select="'Draft'"/>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="$revision/@status = 'outdated'">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'Outdated'"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$revision/@status = 'review'">
<xsl:call-template name="l10n.gettext">
<xsl:with-param name="msgid" select="'Ready for review'"/>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="$revision/@status = 'candidate'">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'Candidate'"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$revision/@status = 'final'">
<xsl:call-template name="l10n.gettext">
<xsl:with-param name="msgid" select="'Final'"/>
@@ -526,11 +534,21 @@ REMARK: Describe this template
<xsl:with-param name="msgid" select="'Draft'"/>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="$revision/@status = 'outdated'">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'Outdated'"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$revision/@status = 'review'">
<xsl:call-template name="l10n.gettext">
<xsl:with-param name="msgid" select="'Ready for review'"/>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="$revision/@status = 'candidate'">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'Candidate'"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$revision/@status = 'final'">
<xsl:call-template name="l10n.gettext">
<xsl:with-param name="msgid" select="'Final'"/>
@@ -1368,15 +1386,11 @@ span.status {
<xsl:value-of select="$color.text_light"/><xsl:text>;
border: solid 1px </xsl:text>
<xsl:value-of select="$color.red_border"/><xsl:text>;
+ background-color: </xsl:text>
+ <xsl:value-of select="$color.yellow_background"/><xsl:text>;
}
-span.status-stub { background-color: </xsl:text>
- <xsl:value-of select="$color.red_background"/><xsl:text>; }
-span.status-draft { background-color: </xsl:text>
- <xsl:value-of select="$color.red_background"/><xsl:text>; }
-span.status-incomplete { background-color: </xsl:text>
+span.status-stub, span.status-draft, span.status-incomplete, span.status-outdated { background-color: </xsl:text>
<xsl:value-of select="$color.red_background"/><xsl:text>; }
-span.status-review { background-color: </xsl:text>
- <xsl:value-of select="$color.yellow_background"/><xsl:text>; }
</xsl:text>
</xsl:if>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]