[gimp-help/wip/wormnest/test-percentage] WIP: show percentage test
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help/wip/wormnest/test-percentage] WIP: show percentage test
- Date: Sat, 26 Feb 2022 22:15:50 +0000 (UTC)
commit 104e597b23137689ab57fa008f90adbb6f1cd232
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Feb 26 16:30:06 2022 -0500
WIP: show percentage test
tools/translated_percentage.py | 0
web/Makefile | 20 ++++--
web/stylesheets/makefile-dep.xsl | 2 +
web/website.xml | 132 +++++++++++++++++++++++++++++++--------
4 files changed, 124 insertions(+), 30 deletions(-)
---
diff --git a/tools/translated_percentage.py b/tools/translated_percentage.py
old mode 100644
new mode 100755
diff --git a/web/Makefile b/web/Makefile
index 0c96454db..197fdbb0d 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -1,17 +1,28 @@
-PROC=xsltproc
+PROC=$(XSLTPROCPATH)xsltproc
+TOOLSPATH=../tools/
+PCTPROC=$(TOOLSPATH)translated_percentage.py
STYLEDIR=stylesheets
AUTOLAYOUT=$(STYLEDIR)/autolayout.xsl
STYLEOPT=
+HTMLIGNORE= autolayout.xml langstats.xml
-all: autolayout.xml dirs built style
+all: langstats.xml autolayout.xml dirs built style
include depends.tabular
-autolayout.xml: layout.xml
+autolayout.xml: langstats.xml layout.xml
@echo "-- Creating autolayout file"; \
$(PROC) --noout -o autolayout.xml $(AUTOLAYOUT) layout.xml
$(MAKE) depends
+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. That's why we always update.
+ @rm -f langstats.xml;
+
+langstats.xml: langstats
+ @echo "-- Updating translation percentages"; \
+ $(PCTPROC) -v -p ../po -o "langstats.xml"
dirs: autolayout.xml
@echo "-- Creating directories"; \
@@ -22,7 +33,7 @@ dirs: autolayout.xml
%.html: autolayout.xml
@echo "-- Building " $@; \
- $(PROC) $(STYLEDIR)/createHTML.xsl $(filter-out autolayout.xml, $^) $(TIDY) > $@
+ $(PROC) $(STYLEDIR)/createHTML.xsl $(filter-out $(HTMLIGNORE), $^) $(TIDY) > $@
built: website
@echo "-- Copying html to $(BUILD_DIR)/html/"; \
@@ -36,6 +47,7 @@ clean: Makefile
@echo "-- Cleaning html and autolayout"
@rm -rf $(BUILD_DIR)/html; \
rm -f autolayout.xml;\
+ rm -f langstats.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 c6056a0c9..a8fa00ae6 100644
--- a/web/stylesheets/makefile-dep.xsl
+++ b/web/stylesheets/makefile-dep.xsl
@@ -15,6 +15,8 @@
<xsl:apply-templates select="toc"/>
<xsl:apply-templates select="notoc"/>
<xsl:text> </xsl:text>
+ <xsl:text>website.xml: langstats.xml </xsl:text>
+ <xsl:text> </xsl:text>
<xsl:text>distclean: clean
	rm -f </xsl:text>
<xsl:text>depends.tabular</xsl:text>
diff --git a/web/website.xml b/web/website.xml
index e31366ddb..15f0e81d9 100644
--- a/web/website.xml
+++ b/web/website.xml
@@ -4,6 +4,8 @@
<!ENTITY help SYSTEM "help.xml" NDATA XML>
<!ENTITY % entities SYSTEM "./entities.xml">
%entities;
+ <!ENTITY % langstats SYSTEM "./langstats.xml">
+ %langstats;
]>
<webpage id="index">
@@ -14,10 +16,11 @@
<section>
<title>GIMP &gimp.release.base; Manuals</title>
-
+<!--
<para class="Flattr">
<?dbhtml-include href="includes/flattr.html" ?>
</para>
+-->
<para>
This page hosts the online user manuals and quick reference guides for
GIMP &gimp.release.base;. Manuals for older versions can be found
@@ -44,74 +47,145 @@
</para>
</note>
+ <para>
+ The online user manuals are updated once a day. After each language
+ (except the US English manual), it lists the completion status, i.e. what
+ percentage of the manual has been translated.
+ </para>
+
<variablelist>
<varlistentry>
<term>Online User Manuals (HTML)</term>
<listitem>
- <para><ulink url="&gimp.release.base;/ca">Catalá (Catalan)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/ca">Catalá (Catalan)</ulink>
+ - &gimphelp.langcode.ca;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/da">Dansk (Danish)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/da">Dansk (Danish)</ulink>
+ - &gimphelp.langcode.da;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/de">Deutsch (German)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/de">Deutsch (German)</ulink>
+ - &gimphelp.langcode.de;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/el">Ελληνικά (Greek)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/el">Ελληνικά (Greek)</ulink>
+ - &gimphelp.langcode.el;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/en">English (US)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/en">English (US)</ulink>
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/en_GB">English (British)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/en_GB">English (British)</ulink>
+ - &gimphelp.langcode.en_GB;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/es">Español (Spanish)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/es">Español (Spanish)</ulink>
+ - &gimphelp.langcode.es;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/fi">Suomi (Finnish)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/fi">Suomi (Finnish)</ulink>
+ - &gimphelp.langcode.fi;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/fr">Français (French)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/fr">Français (French)</ulink>
+ - &gimphelp.langcode.fr;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/hr">Hrvatski (Croatian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/hr">Hrvatski (Croatian)</ulink>
+ - &gimphelp.langcode.hr;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/it">Italiano (Italian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/it">Italiano (Italian)</ulink>
+ - &gimphelp.langcode.it;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/ja">日本語 (Japanese)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/ja">日本語 (Japanese)</ulink>
+ - &gimphelp.langcode.ja;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/ko">한국어 (Korean)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/ko">한국어 (Korean)</ulink>
+ - &gimphelp.langcode.ko;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/lt">Lietuvis (Lithuanian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/lt">Lietuvis (Lithuanian)</ulink>
+ - &gimphelp.langcode.lt;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/nl">Nederlands (Dutch)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/nl">Nederlands (Dutch)</ulink>
+ - &gimphelp.langcode.nl;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/nn">Nynorsk (Norwegian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/nn">Norse Nynorsk (Norwegian)</ulink>
+ - &gimphelp.langcode.nn;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/pt_BR">Português brasileiro (Brazilian
Portuguese)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/pt_BR">Português brasileiro (Brazilian Portuguese)</ulink>
+ - &gimphelp.langcode.pt_BR;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/ro">Română (Romanian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/ro">Română (Romanian)</ulink>
+ - &gimphelp.langcode.ro;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/ru">Pусский (Russian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/ru">Pусский (Russian)</ulink>
+ - &gimphelp.langcode.ru;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/sl">Slovenščina (Slovenian)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/sl">Slovenščina (Slovenian)</ulink>
+ - &gimphelp.langcode.sl;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/sv">Svenska (Swedish)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/sv">Svenska (Swedish)</ulink>
+ - &gimphelp.langcode.sv;%
+ </para>
</listitem>
<listitem>
- <para><ulink url="&gimp.release.base;/zh_CN">中文 (Simplified Chinese)</ulink></para>
+ <para>
+ <ulink url="&gimp.release.base;/zh_CN">中文 (Simplified Chinese)</ulink>
+ - &gimphelp.langcode.zh_CN;%
+ </para>
</listitem>
</varlistentry>
<varlistentry>
@@ -126,13 +200,13 @@
<para>
<ulink url="&gimp.release.base;/pdf/gimp-keys-da.pdf"
title="Dansk">Dansk (Danish)</ulink>
- </para>
+ </para>
</listitem>
<listitem>
<para>
<ulink url="&gimp.release.base;/pdf/gimp-keys-de.pdf"
title="Deutsch">Deutsch (German)</ulink>
- </para>
+ </para>
</listitem>
<listitem>
<para>
@@ -206,6 +280,12 @@
title="Norwegian">Nynorsk (Norwegian)</ulink>
</para>
</listitem>
+ <listitem>
+ <para>
+ <ulink url="&gimp.release.base;/pdf/gimp-keys-pl.pdf"
+ title="Polish">Polski (Polish)</ulink>
+ </para>
+ </listitem>
<listitem>
<para>
<ulink url="&gimp.release.base;/pdf/gimp-keys-pt_BR.pdf"
@@ -250,7 +330,7 @@
<para>
<ulink
url="https://download.gimp.org/mirror/pub/gimp/help/windows/2.10/">GIMP
- 2.10 manual installers for Microsoft Windows
+ 2.10 manual installers for Microsoft Windows (2020-03-19)
</ulink>
</para>
</listitem>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]