summaryrefslogtreecommitdiffstats
path: root/src/docbookgen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-03 12:55:52 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-06-03 12:55:52 (GMT)
commit88e70b5242b2446f33ab700e6d10e7f25ae2c349 (patch)
treee4c1bc4d115db7e8fd8404c77e83a595fe9c19e2 /src/docbookgen.cpp
parentfd1111503cd3e403db3784d03530e6ec3ac37032 (diff)
downloadDoxygen-88e70b5242b2446f33ab700e6d10e7f25ae2c349.zip
Doxygen-88e70b5242b2446f33ab700e6d10e7f25ae2c349.tar.gz
Doxygen-88e70b5242b2446f33ab700e6d10e7f25ae2c349.tar.bz2
Adding the xml:lang tag to XML and Docbook output
Adding the xml:lang attribute for XNL and Docbook output Interesting links: - language codes (different from country codes!): https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry - example for xml.xsd: http://www.java2s.com/Code/XML/XML-Schema/importanotherXMLschema.htm
Diffstat (limited to 'src/docbookgen.cpp')
-rw-r--r--src/docbookgen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/docbookgen.cpp b/src/docbookgen.cpp
index 53b2957..e5c9a6b 100644
--- a/src/docbookgen.cpp
+++ b/src/docbookgen.cpp
@@ -320,6 +320,7 @@ DB_GEN_C
t << "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" << endl;;
t << "<" << fileType << " xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
if (!pageName.isEmpty()) t << " xml:id=\"_" << stripPath(pageName) << "\"";
+ t << " xml:lang=\"" << theTranslator->trISOLang() << "\"";
t << ">" << endl;
}