From e7a19a8a695dd6d2cdb9ee961394f959fbe7cb4c Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 20 Sep 2023 20:19:11 +0200 Subject: [PATCH] Trimmed set of translations built by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only translations touched the last 12 months or where >= 2% of the strings are translated according to Weblate get build rules in docs/src/Submakefile, and only languages with >50% get Debian packages with the translations. The new guidelines are documented in docs/README.adoc. The set of translations built and published on https://linuxcnc.org/docs/devel/html/ are now Arabic, German, Spanish, French, Norwegian Bokmål, Russian, Swedish, Turkish and Simplified Chinese. Hungarian and Vietnamese are no longer built. Reduced the list in index.html to the built ones. Debian packages for French, Spanish and Simplified Chinese are no longer created. --- debian/control.docs.in | 50 ----- debian/linuxcnc-doc-es.doc-base | 8 - debian/linuxcnc-doc-es.docs | 9 - debian/linuxcnc-doc-es.install | 1 - debian/linuxcnc-doc-es.lintian-overrides | 4 - debian/linuxcnc-doc-fr.doc-base | 9 - debian/linuxcnc-doc-fr.docs | 6 - debian/linuxcnc-doc-fr.install | 1 - debian/linuxcnc-doc-fr.lintian-overrides | 4 - debian/linuxcnc-doc-zh-cn.docs | 6 - debian/linuxcnc-doc-zh-cn.install | 1 - debian/linuxcnc-doc-zh-cn.lintian-overrides | 4 - debian/rules.in | 15 +- docs/README.adoc | 13 +- docs/src/Submakefile | 199 ++++++++++++++++---- docs/src/index.tmpl | 12 +- 16 files changed, 185 insertions(+), 157 deletions(-) delete mode 100644 debian/linuxcnc-doc-es.doc-base delete mode 100644 debian/linuxcnc-doc-es.docs delete mode 100644 debian/linuxcnc-doc-es.install delete mode 100644 debian/linuxcnc-doc-es.lintian-overrides delete mode 100644 debian/linuxcnc-doc-fr.doc-base delete mode 100644 debian/linuxcnc-doc-fr.docs delete mode 100644 debian/linuxcnc-doc-fr.install delete mode 100644 debian/linuxcnc-doc-fr.lintian-overrides delete mode 100644 debian/linuxcnc-doc-zh-cn.docs delete mode 100644 debian/linuxcnc-doc-zh-cn.install delete mode 100644 debian/linuxcnc-doc-zh-cn.lintian-overrides diff --git a/debian/control.docs.in b/debian/control.docs.in index 2a1f2172edf..718d7bd8b05 100644 --- a/debian/control.docs.in +++ b/debian/control.docs.in @@ -27,53 +27,3 @@ Description: motion controller for CNC machines and robots (English documentatio applications (milling, cutting, routing, etc.). . This package contains the documentation in English. - -Package: linuxcnc-doc-fr -Provides: linuxcnc-doc -Architecture: all -Multi-Arch: foreign -Depends: ${misc:Depends} -Breaks: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4) -Replaces: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4) -Recommends: xdg-utils -Suggests: pdf-viewer -Description: motion controller for CNC machines and robots (French documentation) - LinuxCNC is the next-generation Enhanced Machine Controller which - provides motion control for CNC machine tools and robotic - applications (milling, cutting, routing, etc.). - . - This package contains the documentation in French. - -Package: linuxcnc-doc-es -Provides: linuxcnc-doc -Architecture: all -Multi-Arch: foreign -Depends: ${misc:Depends} -Breaks: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4) -Replaces: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4) -Recommends: xdg-utils -Suggests: pdf-viewer -Description: controlador de movimiento para máquinas CNC y robots (Español). - LinuxCNC es EMC (controlador de máquina mejorado) que proporciona - control de movimiento para máquinas herramientas CNC (fresado, - torneado, ruteado, etc.) y aplicaciones de robótica. - . - Este paquete contiene la documentación en español. - -Package: linuxcnc-doc-zh-cn -Provides: linuxcnc-doc -Architecture: all -Multi-Arch: foreign -Depends: ${misc:Depends} -Recommends: xdg-utils -Suggests: pdf-viewer -Conflicts: linuxcnc-doc-cn -Replaces: linuxcnc-doc-cn -Description: motion controller for CNC machines and robots (Chinese - documentation) - LinuxCNC is the next-generation Enhanced Machine Controller which - provides motion control for CNC machine tools and robotic - applications (milling, cutting, routing, etc.). - . - This package contains the documentation in Chinese. - diff --git a/debian/linuxcnc-doc-es.doc-base b/debian/linuxcnc-doc-es.doc-base deleted file mode 100644 index 6aa86535fef..00000000000 --- a/debian/linuxcnc-doc-es.doc-base +++ /dev/null @@ -1,8 +0,0 @@ -Document: linuxcnc-doc-es -Title: LinuxCNC Documentation Spanish -Section: Science/Engineering - -Format: PDF -Files: - /usr/share/doc/linuxcnc/LinuxCNC_Documentation_es.pdf - /usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_es.pdf diff --git a/debian/linuxcnc-doc-es.docs b/debian/linuxcnc-doc-es.docs deleted file mode 100644 index d756b6f22df..00000000000 --- a/debian/linuxcnc-doc-es.docs +++ /dev/null @@ -1,9 +0,0 @@ -usr/share/doc/linuxcnc/LinuxCNC_Developer_es.pdf -usr/share/doc/linuxcnc/LinuxCNC_Documentation_es.pdf -usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_es.pdf -usr/share/doc/linuxcnc/LinuxCNC_Integrator_es.pdf - -usr/share/doc/linuxcnc/asciidoc-markup_es.adoc -usr/share/doc/linuxcnc/rtfaults_es.adoc - -docs/html/es/gcode.html diff --git a/debian/linuxcnc-doc-es.install b/debian/linuxcnc-doc-es.install deleted file mode 100644 index 51024100c20..00000000000 --- a/debian/linuxcnc-doc-es.install +++ /dev/null @@ -1 +0,0 @@ -debian/extras/usr/share/applications/*_es.desktop usr/share/applications/ diff --git a/debian/linuxcnc-doc-es.lintian-overrides b/debian/linuxcnc-doc-es.lintian-overrides deleted file mode 100644 index 7cfb4748e7a..00000000000 --- a/debian/linuxcnc-doc-es.lintian-overrides +++ /dev/null @@ -1,4 +0,0 @@ -linuxcnc-doc-es: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-documentation_es.desktop] -linuxcnc-doc-es: desktop-command-not-in-package x-www-browser [usr/share/applications/linuxcnc-gcoderef_es.desktop] -linuxcnc-doc-es: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-gettingstarted_es.desktop] -linuxcnc-doc-es: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-integratorinfo_es.desktop] diff --git a/debian/linuxcnc-doc-fr.doc-base b/debian/linuxcnc-doc-fr.doc-base deleted file mode 100644 index a4336e16215..00000000000 --- a/debian/linuxcnc-doc-fr.doc-base +++ /dev/null @@ -1,9 +0,0 @@ -Document: linuxcnc-doc-fr -Title: LinuxCNC Documentation French -Section: Science/Engineering - -Format: PDF -Files: - /usr/share/doc/linuxcnc/LinuxCNC_Documentation_fr.pdf - /usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_fr.pdf - /usr/share/doc/linuxcnc/LinuxCNC_Integrator_fr.pdf diff --git a/debian/linuxcnc-doc-fr.docs b/debian/linuxcnc-doc-fr.docs deleted file mode 100644 index 82d325edc85..00000000000 --- a/debian/linuxcnc-doc-fr.docs +++ /dev/null @@ -1,6 +0,0 @@ -usr/share/doc/linuxcnc/LinuxCNC_Developer_fr.pdf -usr/share/doc/linuxcnc/LinuxCNC_Documentation_fr.pdf -usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_fr.pdf -usr/share/doc/linuxcnc/LinuxCNC_Integrator_fr.pdf - -docs/html/fr/gcode.html diff --git a/debian/linuxcnc-doc-fr.install b/debian/linuxcnc-doc-fr.install deleted file mode 100644 index c7a1680c790..00000000000 --- a/debian/linuxcnc-doc-fr.install +++ /dev/null @@ -1 +0,0 @@ -debian/extras/usr/share/applications/*_fr.desktop usr/share/applications/ diff --git a/debian/linuxcnc-doc-fr.lintian-overrides b/debian/linuxcnc-doc-fr.lintian-overrides deleted file mode 100644 index e469d5249a6..00000000000 --- a/debian/linuxcnc-doc-fr.lintian-overrides +++ /dev/null @@ -1,4 +0,0 @@ -linuxcnc-doc-fr: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-documentation_fr.desktop] -linuxcnc-doc-fr: desktop-command-not-in-package x-www-browser [usr/share/applications/linuxcnc-gcoderef_fr.desktop] -linuxcnc-doc-fr: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-gettingstarted_fr.desktop] -linuxcnc-doc-fr: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-integratorinfo_fr.desktop] diff --git a/debian/linuxcnc-doc-zh-cn.docs b/debian/linuxcnc-doc-zh-cn.docs deleted file mode 100644 index dfd385eb3ad..00000000000 --- a/debian/linuxcnc-doc-zh-cn.docs +++ /dev/null @@ -1,6 +0,0 @@ -usr/share/doc/linuxcnc/LinuxCNC_Developer_zh_CN.pdf -usr/share/doc/linuxcnc/LinuxCNC_Documentation_zh_CN.pdf -usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_zh_CN.pdf -usr/share/doc/linuxcnc/LinuxCNC_Integrator_zh_CN.pdf - -docs/html/zh_CN/gcode.html diff --git a/debian/linuxcnc-doc-zh-cn.install b/debian/linuxcnc-doc-zh-cn.install deleted file mode 100644 index 873f4db4a38..00000000000 --- a/debian/linuxcnc-doc-zh-cn.install +++ /dev/null @@ -1 +0,0 @@ -debian/extras/usr/share/applications/*_zh_CN.desktop usr/share/applications/ diff --git a/debian/linuxcnc-doc-zh-cn.lintian-overrides b/debian/linuxcnc-doc-zh-cn.lintian-overrides deleted file mode 100644 index 3e95693fb74..00000000000 --- a/debian/linuxcnc-doc-zh-cn.lintian-overrides +++ /dev/null @@ -1,4 +0,0 @@ -linuxcnc-doc-zh-cn: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-documentation_zh_CN.desktop] -linuxcnc-doc-zh-cn: desktop-command-not-in-package x-www-browser [usr/share/applications/linuxcnc-gcoderef_zh_CN.desktop] -linuxcnc-doc-zh-cn: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-gettingstarted_zh_CN.desktop] -linuxcnc-doc-zh-cn: desktop-command-not-in-package xdg-open [usr/share/applications/linuxcnc-integratorinfo_zh_CN.desktop] diff --git a/debian/rules.in b/debian/rules.in index bd5d153760c..466ca324d15 100644 --- a/debian/rules.in +++ b/debian/rules.in @@ -113,17 +113,12 @@ override_dh_installdocs-indep: dh_installdocs --doc-main-package=@MAIN_PACKAGE_NAME@ --package=linuxcnc-doc-en mv debian/linuxcnc-doc-en/usr/share/doc/@MAIN_PACKAGE_NAME@ debian/linuxcnc-doc-en/usr/share/doc/linuxcnc - dh_installdocs --doc-main-package=@MAIN_PACKAGE_NAME@ --package=linuxcnc-doc-es - mv debian/linuxcnc-doc-es/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode.html debian/linuxcnc-doc-es/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode_es.html - mv debian/linuxcnc-doc-es/usr/share/doc/@MAIN_PACKAGE_NAME@ debian/linuxcnc-doc-es/usr/share/doc/linuxcnc +# Remove files for translations created where we do not want Debian packages. + for l in ar es fr ru zh_CN; do \ + $(RM) debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_*_$$l.pdf; \ + done + $(RM) debian/tmp/usr/share/doc/linuxcnc/*_es.adoc - dh_installdocs --doc-main-package=@MAIN_PACKAGE_NAME@ --package=linuxcnc-doc-fr - mv debian/linuxcnc-doc-fr/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode.html debian/linuxcnc-doc-fr/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode_fr.html - mv debian/linuxcnc-doc-fr/usr/share/doc/@MAIN_PACKAGE_NAME@ debian/linuxcnc-doc-fr/usr/share/doc/linuxcnc - - dh_installdocs --doc-main-package=@MAIN_PACKAGE_NAME@ --package=linuxcnc-doc-zh-cn - mv debian/linuxcnc-doc-zh-cn/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode.html debian/linuxcnc-doc-zh-cn/usr/share/doc/@MAIN_PACKAGE_NAME@/gcode_zh_CN.html - mv debian/linuxcnc-doc-zh-cn/usr/share/doc/@MAIN_PACKAGE_NAME@ debian/linuxcnc-doc-zh-cn/usr/share/doc/linuxcnc override_dh_compress: diff --git a/docs/README.adoc b/docs/README.adoc index fd1cf94a5d4..2d66fd82c44 100644 --- a/docs/README.adoc +++ b/docs/README.adoc @@ -183,7 +183,18 @@ the translation level raise to a sensible level (for example not 0%), build rules need to be added to use the generated translations to build HTML and PDF editions of the translation. -Add the new language code to the proper place in docs/po4a.cfg. +At the moment, build rules are created for languages with more than 2 +percent translated +link:https://hosted.weblate.org/projects/linuxcnc/linuxcnc-docs/[according +to Weblate] or which have been updated the last 12 months according to +the PO-Revision-Date field in docs/po/*.po. Documentaion packages for +Debian are build for languages with more than 50 percent translation. +This ensure translators and proof readers can see the result of their +effort on https://linuxcnc.org/docs/devel/html/, while we limit the +time spent building translations to those that are actively worked on +or at least have a very the bare minimum translated. + +Add the new language code to the [po4a_langs] section of docs/po4a.cfg. Update build rules for the new language in `docs/src/Submakefile`. Edit debian/control.in to add the new linuxcnc-doc-$NEWLANG package. diff --git a/docs/src/Submakefile b/docs/src/Submakefile index 9dd06732ecf..8335aeadc30 100644 --- a/docs/src/Submakefile +++ b/docs/src/Submakefile @@ -1,4 +1,4 @@ -.PHONY: docs docsclean checkref checkref_en checkref_es checkref_fr checkref_nb checkref_vi checkref_zh_CN +.PHONY: docs docsclean checkref checkref_en checkref_ar checkref_de checkref_es checkref_fr checkref_nb checkref_ru checkref_sv checkref_tr checkref_zh_CN .PHONY: pdfdocs htmldocs install-doc install-doc-pdf install-doc-html # To make linuxcnc-checklink widely available @@ -205,6 +205,10 @@ postatus:: echo -n "$$p "; msgfmt --statistics -o /dev/null $$p; \ done +DOC_SRCS_AR = $(subst $(DOC_SRCDIR)/,, \ + $(wildcard $(DOC_SRCDIR)/ar/*.adoc) \ + $(wildcard $(DOC_SRCDIR)/ar/*/*.adoc)) + DOC_SRCS_DE = $(subst $(DOC_SRCDIR)/,, \ $(wildcard $(DOC_SRCDIR)/de/*.adoc) \ $(wildcard $(DOC_SRCDIR)/de/*/*.adoc)) @@ -217,48 +221,63 @@ DOC_SRCS_FR = $(subst $(DOC_SRCDIR)/,, \ $(wildcard $(DOC_SRCDIR)/fr/*.adoc) \ $(wildcard $(DOC_SRCDIR)/fr/*/*.adoc)) -DOC_SRCS_HU = $(subst $(DOC_SRCDIR)/,, \ - $(wildcard $(DOC_SRCDIR)/hu/*.adoc) \ - $(wildcard $(DOC_SRCDIR)/hu/*/*.adoc)) - DOC_SRCS_NB = $(subst $(DOC_SRCDIR)/,, \ $(wildcard $(DOC_SRCDIR)/nb/*.adoc) \ $(wildcard $(DOC_SRCDIR)/nb/*/*.adoc)) +DOC_SRCS_RU = $(subst $(DOC_SRCDIR)/,, \ + $(wildcard $(DOC_SRCDIR)/ru/*.adoc) \ + $(wildcard $(DOC_SRCDIR)/ru/*/*.adoc)) + +DOC_SRCS_SV = $(subst $(DOC_SRCDIR)/,, \ + $(wildcard $(DOC_SRCDIR)/sv/*.adoc) \ + $(wildcard $(DOC_SRCDIR)/sv/*/*.adoc)) + +DOC_SRCS_TR = $(subst $(DOC_SRCDIR)/,, \ + $(wildcard $(DOC_SRCDIR)/tr/*.adoc) \ + $(wildcard $(DOC_SRCDIR)/tr/*/*.adoc)) + DOC_SRCS_ZH_CN = $(subst $(DOC_SRCDIR)/,, \ $(wildcard $(DOC_SRCDIR)/zh_CN/*.adoc) \ $(wildcard $(DOC_SRCDIR)/zh_CN/*/*.adoc)) -DOC_SRCS = $(DOC_SRCS_EN) $(DOC_SRCS_DE) $(DOC_SRCS_ES) $(DOC_SRCS_FR) $(DOC_SRCS_HU) $(DOC_SRCS_NB) $(DOC_SRCS_ZH_CN) +DOC_SRCS = $(DOC_SRCS_EN) $(DOC_SRCS_AR) $(DOC_SRCS_DE) $(DOC_SRCS_ES) $(DOC_SRCS_FR) $(DOC_SRCS_NB) $(DOC_SRCS_RU) $(DOC_SRCS_SV) $(DOC_SRCS_TR) $(DOC_SRCS_ZH_CN) DOC_SRCS_EN_SMALL = $(filter-out Master_%,$(DOC_SRCS_EN)) +DOC_SRCS_AR_SMALL = $(filter-out Master_%,$(DOC_SRCS_AR)) DOC_SRCS_DE_SMALL = $(filter-out Master_%,$(DOC_SRCS_DE)) DOC_SRCS_ES_SMALL = $(filter-out Master_%,$(DOC_SRCS_ES)) DOC_SRCS_FR_SMALL = $(filter-out Master_%,$(DOC_SRCS_FR)) -DOC_SRCS_HU_SMALL = $(filter-out Master_%,$(DOC_SRCS_HU)) DOC_SRCS_NB_SMALL = $(filter-out Master_%,$(DOC_SRCS_NB)) +DOC_SRCS_RU_SMALL = $(filter-out Master_%,$(DOC_SRCS_RU)) +DOC_SRCS_SV_SMALL = $(filter-out Master_%,$(DOC_SRCS_SV)) +DOC_SRCS_TR_SMALL = $(filter-out Master_%,$(DOC_SRCS_TR)) DOC_SRCS_ZH_CN_SMALL = $(filter-out Master_%,$(DOC_SRCS_ZH_CN)) DOC_SRCS_HTML = $(patsubst %.adoc, %.html, $(foreach p, $(DOC_SRCS), $(if $(findstring Master_, $(p)),, $p))) DOC_TARGETS_HTML = $(addprefix $(DOC_DIR)/html/,$(DOC_SRCS_HTML)) #$(subst /,_,$(DOC_SRCS_HTML))) DOC_TARGETS_XML = $(patsubst $(DOC_DIR)/html/%.html, objects/%.xml, $(DOC_TARGETS_HTML)) +DOC_TARGETS_XML_AR = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /ar/, $(p)), $p)) DOC_TARGETS_XML_DE = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /de/, $(p)), $p)) DOC_TARGETS_XML_ES = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /es/, $(p)), $p)) DOC_TARGETS_XML_FR = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /fr/, $(p)), $p)) -DOC_TARGETS_XML_HU = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /hu/, $(p)), $p)) DOC_TARGETS_XML_NB = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /nb/, $(p)), $p)) -DOC_TARGETS_XML_VI = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /vi/, $(p)), $p)) +DOC_TARGETS_XML_RU = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /ru/, $(p)), $p)) +DOC_TARGETS_XML_SV = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /sv/, $(p)), $p)) +DOC_TARGETS_XML_TR = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /tr/, $(p)), $p)) DOC_TARGETS_XML_ZH_CN = $(foreach p, $(DOC_TARGETS_XML), $(if $(findstring /zh_CN/, $(p)), $p)) -DOC_TARGETS_XML_EN = $(filter-out $(DOC_TARGETS_XML_DE), $(filter-out $(DOC_TARGETS_XML_ES), $(filter-out $(DOC_TARGETS_XML_FR), $(filter-out $(DOC_TARGETS_XML_HU), $(filter-out $(DOC_TARGETS_XML_NB), $(filter-out $(DOC_TARGETS_XML_VI), $(filter-out $(DOC_TARGETS_XML_ZH_CN), $(DOC_TARGETS_XML)))))))) +DOC_TARGETS_XML_EN = $(filter-out $(DOC_TARGETS_XML_AR), $(filter-out $(DOC_TARGETS_XML_DE), $(filter-out $(DOC_TARGETS_XML_ES), $(filter-out $(DOC_TARGETS_XML_FR), $(filter-out $(DOC_TARGETS_XML_NB), $(filter-out $(DOC_TARGETS_XML_RU), $(filter-out $(DOC_TARGETS_XML_SV), $(filter-out $(DOC_TARGETS_XML_TR), $(filter-out $(DOC_TARGETS_XML_ZH_CN), $(DOC_TARGETS_XML)))))))))) +DOC_TARGETS_HTML_AR = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /ar/, $(p)), $p)) DOC_TARGETS_HTML_DE = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /de/, $(p)), $p)) DOC_TARGETS_HTML_ES = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /es/, $(p)), $p)) DOC_TARGETS_HTML_FR = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /fr/, $(p)), $p)) -DOC_TARGETS_HTML_HU = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /hu/, $(p)), $p)) DOC_TARGETS_HTML_NB = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /nb/, $(p)), $p)) -DOC_TARGETS_HTML_VI = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /vi/, $(p)), $p)) +DOC_TARGETS_HTML_RU = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /ru/, $(p)), $p)) +DOC_TARGETS_HTML_SV = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /sv/, $(p)), $p)) +DOC_TARGETS_HTML_TR = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /tr/, $(p)), $p)) DOC_TARGETS_HTML_ZH_CN = $(foreach p, $(DOC_TARGETS_HTML), $(if $(findstring /zh_CN/, $(p)), $p)) -DOC_TARGETS_HTML_EN = $(filter-out $(DOC_TARGETS_HTML_DE), $(filter-out $(DOC_TARGETS_HTML_ES), $(filter-out $(DOC_TARGETS_HTML_FR), $(filter-out $(DOC_TARGETS_HTML_HU), $(filter-out $(DOC_TARGETS_HTML_NB), $(filter-out $(DOC_TARGETS_HTML_VI), $(filter-out $(DOC_TARGETS_HTML_ZH_CN), $(DOC_TARGETS_HTML)))))))) +DOC_TARGETS_HTML_EN = $(filter-out $(DOC_TARGETS_HTML_AR), $(filter-out $(DOC_TARGETS_HTML_DE), $(filter-out $(DOC_TARGETS_HTML_ES), $(filter-out $(DOC_TARGETS_HTML_FR), $(filter-out $(DOC_TARGETS_HTML_NB), $(filter-out $(DOC_TARGETS_HTML_RU), $(filter-out $(DOC_TARGETS_HTML_SV), $(filter-out $(DOC_TARGETS_HTML_TR), $(filter-out $(DOC_TARGETS_HTML_ZH_CN), $(DOC_TARGETS_HTML)))))))))) MAN_HTML_TARGETS = $(patsubst $(DOC_DIR)/man/%, $(DOC_DIR)/html/man/%.html, $(MAN_SRCS)) @@ -267,6 +286,10 @@ PDF_TARGETS_EN := $(addprefix $(DOC_DIR)/, $(patsubst %.adoc,%.pdf, \ LinuxCNC_Manual_Pages.pdf \ ) \ +PDF_TARGETS_AR = $(addprefix $(DOC_DIR)/, $(subst ar/,, \ + $(patsubst %.adoc,%_ar.pdf, \ + $(subst Master_,LinuxCNC_, $(filter ar/Master_%,$(DOC_SRCS_AR)))))) + PDF_TARGETS_DE = $(addprefix $(DOC_DIR)/, $(subst de/,, \ $(patsubst %.adoc,%_de.pdf, \ $(subst Master_,LinuxCNC_, $(filter de/Master_%,$(DOC_SRCS_DE)))))) @@ -283,11 +306,23 @@ PDF_TARGETS_NB = $(addprefix $(DOC_DIR)/, $(subst nb/,, \ $(patsubst %.adoc,%_nb.pdf, \ $(subst Master_,LinuxCNC_, $(filter nb/Master_%,$(DOC_SRCS_NB)))))) +PDF_TARGETS_RU = $(addprefix $(DOC_DIR)/, $(subst ru/,, \ + $(patsubst %.adoc,%_ru.pdf, \ + $(subst Master_,LinuxCNC_, $(filter ru/Master_%,$(DOC_SRCS_RU)))))) + +PDF_TARGETS_SV = $(addprefix $(DOC_DIR)/, $(subst sv/,, \ + $(patsubst %.adoc,%_sv.pdf, \ + $(subst Master_,LinuxCNC_, $(filter sv/Master_%,$(DOC_SRCS_RU)))))) + +PDF_TARGETS_TR = $(addprefix $(DOC_DIR)/, $(subst tr/,, \ + $(patsubst %.adoc,%_tr.pdf, \ + $(subst Master_,LinuxCNC_, $(filter tr/Master_%,$(DOC_SRCS_RU)))))) + PDF_TARGETS_ZH_CN = $(addprefix $(DOC_DIR)/, $(subst zh_CN/,, \ $(patsubst %.adoc,%_zh_CN.pdf, \ $(subst Master_,LinuxCNC_, $(filter zh_CN/Master_%,$(DOC_SRCS_ZH_CN)))))) -PDF_TARGETS = $(PDF_TARGETS_EN) $(PDF_TARGETS_DE) $(PDF_TARGETS_ES) $(PDF_TARGETS_FR) $(PDF_TARGETS_NB) +PDF_TARGETS = $(PDF_TARGETS_EN) $(PDF_TARGETS_AR) $(PDF_TARGETS_DE) $(PDF_TARGETS_ES) $(PDF_TARGETS_FR) $(PDF_TARGETS_NB) $(PDF_TARGETS_RU) $(PDF_TARGETS_SV) $(PDF_TARGETS_TR) # Chinese PDFs only build with xetex, which is missing in stretch SHELL=/bin/bash @@ -365,11 +400,14 @@ gen_complist: $(DOC_SRCDIR)/gen_complist.py $(DOC_SRCDIR)/hal/components.adoc $( mkdir -p $(DOC_DIR)/html/hal python3 $(DOC_SRCDIR)/gen_complist.py $(DOC_SRCDIR)/hal/components.adoc -checkref: checkref_en checkref_de checkref_es checkref_fr checkref_hu checkref_nb checkref_vi checkref_zh_CN +checkref: checkref_en checkref_ar checkref_de checkref_es checkref_fr checkref_nb checkref_ru checkref_sv checkref_tr checkref_zh_CN checkref_en: $(DOC_TARGETS_HTML_EN) $(DOC_DIR)/html/index.html $(DOC_DIR)/html/gcode.html .htmldoc-stamp @$(DOC_SRCDIR)/checkref English $^ +checkref_ar: $(DOC_TARGETS_HTML_AR) $(DOC_DIR)/html/ar/gcode.html .htmldoc-stamp + @$(DOC_SRCDIR)/checkref Arabic $^ + checkref_de: $(DOC_TARGETS_HTML_DE) $(DOC_DIR)/html/de/gcode.html .htmldoc-stamp @$(DOC_SRCDIR)/checkref German $^ @@ -379,17 +417,20 @@ checkref_es: $(DOC_TARGETS_HTML_ES) $(DOC_DIR)/html/es/gcode.html .htmldoc-stamp checkref_fr: $(DOC_TARGETS_HTML_FR) $(DOC_DIR)/html/fr/gcode.html .htmldoc-stamp @$(DOC_SRCDIR)/checkref French $^ -checkref_hu: $(DOC_TARGETS_HTML_HU) .htmldoc-stamp - @$(DOC_SRCDIR)/checkref Hungarian $^ - -checkref_nb: $(DOC_TARGETS_HTML_NB) .htmldoc-stamp +checkref_nb: $(DOC_TARGETS_HTML_NB) $(DOC_DIR)/html/nb/gcode.html .htmldoc-stamp @$(DOC_SRCDIR)/checkref Norwegian $^ -checkref_zh_CN: $(DOC_TARGETS_HTML_ZH_CN) .htmldoc-stamp - @$(DOC_SRCDIR)/checkref Chinese $^ +checkref_ru: $(DOC_TARGETS_HTML_RU) $(DOC_DIR)/html/ru/gcode.html .htmldoc-stamp + @$(DOC_SRCDIR)/checkref Russian $^ + +checkref_sv: $(DOC_TARGETS_HTML_SV) $(DOC_DIR)/html/sv/gcode.html .htmldoc-stamp + @$(DOC_SRCDIR)/checkref Swedish $^ + +checkref_tr: $(DOC_TARGETS_HTML_TR) $(DOC_DIR)/html/tr/gcode.html .htmldoc-stamp + @$(DOC_SRCDIR)/checkref Turkish $^ -checkref_vi: $(DOC_TARGETS_HTML_VI) $(DOC_DIR)/html/vi/gcode.html .htmldoc-stamp - @$(DOC_SRCDIR)/checkref Vietnamese $^ +checkref_zh_CN: $(DOC_TARGETS_HTML_ZH_CN) $(DOC_DIR)/html/zh_CN/gcode.html .htmldoc-stamp + @$(DOC_SRCDIR)/checkref Chinese $^ MAN_SRCS_NOSO = $(patsubst $(DOC_DIR)/man/%,%, \ $(shell grep -L '^\.so ' $(MAN_SRCS))) @@ -406,6 +447,8 @@ $(DOC_DIR)/LinuxCNC_Manual_Pages.pdf: $(MAN_SRCS) objects/var-PDF_MAN_ORDER $(DOC_DIR)/LinuxCNC_Getting_Started.pdf: $(DOC_SRCDIR)/Master_Getting_Started.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Getting_Started_ar.pdf: $(DOC_SRCDIR)/ar/Master_Getting_Started.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Getting_Started_de.pdf: $(DOC_SRCDIR)/de/Master_Getting_Started.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Getting_Started_es.pdf: $(DOC_SRCDIR)/es/Master_Getting_Started.pdf @@ -414,11 +457,19 @@ $(DOC_DIR)/LinuxCNC_Getting_Started_fr.pdf: $(DOC_SRCDIR)/fr/Master_Getting_Star @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Getting_Started_nb.pdf: $(DOC_SRCDIR)/nb/Master_Getting_Started.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Getting_Started_ru.pdf: $(DOC_SRCDIR)/ru/Master_Getting_Started.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Getting_Started_sv.pdf: $(DOC_SRCDIR)/sv/Master_Getting_Started.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Getting_Started_tr.pdf: $(DOC_SRCDIR)/tr/Master_Getting_Started.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Getting_Started_zh_CN.pdf: $(DOC_SRCDIR)/zh_CN/Master_Getting_Started.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Documentation.pdf: $(DOC_SRCDIR)/Master_Documentation.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Documentation_ar.pdf: $(DOC_SRCDIR)/ar/Master_Documentation.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Documentation_de.pdf: $(DOC_SRCDIR)/de/Master_Documentation.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Documentation_es.pdf: $(DOC_SRCDIR)/es/Master_Documentation.pdf @@ -427,11 +478,19 @@ $(DOC_DIR)/LinuxCNC_Documentation_fr.pdf: $(DOC_SRCDIR)/fr/Master_Documentation. @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Documentation_nb.pdf: $(DOC_SRCDIR)/nb/Master_Documentation.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Documentation_ru.pdf: $(DOC_SRCDIR)/ru/Master_Documentation.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Documentation_sv.pdf: $(DOC_SRCDIR)/sv/Master_Documentation.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Documentation_tr.pdf: $(DOC_SRCDIR)/tr/Master_Documentation.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Documentation_zh_CN.pdf: $(DOC_SRCDIR)/zh_CN/Master_Documentation.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Integrator.pdf: $(DOC_SRCDIR)/Master_Integrator.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Integrator_ar.pdf: $(DOC_SRCDIR)/ar/Master_Integrator.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Integrator_de.pdf: $(DOC_SRCDIR)/de/Master_Integrator.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Integrator_es.pdf: $(DOC_SRCDIR)/es/Master_Integrator.pdf @@ -440,11 +499,19 @@ $(DOC_DIR)/LinuxCNC_Integrator_fr.pdf: $(DOC_SRCDIR)/fr/Master_Integrator.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Integrator_nb.pdf: $(DOC_SRCDIR)/nb/Master_Integrator.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Integrator_ru.pdf: $(DOC_SRCDIR)/ru/Master_Integrator.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Integrator_sv.pdf: $(DOC_SRCDIR)/sv/Master_Integrator.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Integrator_tr.pdf: $(DOC_SRCDIR)/tr/Master_Integrator.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Integrator_zh_CN.pdf: $(DOC_SRCDIR)/zh_CN/Master_Integrator.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Developer.pdf: $(DOC_SRCDIR)/Master_Developer.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Developer_ar.pdf: $(DOC_SRCDIR)/ar/Master_Developer.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Developer_de.pdf: $(DOC_SRCDIR)/de/Master_Developer.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Developer_es.pdf: $(DOC_SRCDIR)/es/Master_Developer.pdf @@ -453,6 +520,12 @@ $(DOC_DIR)/LinuxCNC_Developer_fr.pdf: $(DOC_SRCDIR)/fr/Master_Developer.pdf @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Developer_nb.pdf: $(DOC_SRCDIR)/nb/Master_Developer.pdf @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Developer_ru.pdf: $(DOC_SRCDIR)/ru/Master_Developer.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Developer_sv.pdf: $(DOC_SRCDIR)/sv/Master_Developer.pdf + @ln -f $< $@ +$(DOC_DIR)/LinuxCNC_Developer_tr.pdf: $(DOC_SRCDIR)/tr/Master_Developer.pdf + @ln -f $< $@ $(DOC_DIR)/LinuxCNC_Developer_zh_CN.pdf: $(DOC_SRCDIR)/zh_CN/Master_Developer.pdf @ln -f $< $@ @@ -551,6 +624,9 @@ objects/%.links: objects/%.links-stamp objects/xref_en.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_EN_SMALL)) $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ +objects/xref_ar.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_AR_SMALL)) + $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ + objects/xref_de.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_DE_SMALL)) $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ @@ -560,10 +636,16 @@ objects/xref_es.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_ES_SMALL)) objects/xref_fr.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_FR_SMALL)) $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ -objects/xref_hu.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_HU_SMALL)) +objects/xref_nb.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_NB_SMALL)) $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ -objects/xref_nb.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_NB_SMALL)) +objects/xref_ru.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_RU_SMALL)) + $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ + +objects/xref_sv.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_SV_SMALL)) + $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ + +objects/xref_tr.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_TR_SMALL)) $(PYTHON) $(DOC_SRCDIR)/links_db_gen.py objects/ $^ > $@ objects/xref_zh_CN.links: $(patsubst %.adoc,objects/%.links,$(DOC_SRCS_ZH_CN_SMALL)) @@ -657,6 +739,19 @@ $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_EN_SMALL)): $(DOC_SRCDIR)/%.ht -a stylesheet=linuxcnc.css \ -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) +$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_AR_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_ar.links $(LOC_LANG_MAP) + asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ + -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ + -f $(LOC_HL_DIR)/emc-langs-source-highlight.conf \ + -a "source_highlight_dir=$(LOC_HL_DIR)/local" \ + -a linkcss \ + $(STYLES_SCRIPTS) \ + -a "scriptdir=$(DOC_SRCDIR)/" \ + -a "relindir=$(shell dirname $*)" \ + -a "linksfile=objects/xref_ar.links" \ + -a stylesheet=linuxcnc.css \ + -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) + $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_DE_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_de.links $(LOC_LANG_MAP) asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ @@ -696,7 +791,7 @@ $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_FR_SMALL)): $(DOC_SRCDIR)/%.ht -a stylesheet=linuxcnc.css \ -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) -$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_HU_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_hu.links $(LOC_LANG_MAP) +$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_NB_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_nb.links $(LOC_LANG_MAP) asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ -f $(LOC_HL_DIR)/emc-langs-source-highlight.conf \ @@ -705,11 +800,11 @@ $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_HU_SMALL)): $(DOC_SRCDIR)/%.ht $(STYLES_SCRIPTS) \ -a "scriptdir=$(DOC_SRCDIR)/" \ -a "relindir=$(shell dirname $*)" \ - -a "linksfile=objects/xref_hu.links" \ + -a "linksfile=objects/xref_nb.links" \ -a stylesheet=linuxcnc.css \ -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) -$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_NB_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_nb.links $(LOC_LANG_MAP) +$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_RU_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_ru.links $(LOC_LANG_MAP) asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ -f $(LOC_HL_DIR)/emc-langs-source-highlight.conf \ @@ -718,7 +813,33 @@ $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_NB_SMALL)): $(DOC_SRCDIR)/%.ht $(STYLES_SCRIPTS) \ -a "scriptdir=$(DOC_SRCDIR)/" \ -a "relindir=$(shell dirname $*)" \ - -a "linksfile=objects/xref_nb.links" \ + -a "linksfile=objects/xref_ru.links" \ + -a stylesheet=linuxcnc.css \ + -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) + +$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_SV_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_sv.links $(LOC_LANG_MAP) + asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ + -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ + -f $(LOC_HL_DIR)/emc-langs-source-highlight.conf \ + -a "source_highlight_dir=$(LOC_HL_DIR)/local" \ + -a linkcss \ + $(STYLES_SCRIPTS) \ + -a "scriptdir=$(DOC_SRCDIR)/" \ + -a "relindir=$(shell dirname $*)" \ + -a "linksfile=objects/xref_sv.links" \ + -a stylesheet=linuxcnc.css \ + -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) + +$(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_TR_SMALL)): $(DOC_SRCDIR)/%.html: $(DOC_SRCDIR)/%.adoc objects/xref_tr.links $(LOC_LANG_MAP) + asciidoc -f $(DOC_SRCDIR)/xhtml11.conf \ + -f $(DOC_SRCDIR)/asciidoc-dont-replace-arrows.conf \ + -f $(LOC_HL_DIR)/emc-langs-source-highlight.conf \ + -a "source_highlight_dir=$(LOC_HL_DIR)/local" \ + -a linkcss \ + $(STYLES_SCRIPTS) \ + -a "scriptdir=$(DOC_SRCDIR)/" \ + -a "relindir=$(shell dirname $*)" \ + -a "linksfile=objects/xref_tr.links" \ -a stylesheet=linuxcnc.css \ -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) @@ -733,6 +854,10 @@ $(patsubst %.adoc,$(DOC_SRCDIR)/%.html,$(DOC_SRCS_ZH_CN_SMALL)): $(DOC_SRCDIR)/% -a stylesheet=linuxcnc.css \ -d book -a toc -a numbered -b xhtml11 $< || (X=$$?; rm -f $@; exit $$X) +$(DOC_DIR)/html/ar/xref.html: objects/xref_ar.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml + $(ECHO) Converting $< to HTML + @xsltproc --stringparam docname "xref_ar" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< + $(DOC_DIR)/html/de/xref.html: objects/xref_de.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml $(ECHO) Converting $< to HTML @xsltproc --stringparam docname "xref_de" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< @@ -745,14 +870,22 @@ $(DOC_DIR)/html/fr/xref.html: objects/xref_fr.xml $(DOC_SRCDIR)/xref.xsl $(DOC_S $(ECHO) Converting $< to HTML @xsltproc --stringparam docname "xref_fr" --stringparam language french --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< -$(DOC_DIR)/html/hu/xref.html: objects/xref_hu.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml - $(ECHO) Converting $< to HTML - @xsltproc --stringparam docname "xref_hu" --stringparam language hungarian --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< - $(DOC_DIR)/html/nb/xref.html: objects/xref_nb.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml $(ECHO) Converting $< to HTML @xsltproc --stringparam docname "xref_nb" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< +$(DOC_DIR)/html/ru/xref.html: objects/xref_ru.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml + $(ECHO) Converting $< to HTML + @xsltproc --stringparam docname "xref_ru" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< + +$(DOC_DIR)/html/sv/xref.html: objects/xref_sv.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml + $(ECHO) Converting $< to HTML + @xsltproc --stringparam docname "xref_sv" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< + +$(DOC_DIR)/html/tr/xref.html: objects/xref_tr.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml + $(ECHO) Converting $< to HTML + @xsltproc --stringparam docname "xref_tr" --stringparam language spanish --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< + $(DOC_DIR)/html/zh_CN/xref.html: objects/xref_zh_CN.xml $(DOC_SRCDIR)/xref.xsl $(DOC_SRCDIR)/docs.xml $(DOC_SRCDIR)/terms.xml $(ECHO) Converting $< to HTML @xsltproc --stringparam docname "xref_zh_CN" --stringparam language chinese --path objects -o $@ $(DOC_SRCDIR)/xref.xsl $< diff --git a/docs/src/index.tmpl b/docs/src/index.tmpl index ba5aee3af19..a34d474efbf 100644 --- a/docs/src/index.tmpl +++ b/docs/src/index.tmpl @@ -96,22 +96,14 @@ function setup_page(){ @TRANSLATIONS@

Translations: -Czech -Dansk +Arabic Deutsch Español Français -Hungarian -Italiano -Georgian Norsk bokmål -Portuguese -Brazilian Portuguese Russian -Slovak +Svensk Turkish -Ukrainian -Vietnamese 中文

@ENDTRANSLATIONS@