From 3462d12db6ebf303064db168a2333374344f369a Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio" Date: Sat, 19 Jun 2021 15:56:16 -0300 Subject: Add Hugo's lang shortcode This is a prerequisite for the translation workflow through .po files and Weblate. The asciidoctor include with the shortcode variable will help because won't be needed to change the includes manually after converting the translation (.po file) back to .adoc. It will help other areas like, language attributes, which today is fixed in every document. The use of shortcode was suggested by jmooring@ from Hugo's project on Github. Reviewed by: carlavilla Differential Revision: https://reviews.freebsd.org/D30823 --- .../content/fr/articles/committers-guide/_index.adoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'documentation/content/fr/articles/committers-guide/_index.adoc') diff --git a/documentation/content/fr/articles/committers-guide/_index.adoc b/documentation/content/fr/articles/committers-guide/_index.adoc index 99d34e26f8..97804524fb 100644 --- a/documentation/content/fr/articles/committers-guide/_index.adoc +++ b/documentation/content/fr/articles/committers-guide/_index.adoc @@ -25,20 +25,20 @@ trademarks: ["freebsd", "coverity", "ibm", "intel", "sparc", "general"] ifeval::["{backend}" == "html5"] include::shared/authors.adoc[] -include::shared/fr/mailing-lists.adoc[lines=11..-1] -include::shared/fr/urls.adoc[] +include::shared/{{% lang %}}/mailing-lists.adoc[lines=11..-1] +include::shared/{{% lang %}}/urls.adoc[] endif::[] ifeval::["{backend}" == "pdf"] include::../../../../shared/authors.adoc[] -include::../../../../shared/fr/mailing-lists.adoc[lines=11..-1] -include::../../../../shared/fr/urls.adoc[] +include::../../../../shared/{{% lang %}}/mailing-lists.adoc[lines=11..-1] +include::../../../../shared/{{% lang %}}/urls.adoc[] endif::[] ifeval::["{backend}" == "epub3"] include::../../../../shared/authors.adoc[] -include::../../../../shared/fr/mailing-lists.adoc[lines=11..-1] -include::../../../../shared/fr/urls.adoc[] +include::../../../../shared/{{% lang %}}/mailing-lists.adoc[lines=11..-1] +include::../../../../shared/{{% lang %}}/urls.adoc[] endif::[] [.abstract-title] -- cgit v1.2.3