Skip to content

Commit e66582e

Browse files
committed
Merge branch 'master' of github.com:doxygen/doxygen
2 parents 54d7fd9 + 4fea898 commit e66582e

11 files changed

Lines changed: 1384 additions & 1017 deletions

File tree

addon/doxywizard/expert.cpp

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,32 @@ static void translateOption(QDomElement &configRoot,const QDomElement &translati
117117
{
118118
QDomElement docsVal = configRoot.firstChildElement();
119119
QDomElement trDocsVal = translationRoot.firstChildElement();
120-
bool first=true;
121-
if (!docsVal.isNull() && docsVal.tagName()==SA("docs") &&
122-
!trDocsVal.isNull() && trDocsVal.tagName()==SA("docs"))
120+
while (!docsVal.isNull() && !trDocsVal.isNull())
123121
{
124-
//qDebug() << "id=" << configRoot.attribute(SA("id")) << "trId=" << translationRoot.attribute(SA("id"));
125-
docsVal.parentNode().replaceChild(trDocsVal,docsVal);
126-
}
127-
docsVal = configRoot.firstChildElement().nextSiblingElement();
128-
// disable options docs (already part of the translation)
129-
while (!docsVal.isNull())
130-
{
131-
//qDebug() << "tagName" << docsVal.tagName();
132122
if (docsVal.tagName()==SA("docs") && getFilter(docsVal, mode))
133123
{
134-
docsVal.removeAttribute(SA("filter"));
135-
// we just need a value so we don't have an empty filter (and thus potential a match on doxywizard later on).
136-
docsVal.setAttribute(SA("filter"),SA("dummy"));
124+
if (trDocsVal.tagName()==SA("docs") && getFilter(trDocsVal, mode))
125+
{
126+
QDomNode oldText = docsVal.firstChild();
127+
oldText.setNodeValue (trDocsVal.text());
128+
docsVal = docsVal.nextSiblingElement();
129+
trDocsVal = trDocsVal.nextSiblingElement();
130+
}
131+
else
132+
{
133+
trDocsVal = trDocsVal.nextSiblingElement();
134+
}
135+
}
136+
else
137+
{
138+
docsVal = docsVal.nextSiblingElement();
137139
}
138-
else if (docsVal.tagName()==SA("value") && docsVal.hasAttribute(SA("desc")))
140+
}
141+
docsVal = configRoot.firstChildElement();
142+
// Just handle value tags
143+
while (!docsVal.isNull())
144+
{
145+
if (docsVal.tagName()==SA("value") && docsVal.hasAttribute(SA("desc")))
139146
{
140147
//qDebug() << "attribute" << docsVal.attribute(SA("desc"));
141148
translateEnumDescription(docsVal,translationRoot);

src/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3153,11 +3153,11 @@ doxygen -w latex new_header.tex new_footer.tex new_stylesheet.sty
31533153
@note The header is subject to change so you typically
31543154
have to regenerate the default header when upgrading to a newer version of
31553155
Doxygen.
3156-
The following commands have a special meaning inside the header (and footer):
31573156
]]>
31583157
</docs>
31593158
<docs filter="documentation">
31603159
<![CDATA[
3160+
The following markers have a special meaning inside the header and footer:
31613161
<dl>
31623162
<dt><code>$title</code><dd>will be replaced with the project name.
31633163
<dt><code>$datetime</code><dd>will be replaced with the current date and time.

src/configgen.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from xml.dom import Node
2020
import io
2121
import glob
22+
import os
2223

2324
messages = {}
2425

@@ -1108,9 +1109,14 @@ def main():
11081109
print(" * python configgen.py -doc %s to regenerate this file!" % configFile)
11091110
print(" */")
11101111
# process header
1112+
foundHeader = False
1113+
foundFooter = False
11111114
for n in elem.childNodes:
11121115
if n.nodeType == Node.ELEMENT_NODE and n.nodeName == "header":
1116+
foundHeader = True
11131117
parseHeaderDoc(n, mode)
1118+
if not foundHeader:
1119+
print("/*! \\page %s"%re.sub(".xml",'',os.path.basename(configFile)))
11141120
# generate list with all commands
11151121
commandsList = ()
11161122
for n in elem.childNodes:
@@ -1127,7 +1133,10 @@ def main():
11271133
# process footers
11281134
for n in elem.childNodes:
11291135
if n.nodeType == Node.ELEMENT_NODE and n.nodeName == "footer":
1136+
foundFooter = True
11301137
parseFooterDoc(n, mode)
1138+
if not foundFooter:
1139+
print("*/")
11311140
elif sys.argv[1] == "-maph":
11321141
print("/* WARNING: This file is generated!")
11331142
print(" * Do not edit this file, but edit %s instead and run" % configFile)

src/i18n/config_de.xml

Lines changed: 56 additions & 9 deletions
Large diffs are not rendered by default.

src/i18n/config_es.xml

Lines changed: 60 additions & 15 deletions
Large diffs are not rendered by default.

src/i18n/config_fr.xml

Lines changed: 73 additions & 25 deletions
Large diffs are not rendered by default.

src/i18n/config_ja.xml

Lines changed: 357 additions & 312 deletions
Large diffs are not rendered by default.

src/i18n/config_ko.xml

Lines changed: 266 additions & 221 deletions
Large diffs are not rendered by default.

src/i18n/config_ru.xml

Lines changed: 60 additions & 29 deletions
Large diffs are not rendered by default.

src/i18n/config_zh_CN.xml

Lines changed: 240 additions & 195 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)