diff options
author | albert-github <albert.tests@gmail.com> | 2020-06-03 12:55:52 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-06-03 12:55:52 (GMT) |
commit | 88e70b5242b2446f33ab700e6d10e7f25ae2c349 (patch) | |
tree | e4c1bc4d115db7e8fd8404c77e83a595fe9c19e2 /src | |
parent | fd1111503cd3e403db3784d03530e6ec3ac37032 (diff) | |
download | Doxygen-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')
45 files changed, 349 insertions, 8 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; } diff --git a/src/translator.h b/src/translator.h index 188b775..8412560 100644 --- a/src/translator.h +++ b/src/translator.h @@ -646,6 +646,13 @@ class Translator virtual QCString trOperationDocumentation() = 0; virtual QCString trDataMembers() = 0; virtual QCString trDataMemberDocumentation() = 0; + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + /// see for complete list: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry + virtual QCString trISOLang() = 0; }; #endif diff --git a/src/translator_am.h b/src/translator_am.h index 5b4c446..9af948a 100644 --- a/src/translator_am.h +++ b/src/translator_am.h @@ -1799,6 +1799,14 @@ class TranslatorArmenian : public TranslatorAdapter_1_8_0 virtual QCString trDirDepGraph(const char *name)
{ return name + QCString("-ի ֆայլադարանների կախվածությունների գծագիր:"); }
-};
+//////////////////////////////////////////////////////////////////////////
+// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19
+//////////////////////////////////////////////////////////////////////////
+ virtual QCString trISOLang()
+ {
+ return("hy");
+ }
+
+};
#endif
diff --git a/src/translator_ar.h b/src/translator_ar.h index 24281fd..80ba76f 100644 --- a/src/translator_ar.h +++ b/src/translator_ar.h @@ -1564,6 +1564,15 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6 "وجد أنها ملائمة. إنها تختلف عن الدالة أعلاه" "فقط في نوعية ال argument(s) التي تقبلها."; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("ar-EG"); + } }; #endif diff --git a/src/translator_br.h b/src/translator_br.h index 01c5b9f..16f8d6e 100644 --- a/src/translator_br.h +++ b/src/translator_br.h @@ -2336,6 +2336,13 @@ class TranslatorBrazilian : public Translator } ////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("pt-BR"); + } }; diff --git a/src/translator_ca.h b/src/translator_ca.h index ca9b7e9..d121428 100644 --- a/src/translator_ca.h +++ b/src/translator_ca.h @@ -1838,6 +1838,15 @@ class TranslatorCatalan : public TranslatorAdapter_1_8_0 virtual QCString trDirDepGraph(const char *name) { return QCString("Graf de dependència de directoris per a ")+name+":"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("ca"); + } }; #endif diff --git a/src/translator_cn.h b/src/translator_cn.h index 0e559c1..735bf45 100644 --- a/src/translator_cn.h +++ b/src/translator_cn.h @@ -1920,7 +1920,15 @@ class TranslatorChinese : public TranslatorAdapter_1_8_15 return "该单例的文档由下列文件生成:"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("zh"); + } }; #endif diff --git a/src/translator_cz.h b/src/translator_cz.h index 9d6c489..2b985ae 100644 --- a/src/translator_cz.h +++ b/src/translator_cz.h @@ -2041,8 +2041,15 @@ class TranslatorCzech : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("cs"); + } }; #endif // TRANSLATOR_CZ_H diff --git a/src/translator_de.h b/src/translator_de.h index bf5ce5e..a29284f 100644 --- a/src/translator_de.h +++ b/src/translator_de.h @@ -2254,8 +2254,15 @@ class TranslatorGerman : public TranslatorAdapter_1_8_15 virtual QCString trCustomReference(const char *name) { return QCString(name)+"-Referenz"; } - ////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("de"); + } }; #endif diff --git a/src/translator_dk.h b/src/translator_dk.h index df063ef..08f9630 100644 --- a/src/translator_dk.h +++ b/src/translator_dk.h @@ -1766,6 +1766,15 @@ class TranslatorDanish : public TranslatorAdapter_1_8_0 } +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("da"); + } + /*---------- For internal use: ----------------------------------------*/ protected: /*! For easy flexible-noun implementation. diff --git a/src/translator_en.h b/src/translator_en.h index 400e59c..cee8cf9 100644 --- a/src/translator_en.h +++ b/src/translator_en.h @@ -2254,7 +2254,13 @@ class TranslatorEnglish : public Translator } ////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("en-US"); + } }; #endif diff --git a/src/translator_eo.h b/src/translator_eo.h index 28876d7..67315f3 100644 --- a/src/translator_eo.h +++ b/src/translator_eo.h @@ -1941,8 +1941,15 @@ class TranslatorEsperanto : public TranslatorAdapter_1_8_4 return "Fasona Superrigardo"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("eo"); + } }; #endif diff --git a/src/translator_es.h b/src/translator_es.h index b28ed75..03cd128 100644 --- a/src/translator_es.h +++ b/src/translator_es.h @@ -2304,8 +2304,15 @@ class TranslatorSpanish : public TranslatorAdapter_1_8_15 return "Documentación miembro de datos"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("es"); + } }; #endif diff --git a/src/translator_fa.h b/src/translator_fa.h index 5a37330..e31793e 100644 --- a/src/translator_fa.h +++ b/src/translator_fa.h @@ -1779,6 +1779,15 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5 return convertDigitsToFarsi(sdate); } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("fa"); + } }; #endif diff --git a/src/translator_fi.h b/src/translator_fi.h index 2b94f48..7334957 100644 --- a/src/translator_fi.h +++ b/src/translator_fi.h @@ -1854,6 +1854,15 @@ class TranslatorFinnish : public TranslatorAdapter_1_6_0 return "Tyyppien rajoitteet"; // "Type Constraints" } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("fi"); + } }; #endif diff --git a/src/translator_fr.h b/src/translator_fr.h index 0035e23..9317967 100644 --- a/src/translator_fr.h +++ b/src/translator_fr.h @@ -2320,8 +2320,15 @@ class TranslatorFrench : public TranslatorAdapter_1_8_15 return "Documentation des champs de données"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("fr"); + } }; #endif diff --git a/src/translator_gr.h b/src/translator_gr.h index 6ed43db..4e45539 100644 --- a/src/translator_gr.h +++ b/src/translator_gr.h @@ -1980,6 +1980,15 @@ class TranslatorGreek : public TranslatorAdapter_1_8_15 return result; } +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("el"); + } + }; #endif diff --git a/src/translator_hr.h b/src/translator_hr.h index 1d17e2a..87cea8d 100644 --- a/src/translator_hr.h +++ b/src/translator_hr.h @@ -1567,8 +1567,15 @@ class TranslatorCroatian : public TranslatorAdapter_1_8_2 virtual QCString trAdditionalInheritedMembers() { return "Dodatni naslijeđeni članovi"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("hr"); + } }; #endif diff --git a/src/translator_hu.h b/src/translator_hu.h index 44363c9..67d6a6e 100644 --- a/src/translator_hu.h +++ b/src/translator_hu.h @@ -2021,8 +2021,15 @@ class TranslatorHungarian : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("hu"); + } }; #endif diff --git a/src/translator_id.h b/src/translator_id.h index 2039c76..55a4366 100644 --- a/src/translator_id.h +++ b/src/translator_id.h @@ -1812,6 +1812,15 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0 virtual QCString trDirDepGraph(const char *name) { return QCString("Bagan dependensi directori untuk ")+name+":"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("id"); + } }; #endif diff --git a/src/translator_it.h b/src/translator_it.h index 9638a01..ddfed09 100644 --- a/src/translator_it.h +++ b/src/translator_it.h @@ -1976,8 +1976,15 @@ class TranslatorItalian : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("it"); + } }; #endif diff --git a/src/translator_je.h b/src/translator_je.h index d555421..2afe772 100644 --- a/src/translator_je.h +++ b/src/translator_je.h @@ -62,6 +62,11 @@ class TranslatorJapaneseEn : public TranslatorEnglish { return "128"; } + + virtual QCString trISOLang() + { + return("ja"); + } }; #endif diff --git a/src/translator_jp.h b/src/translator_jp.h index fc0d65d..64c49c0 100644 --- a/src/translator_jp.h +++ b/src/translator_jp.h @@ -1985,8 +1985,15 @@ class TranslatorJapanese : public TranslatorAdapter_1_8_15 "の詳解を抽出しました:"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("ja"); + } }; #endif diff --git a/src/translator_ke.h b/src/translator_ke.h index c9f488c..077601e 100644 --- a/src/translator_ke.h +++ b/src/translator_ke.h @@ -59,6 +59,11 @@ class TranslatorKoreanEn : public TranslatorEnglish { return "129"; } + + virtual QCString trISOLang() + { + return("ko"); + } }; #endif diff --git a/src/translator_kr.h b/src/translator_kr.h index fb1c356..79fd6c8 100644 --- a/src/translator_kr.h +++ b/src/translator_kr.h @@ -2012,8 +2012,15 @@ class TranslatorKorean : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("ko"); + } }; #endif diff --git a/src/translator_lt.h b/src/translator_lt.h index f47d9d4..4d7739f 100644 --- a/src/translator_lt.h +++ b/src/translator_lt.h @@ -1510,6 +1510,15 @@ class TranslatorLithuanian : public TranslatorAdapter_1_4_6 } +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("lt"); + } + }; #endif diff --git a/src/translator_lv.h b/src/translator_lv.h index bd579da..107b209 100644 --- a/src/translator_lv.h +++ b/src/translator_lv.h @@ -1944,8 +1944,15 @@ class TranslatorLatvian : public TranslatorAdapter_1_8_4 return "Dizaina pārskats"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("lv"); + } }; #endif diff --git a/src/translator_mk.h b/src/translator_mk.h index 3fc046e..2fd8e0b 100644 --- a/src/translator_mk.h +++ b/src/translator_mk.h @@ -1718,6 +1718,15 @@ class TranslatorMacedonian : public TranslatorAdapter_1_6_0 { return "Ограничувања на Тип"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("mk"); + } }; #endif diff --git a/src/translator_nl.h b/src/translator_nl.h index 7cecc7d..81818f4 100644 --- a/src/translator_nl.h +++ b/src/translator_nl.h @@ -1784,7 +1784,15 @@ class TranslatorDutch : public Translator { return "Data members"; } virtual QCString trDataMemberDocumentation() { return "Documentatie van data members"; } - ////////////////////////////////////////////////////////////////////////// +// +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("nl"); + } }; #endif diff --git a/src/translator_no.h b/src/translator_no.h index eccd952..4154b78 100644..100755 --- a/src/translator_no.h +++ b/src/translator_no.h @@ -1563,6 +1563,15 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 "generert for deg. Den skiller seg ut fra " "funksjonen ovenfor i argument(ene) den aksepterer."; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("nn"); + } }; #endif diff --git a/src/translator_pl.h b/src/translator_pl.h index e0ecc8f..2171f50 100644 --- a/src/translator_pl.h +++ b/src/translator_pl.h @@ -1866,8 +1866,15 @@ class TranslatorPolish : public TranslatorAdapter_1_8_2 virtual QCString trAdditionalInheritedMembers() { return "Dodatkowe Dziedziczone Składowe"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("pl"); + } }; #endif diff --git a/src/translator_pt.h b/src/translator_pt.h index 970cf45..ff3aac4 100644 --- a/src/translator_pt.h +++ b/src/translator_pt.h @@ -2273,6 +2273,13 @@ class TranslatorPortuguese : public Translator } ////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("pt"); + } }; diff --git a/src/translator_ro.h b/src/translator_ro.h index 6f0c197..cf6d3df 100644 --- a/src/translator_ro.h +++ b/src/translator_ro.h @@ -2013,8 +2013,15 @@ class TranslatorRomanian : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("ro"); + } }; #endif diff --git a/src/translator_ru.h b/src/translator_ru.h index 9d92888..9ac2ed3 100644 --- a/src/translator_ru.h +++ b/src/translator_ru.h @@ -1968,7 +1968,15 @@ class TranslatorRussian : public TranslatorAdapter_1_8_15 return result; } -/////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("ru"); + } }; #endif diff --git a/src/translator_sc.h b/src/translator_sc.h index e8191df..34db617 100644 --- a/src/translator_sc.h +++ b/src/translator_sc.h @@ -1765,6 +1765,15 @@ class TranslatorSerbianCyrillic : public TranslatorAdapter_1_6_0 return "Ограничења типова"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("sr-Cyrl"); + } }; #endif diff --git a/src/translator_si.h b/src/translator_si.h index 2dd7e5b..7229487 100644 --- a/src/translator_si.h +++ b/src/translator_si.h @@ -1207,6 +1207,15 @@ class TranslatorSlovene : public TranslatorAdapter_1_4_6 "podana je zaradi priročnosti. Metoda se od predhodnje razlikuje " "samo v številu in/ali tipu formalnih argumentov."; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("sl"); + } }; #endif diff --git a/src/translator_sk.h b/src/translator_sk.h index 9ee8252..cc7de8c 100644 --- a/src/translator_sk.h +++ b/src/translator_sk.h @@ -1971,7 +1971,15 @@ class TranslatorSlovak : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("sk"); + } }; #endif // TRANSLATOR_SK_H diff --git a/src/translator_sr.h b/src/translator_sr.h index f5f132f..f1c4aa7 100644 --- a/src/translator_sr.h +++ b/src/translator_sr.h @@ -1769,6 +1769,15 @@ class TranslatorSerbian : public TranslatorAdapter_1_6_0 // return result; // } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("sr-Latn"); + } }; #endif diff --git a/src/translator_sv.h b/src/translator_sv.h index 6277445..cfdac67 100644 --- a/src/translator_sv.h +++ b/src/translator_sv.h @@ -2336,6 +2336,15 @@ class TranslatorSwedish : public Translator { return "Datamedlemsdokumentation"; } -}; +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("sv"); + } + +}; #endif diff --git a/src/translator_tr.h b/src/translator_tr.h index d18f800..3fc658b 100644 --- a/src/translator_tr.h +++ b/src/translator_tr.h @@ -1817,6 +1817,15 @@ class TranslatorTurkish : public TranslatorAdapter_1_7_5 } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("tr"); + } }; #endif diff --git a/src/translator_tw.h b/src/translator_tw.h index 9e9092d..61d5a1f 100644 --- a/src/translator_tw.h +++ b/src/translator_tw.h @@ -1977,8 +1977,15 @@ class TranslatorChinesetraditional : public TranslatorAdapter_1_8_15 return result; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("zh-Hant"); + } }; #endif diff --git a/src/translator_ua.h b/src/translator_ua.h index 034cb1b..6ff908a 100644 --- a/src/translator_ua.h +++ b/src/translator_ua.h @@ -1909,8 +1909,15 @@ class TranslatorUkrainian : public TranslatorAdapter_1_8_4 return "Огляд дизайну проекту"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 ////////////////////////////////////////////////////////////////////////// + virtual QCString trISOLang() + { + return("uk"); + } }; #endif diff --git a/src/translator_vi.h b/src/translator_vi.h index b391b0c..644eb6e 100644 --- a/src/translator_vi.h +++ b/src/translator_vi.h @@ -1750,6 +1750,15 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0 return "Ràng buộc của kiểu (Type)"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("vi"); + } }; #endif diff --git a/src/translator_za.h b/src/translator_za.h index dd5ddf9..43e1e8f 100644 --- a/src/translator_za.h +++ b/src/translator_za.h @@ -1718,6 +1718,15 @@ class TranslatorAfrikaans : public TranslatorAdapter_1_6_0 return "Tipe Limiete"; } + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.19, but completely filled so no need for a TranslatorAdapter_1_8_19 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trISOLang() + { + return("af"); + } }; #endif diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index 3a649e9..ec728c4 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -154,7 +154,9 @@ static void writeXMLHeader(FTextStream &t) t << "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" << endl;; t << "<doxygen xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "; t << "xsi:noNamespaceSchemaLocation=\"compound.xsd\" "; - t << "version=\"" << getDoxygenVersion() << "\">" << endl; + t << "version=\"" << getDoxygenVersion() << "\" "; + t << "xml:lang=\"" << theTranslator->trISOLang() << "\""; + t << ">" << endl; } static void writeCombineScript() @@ -178,7 +180,7 @@ static void writeCombineScript() "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n" " <xsl:output method=\"xml\" version=\"1.0\" indent=\"no\" standalone=\"yes\" />\n" " <xsl:template match=\"/\">\n" - " <doxygen version=\"{doxygenindex/@version}\">\n" + " <doxygen version=\"{doxygenindex/@version}\" xml:lang=\"{doxygenindex/@xml:lang}\">\n" " <!-- Load all doxygen generated xml files -->\n" " <xsl:for-each select=\"doxygenindex/compound\">\n" " <xsl:copy-of select=\"document( concat( @refid, '.xml' ) )/doxygen/*\" />\n" @@ -1907,6 +1909,7 @@ void generateXML() QDir xmlDir(outputDirectory); createSubDirs(xmlDir); + ResourceMgr::instance().copyResource("xml.xsd",outputDirectory); ResourceMgr::instance().copyResource("index.xsd",outputDirectory); QCString fileName=outputDirectory+"/compound.xsd"; @@ -1959,7 +1962,9 @@ void generateXML() t << "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" << endl;; t << "<doxygenindex xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "; t << "xsi:noNamespaceSchemaLocation=\"index.xsd\" "; - t << "version=\"" << getDoxygenVersion() << "\">" << endl; + t << "version=\"" << getDoxygenVersion() << "\" "; + t << "xml:lang=\"" << theTranslator->trISOLang() << "\""; + t << ">" << endl; { ClassSDict::Iterator cli(*Doxygen::classSDict); |