[yelp-xsl] mal2html: Mark strings in About section for translation



commit 70c88054b0dbdc50458c52d6e5bfa7435202572c
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Nov 6 13:56:49 2011 -0500

    mal2html: Mark strings in About section for translation

 xslt/gettext/domains/yelp-xsl.pot    |  137 ++++++++++++++++++++++-----------
 xslt/gettext/domains/yelp-xsl.xml.in |   48 ++++++++++++
 xslt/mallard/html/mal2html-page.xsl  |   65 +++++++++++-----
 3 files changed, 183 insertions(+), 67 deletions(-)
---
diff --git a/xslt/gettext/domains/yelp-xsl.pot b/xslt/gettext/domains/yelp-xsl.pot
index a9b27c6..74f2ed4 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-11-01 11:07-0400\n"
+"POT-Creation-Date: 2011-11-06 13:56-0500\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"
@@ -79,137 +79,172 @@ msgstr ""
 msgid "A:"
 msgstr ""
 
+#. Title of the footer containing copyrights, credits, license information,
+#. and other stuff about the page.
+#. 
+#: yelp-xsl.xml.in:102(msg/msgstr)
+msgid "About"
+msgstr ""
+
 #. Accessible title for an advanced note.
-#: yelp-xsl.xml.in:99(msg/msgstr)
+#: yelp-xsl.xml.in:107(msg/msgstr)
 msgid "Advanced"
 msgstr ""
 
 #. Default title for a bibliography.
-#: yelp-xsl.xml.in:104(msg/msgstr)
+#: yelp-xsl.xml.in:112(msg/msgstr)
 msgid "Bibliography"
 msgstr ""
 
 #. Accessible title for a note about a software bug.
-#: yelp-xsl.xml.in:109(msg/msgstr)
+#: yelp-xsl.xml.in:117(msg/msgstr)
 msgid "Bug"
 msgstr ""
 
 #. Revision status of a document or page. Content has been written and
 #. reviewed, and it awaiting a final approval.
 #. 
-#: yelp-xsl.xml.in:117(msg/msgstr)
+#: yelp-xsl.xml.in:125(msg/msgstr)
 msgid "Candidate"
 msgstr ""
 
 #. Default title for a colophon section.
-#: yelp-xsl.xml.in:123(msg/msgstr)
+#: yelp-xsl.xml.in:131(msg/msgstr)
 msgid "Colophon"
 msgstr ""
 
 #. Title of the listing of subsections.
-#: yelp-xsl.xml.in:129(msg/msgstr)
+#: yelp-xsl.xml.in:137(msg/msgstr)
 msgid "Contents"
 msgstr ""
 
+#. Title for license information when it's a CC license.
+#: yelp-xsl.xml.in:142(msg/msgstr)
+msgid "Creative Commons"
+msgstr ""
+
 #. Default title for a dedication section.
-#: yelp-xsl.xml.in:134(msg/msgstr)
+#: yelp-xsl.xml.in:147(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:142(msg/msgstr)
+#: yelp-xsl.xml.in:155(msg/msgstr)
 msgid "Draft"
 msgstr ""
 
+#. Title for a list of editors.
+#: yelp-xsl.xml.in:160(msg/msgstr)
+msgid "Edited By"
+msgstr ""
+
 #. Revision status of a document or page. A senior member of the
 #. documentation team has reviewed and approved.
 #. 
-#: yelp-xsl.xml.in:150(msg/msgstr)
+#: yelp-xsl.xml.in:168(msg/msgstr)
 msgid "Final"
 msgstr ""
 
 #. Default title for a glossary.
-#: yelp-xsl.xml.in:155(msg/msgstr)
+#: yelp-xsl.xml.in:173(msg/msgstr)
 msgid "Glossary"
 msgstr ""
 
 #. Accessible title for an important note.
-#: yelp-xsl.xml.in:160(msg/msgstr)
+#: yelp-xsl.xml.in:178(msg/msgstr)
 msgid "Important"
 msgstr ""
 
 #. Revision status of a document or page. Work has begun, but
 #. not all content has been written.
 #. 
-#: yelp-xsl.xml.in:168(msg/msgstr)
+#: yelp-xsl.xml.in:186(msg/msgstr)
 msgid "Incomplete"
 msgstr ""
 
 #. Default title for an index of terms in a book.
-#: yelp-xsl.xml.in:173(msg/msgstr)
+#: yelp-xsl.xml.in:191(msg/msgstr)
 msgid "Index"
 msgstr ""
 
+#. Generic title for license information when it's not a known license.
+#. 
+#: yelp-xsl.xml.in:198(msg/msgstr)
+msgid "License"
+msgstr ""
+
+#. Title for a list of maintainers.
+#: yelp-xsl.xml.in:203(msg/msgstr)
+msgid "Maintained By"
+msgstr ""
+
 #. Automatic heading above a list of guide links.
-#: yelp-xsl.xml.in:178(msg/msgstr)
+#: yelp-xsl.xml.in:208(msg/msgstr)
 msgid "More Information"
 msgstr ""
 
 #. Default title for a refnamediv element. This is the common section
 #. title found in most UNIX man pages.
 #. 
-#: yelp-xsl.xml.in:187(msg/msgstr)
+#: yelp-xsl.xml.in:217(msg/msgstr)
 msgid "Name"
 msgstr ""
 
 #. Link text for a link to the next page in a series.
-#: yelp-xsl.xml.in:192(msg/msgstr)
+#: yelp-xsl.xml.in:222(msg/msgstr)
 msgid "Next"
 msgstr ""
 
 #. Accessible title for a note.
-#: yelp-xsl.xml.in:197(msg/msgstr)
+#: yelp-xsl.xml.in:227(msg/msgstr)
 msgid "Note"
 msgstr ""
 
+#. Title for a list contributors other than authors, editors, translators,
+#. or other types we have specific lists for.
+#. 
+#: yelp-xsl.xml.in:235(msg/msgstr)
+msgid "Other Credits"
+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:205(msg/msgstr)
+#: yelp-xsl.xml.in:243(msg/msgstr)
 msgid "Outdated"
 msgstr ""
 
 #. Tooltip on play/pause buttons for audio and video objects.
-#: yelp-xsl.xml.in:210(msg/msgstr)
+#: yelp-xsl.xml.in:248(msg/msgstr)
 msgid "Pause"
 msgstr ""
 
 #. Tooltip on play/pause buttons for audio and video objects.
-#: yelp-xsl.xml.in:215(msg/msgstr)
+#: yelp-xsl.xml.in:253(msg/msgstr)
 msgid "Play"
 msgstr ""
 
 #. Default title for a preface to a book.
-#: yelp-xsl.xml.in:221(msg/msgstr)
+#: yelp-xsl.xml.in:259(msg/msgstr)
 msgid "Preface"
 msgstr ""
 
 #. Link text for a link to the previous page in a series.
-#: yelp-xsl.xml.in:226(msg/msgstr)
+#: yelp-xsl.xml.in:264(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:234(msg/msgstr)
+#: yelp-xsl.xml.in:272(msg/msgstr)
 msgid "Ready for review"
 msgstr ""
 
 #. Automatic heading above a list of see-also links.
-#: yelp-xsl.xml.in:239(msg/msgstr)
+#: yelp-xsl.xml.in:277(msg/msgstr)
 msgid "See Also"
 msgstr ""
 
@@ -217,45 +252,55 @@ 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:248(msg/msgstr)
+#: yelp-xsl.xml.in:286(msg/msgstr)
 msgid "Scale images down"
 msgstr ""
 
 #. Accessible title for a sidebar note.
-#: yelp-xsl.xml.in:253(msg/msgstr)
+#: yelp-xsl.xml.in:291(msg/msgstr)
 msgid "Sidebar"
 msgstr ""
 
 #. Revision status of a document or page. No content has been written yet.
 #. 
-#: yelp-xsl.xml.in:260(msg/msgstr)
+#: yelp-xsl.xml.in:298(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:268(msg/msgstr)
+#: yelp-xsl.xml.in:306(msg/msgstr)
 msgid "Synopsis"
 msgstr ""
 
 #. Accessible title for a tip.
-#: yelp-xsl.xml.in:273(msg/msgstr)
+#: yelp-xsl.xml.in:311(msg/msgstr)
 msgid "Tip"
 msgstr ""
 
+#. Title for a list of translators.
+#: yelp-xsl.xml.in:316(msg/msgstr)
+msgid "Translated By"
+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:281(msg/msgstr)
+#: yelp-xsl.xml.in:324(msg/msgstr)
 msgid "View images at normal size"
 msgstr ""
 
 #. Accessible title for a warning.
-#: yelp-xsl.xml.in:286(msg/msgstr)
+#: yelp-xsl.xml.in:329(msg/msgstr)
 msgid "Warning"
 msgstr ""
 
+#. Title for a list of authors.
+#: yelp-xsl.xml.in:334(msg/msgstr)
+msgid "Written By"
+msgstr ""
+
 #. This is an image of the opening quotation character for your language.
 #. The image is used as a watermark on blockquote elements.  There are a
 #. number of different quote characters used by various languages, so the
@@ -276,7 +321,7 @@ msgstr ""
 #. with single quotation marks in your language, use the corresponding
 #. double quotation mark for the watermark image.
 #. 
-#: yelp-xsl.xml.in:313(msg/msgstr)
+#: yelp-xsl.xml.in:361(msg/msgstr)
 msgid "yelp-quote-201C.png"
 msgstr ""
 
@@ -289,7 +334,7 @@ msgstr ""
 #. 
 #. <label/> - The term being defined by the glossary entry
 #. 
-#: yelp-xsl.xml.in:329(msg/msgstr)
+#: yelp-xsl.xml.in:377(msg/msgstr)
 msgid "View the bibliography entry <biblioentry.label/>."
 msgstr ""
 
@@ -311,7 +356,7 @@ msgstr ""
 #. 
 #. <biblioentry.label/> - The text content of the bibliography label
 #. 
-#: yelp-xsl.xml.in:352(msg/msgstr)
+#: yelp-xsl.xml.in:400(msg/msgstr)
 msgid "[<biblioentry.label/>]"
 msgstr ""
 
@@ -327,7 +372,7 @@ msgstr ""
 #. <citation/> - The text content of the citation element, possibly
 #.               as a link to an entry in the bibliography
 #. 
-#: yelp-xsl.xml.in:369(msg/msgstr)
+#: yelp-xsl.xml.in:417(msg/msgstr)
 msgid "[<citation.label/>]"
 msgstr ""
 
@@ -355,7 +400,7 @@ msgstr ""
 #. <comment.name/> - The name of the person making the comment
 #. <comment.date/> - The date the comment was made
 #. 
-#: yelp-xsl.xml.in:398(msg/msgstr)
+#: yelp-xsl.xml.in:446(msg/msgstr)
 msgid "from <comment.name/> on <comment.date/>"
 msgstr ""
 
@@ -382,7 +427,7 @@ msgstr ""
 #. 
 #. <comment.name/> - The name of the person making the comment
 #. 
-#: yelp-xsl.xml.in:426(msg/msgstr)
+#: yelp-xsl.xml.in:474(msg/msgstr)
 msgid "from <comment.name/>"
 msgstr ""
 
@@ -393,7 +438,7 @@ msgstr ""
 #. 
 #. <string/> - The linked-to email address
 #. 
-#: yelp-xsl.xml.in:438(msg/msgstr)
+#: yelp-xsl.xml.in:486(msg/msgstr)
 msgid "Send email to â<string/>â."
 msgstr ""
 
@@ -404,7 +449,7 @@ msgstr ""
 #. 
 #. <glossterm/> - The term being defined by the glossary entry
 #. 
-#: yelp-xsl.xml.in:450(msg/msgstr)
+#: yelp-xsl.xml.in:498(msg/msgstr)
 msgid "Read the definition for â<glossterm/>â."
 msgstr ""
 
@@ -424,7 +469,7 @@ msgstr ""
 #. 
 #. <glosssee/> - The actual link or links of the cross reference
 #. 
-#: yelp-xsl.xml.in:471(msg/msgstr)
+#: yelp-xsl.xml.in:519(msg/msgstr)
 msgid "See <glosssee/>."
 msgstr ""
 
@@ -445,7 +490,7 @@ msgstr ""
 #. 
 #. <glosssee/> - The actual link or links of the cross reference
 #. 
-#: yelp-xsl.xml.in:493(msg/msgstr)
+#: yelp-xsl.xml.in:541(msg/msgstr)
 msgid "See also <glosssee/>."
 msgstr ""
 
@@ -456,7 +501,7 @@ msgstr ""
 #. 
 #. <node/> - The text content of the quote element
 #. 
-#: yelp-xsl.xml.in:505(msg/msgstr)
+#: yelp-xsl.xml.in:553(msg/msgstr)
 msgid "â<node/>â"
 msgstr ""
 
@@ -467,7 +512,7 @@ msgstr ""
 #. 
 #. <node/> - The text content of the quote element
 #. 
-#: yelp-xsl.xml.in:517(msg/msgstr)
+#: yelp-xsl.xml.in:565(msg/msgstr)
 msgid "â<node/>â"
 msgstr ""
 
@@ -481,7 +526,7 @@ msgstr ""
 #. 
 #. <seeie/> - The actual link or links of the cross reference
 #. 
-#: yelp-xsl.xml.in:532(msg/msgstr)
+#: yelp-xsl.xml.in:580(msg/msgstr)
 msgid "See <seeie/>."
 msgstr ""
 
@@ -495,7 +540,7 @@ msgstr ""
 #. 
 #. <seeie/> - The actual link or links of the cross reference
 #. 
-#: yelp-xsl.xml.in:547(msg/msgstr)
+#: yelp-xsl.xml.in:595(msg/msgstr)
 msgid "See also <seeie/>."
 msgstr ""
 
diff --git a/xslt/gettext/domains/yelp-xsl.xml.in b/xslt/gettext/domains/yelp-xsl.xml.in
index 109aea2..814369b 100644
--- a/xslt/gettext/domains/yelp-xsl.xml.in
+++ b/xslt/gettext/domains/yelp-xsl.xml.in
@@ -94,6 +94,14 @@ to 'qanda', this string will be used to label answers.
 
 <!-- ======================================================================= -->
 
+<msg id="About">
+<its:locNote>
+Title of the footer containing copyrights, credits, license information,
+and other stuff about the page.
+</its:locNote>
+<msgstr>About</msgstr>
+</msg>
+
 <msg id="Advanced">
 <its:locNote>Accessible title for an advanced note.</its:locNote>
 <msgstr>Advanced</msgstr>
@@ -129,6 +137,11 @@ reviewed, and it awaiting a final approval.
 <msgstr>Contents</msgstr>
 </msg>
 
+<msg id="Creative Commons">
+<its:locNote>Title for license information when it's a CC license.</its:locNote>
+<msgstr>Creative Commons</msgstr>
+</msg>
+
 <msg id="Dedication">
 <its:locNote>Default title for a dedication section.</its:locNote>
 <msgstr>Dedication</msgstr>
@@ -142,6 +155,11 @@ written, but revisions are still happening.
 <msgstr>Draft</msgstr>
 </msg>
 
+<msg id="Edited By">
+<its:locNote>Title for a list of editors.</its:locNote>
+<msgstr>Edited By</msgstr>
+</msg>
+
 <msg id="Final">
 <its:locNote>
 Revision status of a document or page. A senior member of the
@@ -173,6 +191,18 @@ not all content has been written.
 <msgstr>Index</msgstr>
 </msg>
 
+<msg id="License">
+<its:locNote>
+Generic title for license information when it's not a known license.
+</its:locNote>
+<msgstr>License</msgstr>
+</msg>
+
+<msg id="Maintained By">
+<its:locNote>Title for a list of maintainers.</its:locNote>
+<msgstr>Maintained By</msgstr>
+</msg>
+
 <msg id="More Information">
 <its:locNote>Automatic heading above a list of guide links.</its:locNote>
 <msgstr>More Information</msgstr>
@@ -197,6 +227,14 @@ title found in most UNIX man pages.
 <msgstr>Note</msgstr>
 </msg>
 
+<msg id="Other Credits">
+<its:locNote>
+Title for a list contributors other than authors, editors, translators,
+or other types we have specific lists for.
+</its:locNote>
+<msgstr>Other Credits</msgstr>
+</msg>
+
 <msg id="Outdated">
 <its:locNote>
 Revision status of a document or page. Content was once current,
@@ -273,6 +311,11 @@ title found in most UNIX man pages.
 <msgstr>Tip</msgstr>
 </msg>
 
+<msg id="Translated By">
+<its:locNote>Title for a list of translators.</its:locNote>
+<msgstr>Translated By</msgstr>
+</msg>
+
 <msg id="View images at normal size">
 <its:locNote>
 Figures can automatically scale images down to fit the page width.
@@ -286,6 +329,11 @@ This is used a tooltip on a link to expand images to full size.
 <msgstr>Warning</msgstr>
 </msg>
 
+<msg id="Written By">
+<its:locNote>Title for a list of authors.</its:locNote>
+<msgstr>Written By</msgstr>
+</msg>
+
 <!-- ======================================================================= -->
 
 <msg id="yelp-quote-201C.png">
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index d08b306..9190d91 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -45,23 +45,24 @@ editors.
 
 
 <!--**==========================================================================
-mal2html.page.copyrights
-Output the copyright notice at the bottom of a page.
-:Revision:version="1.0" date="2010-01-02"
+mal2html.page.about
+Output the copyrights, credits, and license information at the bottom of a page.
+:Revision:version="3.4" date="2011-11-06"
 $node: The top-level #{page} element.
 
-This template outputs copyright information.  By default, it is placed at the
-bottom of the page by *{mal2html.page.footbar}.  Copyrights are taken from the
-#{credit} elements in the #{info} element in ${node}.
-
-Copyright information is output in a #{div} element with #{class="copyrights"}.
-Each copyright is output in a nested #{div} element with #{class="copyright"}.
+This template outputs copyright information, credits, and license information for
+the page. By default it is called by the %{html.footer.mode} implementation for
+the #{page} element. Information is extracted from the #{info} element of ${node}.
 -->
-<xsl:template name="mal2html.page.copyrights">
+<xsl:template name="mal2html.page.about">
   <xsl:param name="node" select="."/>
   <div class="sect about">
     <div class="hgroup">
-      <h2>About</h2>
+      <h2>
+        <xsl:call-template name="l10n.gettext">
+          <xsl:with-param name="msgid" select="'About'"/>
+        </xsl:call-template>
+      </h2>
     </div>
     <div class="region">
       <div class="contents">
@@ -82,7 +83,11 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
         <xsl:if test="$authors">
           <div class="aboutblurb authors">
             <div class="title">
-              <span class="title">Written By</span>
+              <span class="title">
+                <xsl:call-template name="l10n.gettext">
+                  <xsl:with-param name="msgid" select="'Written By'"/>
+                </xsl:call-template>
+              </span>
             </div>
             <ul class="credits">
               <xsl:for-each select="$authors">
@@ -98,7 +103,11 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
         <xsl:if test="$editors">
           <div class="aboutblurb editors">
             <div class="title">
-              <span class="title">Edited By</span>
+              <span class="title">
+                <xsl:call-template name="l10n.gettext">
+                  <xsl:with-param name="msgid" select="'Edited By'"/>
+                </xsl:call-template>
+              </span>
             </div>
             <ul class="credits">
               <xsl:for-each select="$editors">
@@ -114,7 +123,11 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
         <xsl:if test="$maintainers">
           <div class="aboutblurb maintainers">
             <div class="title">
-              <span class="title">Maintained By</span>
+              <span class="title">
+                <xsl:call-template name="l10n.gettext">
+                  <xsl:with-param name="msgid" select="'Maintained By'"/>
+                </xsl:call-template>
+              </span>
             </div>
             <ul class="credits">
               <xsl:for-each select="$maintainers">
@@ -130,7 +143,11 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
         <xsl:if test="$translators">
           <div class="aboutblurb translators">
             <div class="title">
-              <span class="title">Translated By</span>
+              <span class="title">
+                <xsl:call-template name="l10n.gettext">
+                  <xsl:with-param name="msgid" select="'Translated By'"/>
+                </xsl:call-template>
+              </span>
             </div>
             <ul class="credits">
               <xsl:for-each select="$translators">
@@ -147,7 +164,11 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
         <xsl:if test="$others">
           <div class="aboutblurb othercredits">
             <div class="title">
-              <span class="title">Other Credits</span>
+              <span class="title">
+                <xsl:call-template name="l10n.gettext">
+                  <xsl:with-param name="msgid" select="'Other Credits'"/>
+                </xsl:call-template>
+              </span>
             </div>
             <ul class="credits">
               <xsl:for-each select="$others">
@@ -164,10 +185,14 @@ Each copyright is output in a nested #{div} element with #{class="copyright"}.
               <span class="title">
                 <xsl:choose>
                   <xsl:when test="starts-with(@href, 'http://creativecommons.org/')">
-                    <xsl:text>Creative Commons</xsl:text>
+                    <xsl:call-template name="l10n.gettext">
+                      <xsl:with-param name="msgid" select="'Creative Commons'"/>
+                    </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
-                    <xsl:text>License</xsl:text>
+                    <xsl:call-template name="l10n.gettext">
+                      <xsl:with-param name="msgid" select="'License'"/>
+                    </xsl:call-template>
                   </xsl:otherwise>
                 </xsl:choose>
               </span>
@@ -440,7 +465,7 @@ REMARK: Describe this template
 </xsl:template>
 
 <xsl:template mode="html.footer.mode" match="mal:page">
-  <xsl:call-template name="mal2html.page.copyrights"/>
+  <xsl:call-template name="mal2html.page.about"/>
 </xsl:template>
 
 <xsl:template mode="html.body.mode" match="mal:page">
@@ -746,8 +771,6 @@ ul.credits, ul.credits li {
   margin: 0; padding: 0;
   list-style-type: none;
 }
-div.copyrights {
-}
 
 span.link-button a {
   display: inline-block;



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