[gimp-help] web: also show percentage completed for quickreference pdf's



commit f311caff15c27e9fbecfda7dabeba1dba4305d46
Author: Jacob Boerema <jgboerema gmail com>
Date:   Tue Mar 1 16:48:15 2022 -0500

    web: also show percentage completed for quickreference pdf's
    
    Removed links to en_GB and hr quickreference pdf's since there are no
    translations for these language codes and the link's will fail.
    
    (cherry picked from commit 2ca92bc61b40c7e53dd61756b52c6e598bb46bb4)

 .gitignore                       |  1 +
 web/Makefile                     | 14 +++++---
 web/stylesheets/makefile-dep.xsl |  2 +-
 web/website.xml                  | 77 ++++++++++++++++++++++------------------
 4 files changed, 55 insertions(+), 39 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ee4ad6f07..13334b267 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,4 @@ pdf
 INSTALL
 web/depends.tabular
 web/langstats.xml
+web/qrstats.xml
diff --git a/web/Makefile b/web/Makefile
index 1bd92decf..1b72d8fad 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -4,13 +4,13 @@ PCTPROC=$(TOOLSPATH)translated_percentage.py
 STYLEDIR=stylesheets
 AUTOLAYOUT=$(STYLEDIR)/autolayout.xsl
 STYLEOPT=
-HTMLIGNORE= autolayout.xml langstats.xml
+HTMLIGNORE= autolayout.xml langstats.xml qrstats.xml
 
-all:  langstats.xml dirs built style
+all:  langstats.xml qrstats.xml dirs built style
 
 include depends.tabular
 
-autolayout.xml: layout.xml langstats.xml
+autolayout.xml: layout.xml langstats.xml qrstats.xml
        @echo "-- Creating autolayout file"; \
        $(PROC) --noout -o autolayout.xml $(AUTOLAYOUT) layout.xml
        $(MAKE) depends
@@ -18,13 +18,18 @@ autolayout.xml: layout.xml langstats.xml
 clean-langstats:
 # Make sure this gets rebuilt because the source po files are not under /web/
 # so we can't know when we need to update.
-       @echo "-- Deleting langstats.xml";
+       @echo "-- Deleting langstats.xml and qrstats.xml";
        @rm -f langstats.xml;
+       @rm -f qrstats.xml;
 
 langstats.xml:
        @echo "-- Updating translation percentages"; \
        $(PCTPROC) -v -p ../po -o "langstats.xml"
 
+qrstats.xml:
+       @echo "-- Updating quickreference translation percentages"; \
+       $(PCTPROC) -v -q -p ../quickreference/po -o "qrstats.xml"
+
 dirs: autolayout.xml
        @echo "-- Creating directories"; \
        mkdir -p $(BUILD_DIR)/html;
@@ -49,6 +54,7 @@ clean: Makefile
        @rm -rf $(BUILD_DIR)/html; \
        rm -f autolayout.xml;\
        rm -f langstats.xml;\
+       rm -f qrstats.xml;\
 
 depends: autolayout.xml
        $(PROC) $(STYLEDIR)/makefile-dep.xsl $< > depends.tabular
diff --git a/web/stylesheets/makefile-dep.xsl b/web/stylesheets/makefile-dep.xsl
index a8fa00ae6..f71a9f243 100644
--- a/web/stylesheets/makefile-dep.xsl
+++ b/web/stylesheets/makefile-dep.xsl
@@ -15,7 +15,7 @@
   <xsl:apply-templates select="toc"/>
   <xsl:apply-templates select="notoc"/>
   <xsl:text>&#10;</xsl:text>
-  <xsl:text>website.xml: langstats.xml </xsl:text>
+  <xsl:text>website.xml: langstats.xml qrstats.xml </xsl:text>
   <xsl:text>&#10;&#10;</xsl:text>
   <xsl:text>distclean: clean
 &#9;rm -f </xsl:text>
diff --git a/web/website.xml b/web/website.xml
index ff2111e1d..1f45e23b5 100644
--- a/web/website.xml
+++ b/web/website.xml
@@ -6,6 +6,8 @@
   %entities;
   <!ENTITY % langstats SYSTEM "./langstats.xml">
   %langstats;
+  <!ENTITY % qrstats SYSTEM "./qrstats.xml">
+  %qrstats;
 ]>
 <webpage id="index">
 
@@ -199,133 +201,140 @@
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-ca.pdf"
-              title="Catalan">Català (Catalan)</ulink>
+                   title="Catalan">Català (Catalan)</ulink>
+            - &gimphelp.langcodeqr.ca;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-da.pdf"
-                    title="Dansk">Dansk (Danish)</ulink>
-                  </para>
+                   title="Dansk">Dansk (Danish)</ulink>
+            - &gimphelp.langcodeqr.da;%
+          </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-de.pdf"
-                    title="Deutsch">Deutsch (German)</ulink>
-                  </para>
+                   title="Deutsch">Deutsch (German)</ulink>
+            - &gimphelp.langcodeqr.de;%
+          </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-el.pdf"
-              title="Greek">Ελληνικά (Greek)</ulink>
+                   title="Greek">Ελληνικά (Greek)</ulink>
+            - &gimphelp.langcodeqr.el;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-en.pdf"
-              title='English (US)'>English (US)</ulink>
-          </para>
-        </listitem>
-        <listitem>
-          <para>
-            <ulink url="&gimp.release.base;/pdf/gimp-keys-en_GB.pdf"
-              title='British English'>English (British)</ulink>
+                   title='English (US)'>English (US)</ulink>
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-es.pdf"
-              title="Español">Español (Spanish)</ulink>
+                   title="Español">Español (Spanish)</ulink>
+            - &gimphelp.langcodeqr.es;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-fi.pdf"
-                    title='Finnish'>Suomi (Finnish)</ulink>
+                   title='Finnish'>Suomi (Finnish)</ulink>
+            - &gimphelp.langcodeqr.fi;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-fr.pdf"
-                    title="Français">Français (French)</ulink>
-          </para>
-        </listitem>
-        <listitem>
-          <para>
-            <ulink url="&gimp.release.base;/pdf/gimp-keys-hr.pdf"
-                    title="Hrvatski">Hrvatski (Croatian)</ulink>
+                   title="Français">Français (French)</ulink>
+            - &gimphelp.langcodeqr.fr;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-it.pdf"
-                    title="Italiano">Italiano (Italian)</ulink>
+                   title="Italiano">Italiano (Italian)</ulink>
+            - &gimphelp.langcodeqr.it;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-ja.pdf"
-                    title="Japanese">日本語 (Japanese)</ulink>
+                   title="Japanese">日本語 (Japanese)</ulink>
+            - &gimphelp.langcodeqr.ja;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-ko.pdf"
-                    title="Korean">한국어 (Korean)</ulink>
+                   title="Korean">한국어 (Korean)</ulink>
+            - &gimphelp.langcodeqr.ko;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-nl.pdf"
-                    title="Nederlands">Nederlands (Dutch)</ulink>
+                   title="Nederlands">Nederlands (Dutch)</ulink>
+            - &gimphelp.langcodeqr.nl;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-nn.pdf"
-                    title="Norwegian">Norsk Nynorsk (Norwegian)</ulink>
+                   title="Norwegian">Norsk Nynorsk (Norwegian)</ulink>
+            - &gimphelp.langcodeqr.nn;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-pl.pdf"
-                    title="Polish">Polski (Polish)</ulink>
+                   title="Polish">Polski (Polish)</ulink>
+            - &gimphelp.langcodeqr.pl;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-pt_BR.pdf"
-                    title="Português brasileiro">Português brasileiro (Brazilian Portuguese)</ulink>
+                   title="Português brasileiro">Português brasileiro (Brazilian Portuguese)</ulink>
+            - &gimphelp.langcodeqr.pt_BR;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-ro.pdf"
-                    title="Română">Română (Romanian)</ulink>
+                   title="Română">Română (Romanian)</ulink>
+            - &gimphelp.langcodeqr.ro;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-ru.pdf"
-                    title="Pусский">Pусский (Russian)</ulink>
+                   title="Pусский">Pусский (Russian)</ulink>
+            - &gimphelp.langcodeqr.ru;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-sl.pdf"
-                    title="Slovenščina">Slovenščina (Slovenian)</ulink>
+                   title="Slovenščina">Slovenščina (Slovenian)</ulink>
+            - &gimphelp.langcodeqr.sl;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-sv.pdf"
-                    title="Svenska">Svenska (Swedish)</ulink>
+                   title="Svenska">Svenska (Swedish)</ulink>
+            - &gimphelp.langcodeqr.sv;%
           </para>
         </listitem>
         <listitem>
           <para>
             <ulink url="&gimp.release.base;/pdf/gimp-keys-zh_CN.pdf"
-              title="Simplified Chinese">中文 (Simplified Chinese)</ulink>
+                   title="Simplified Chinese">中文 (Simplified Chinese)</ulink>
+              - &gimphelp.langcodeqr.zh_CN;%
           </para>
         </listitem>
       </varlistentry>


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