[gimp-help] Add: a footer link to report a bug in GIMP



commit f578655d5bd1ee00fd4363a25b286b26857335bb
Author: Jacob Boerema <jgboerema gmail com>
Date:   Wed Jul 20 16:51:27 2022 -0400

    Add: a footer link to report a bug in GIMP
    
    We regularly get issues with GIMP in our gimp-help issue tracker.
    Let's add a link to GIMP's issue tracker. This might make it more clear
    to user's where to report issues.
    
    In addition to that:
    - Change links from http to https.
    - Update the text of the missing help page a bit.
    
    (cherry picked from commit f381e865798963633b89a7fbf4b42ac3cd95e2c0)

 src/help-missing.xml         | 20 ++++++++++----------
 stylesheets/plainhtml.xsl.in | 13 ++++++++++++-
 2 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/src/help-missing.xml b/src/help-missing.xml
index 5bbad0f56..ec92d2e4a 100644
--- a/src/help-missing.xml
+++ b/src/help-missing.xml
@@ -7,28 +7,28 @@
 <appendix id="help-missing">
   <title>Eeek! There is Missing Help</title>
   <para>
-    Sorry, but a help item is missing for the function you're looking for.
-    You may be able to find it in the online version of the help at the
-    <ulink url="http://docs.gimp.org/en";><acronym>GIMP</acronym> docs</ulink>
-    website.
+    We are sorry. The help item you are looking for, is missing.
+    You may be able to find it in the online version of the
+    <ulink url="https://docs.gimp.org/en";><acronym>GIMP</acronym> documentation</ulink>
+    .
   </para>
   <para>
     Feel free to join us and fill the gap by writing documentation for
     <acronym>GIMP</acronym>. For more information, subscribe to our
     <ulink url="https://mail.gnome.org/mailman/listinfo/gimp-docs-list";>Mailing
-      list</ulink>. Generally, it's a good idea to check the
-    <ulink url="http://www.gimp.org/docs";><acronym>GIMP</acronym> project
-    page</ulink>.
+      list</ulink>. Generally, it's a good idea to check
+    <ulink url="https://docs.gimp.org/";><acronym>GIMP</acronym>'s documentation
+    project page</ulink>.
   </para>
   <para>
     Found a <emphasis role="bold">content error</emphasis> or just
     something which doesn't look right?
-    <!-- This link is also used to render a small link in the left hand
-         side of the footer, to help users filing bug reports.
+    <!-- This link is also used to render a small link at the bottom
+         of the footer, to help users filing bug reports.
          Bug: 711318
       -->
     <ulink id="reportbug" url="https://gitlab.gnome.org/GNOME/gimp-help/issues";>
-      Report an error in the bug tracker
+      Report a documentation error
     </ulink> and let us know.
   </para>
 </appendix>
diff --git a/stylesheets/plainhtml.xsl.in b/stylesheets/plainhtml.xsl.in
index ede51d7e5..869403e86 100644
--- a/stylesheets/plainhtml.xsl.in
+++ b/stylesheets/plainhtml.xsl.in
@@ -69,6 +69,8 @@
   <xsl:param name="gimp.help.all_linguas">@ALL_LINGUAS@</xsl:param>
   <!-- Quick access to report bugs in our Bugzilla Bug: 711318 -->
   <xsl:param name="gimphelp.reportbug" select="//ulink[@id='reportbug']" />
+  <xsl:param name="gimp.reportbug.url" select="'https://gitlab.gnome.org/GNOME/gimp/issues'" />
+  <xsl:param name="gimp.reportbug.text" select="'Report a bug in GIMP'" />
 
   <!-- Add NotInToc role to simplesect, which is using in fdl.xml to
   deal with FDL-In-TOC issue.
@@ -134,7 +136,7 @@
                     <!-- PATCH: if prev is empty, add a link to www.gimp.org -->
                     <xsl:otherwise>
                       <a>
-                        <xsl:attribute name="href">http://www.gimp.org</xsl:attribute>
+                        <xsl:attribute name="href">https://www.gimp.org</xsl:attribute>
                         <img>
                           <xsl:attribute name="src">
                             <xsl:value-of select="$navig.graphics.path"/>
@@ -337,6 +339,15 @@
             </xsl:if>
           </table>
         </xsl:if>
+        <a>
+          <xsl:attribute name="href">
+            <xsl:value-of select="$gimp.reportbug.url"/>
+          </xsl:attribute>
+          <xsl:attribute name="class">
+            <xsl:value-of select="$gimphelp.reportbug/@id"/>
+          </xsl:attribute>
+          <xsl:value-of select="$gimp.reportbug.text" />
+        </a>
         <a>
           <xsl:attribute name="href">
             <xsl:value-of select="$gimphelp.reportbug/@url"/>


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