diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-09-20 18:19:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-09-20 18:19:55 (GMT) |
commit | 6dbef217c477d43fb61e90b429531ee109bf0e75 (patch) | |
tree | c3964e8a42bc4dfecf5a99d6de94650878e67a0f /doc/translator.py | |
parent | 20bc00a80ad6bcda730a1762c3700c8f63fa16eb (diff) | |
download | Doxygen-6dbef217c477d43fb61e90b429531ee109bf0e75.zip Doxygen-6dbef217c477d43fb61e90b429531ee109bf0e75.tar.gz Doxygen-6dbef217c477d43fb61e90b429531ee109bf0e75.tar.bz2 |
Release-1.7.1-20100920
Diffstat (limited to 'doc/translator.py')
-rw-r--r-- | doc/translator.py | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/doc/translator.py b/doc/translator.py index 995f910..32c70d5 100644 --- a/doc/translator.py +++ b/doc/translator.py @@ -59,6 +59,7 @@ 2010/08/20 - maintainers.txt to UTF-8, related processin of unicode strings - [any mark] introduced instead of [unreachable] only - marks hihglighted in HTML + 2010/09/30 - Highlighting in what will be the table in langhowto.html modified. """ from __future__ import generators @@ -536,7 +537,6 @@ class Transl: else: self.langReadable = self.lang - def __unexpectedToken(self, status, tokenId, tokenLineNo): """Reports unexpected token and quits with exit code 1.""" @@ -1871,18 +1871,26 @@ class TrManager: # and the list of their mangled e-mails. For English-based # translators that are coupled with the non-English based, # insert the 'see' note. - mm = None # init - ee = None # init + mm = None # init -- maintainer + ee = None # init -- e-mail address if obj.status == 'En': # Check whether there is the coupled non-English. classId = obj.classId[:-2] - if self.__translDic.has_key(classId): + if classId in self.__translDic: lang = self.__translDic[classId].langReadable mm = u'see the %s language' % lang ee = u' ' - if not mm and self.__maintainersDic.has_key(obj.classId): - lm = [ m[0] for m in self.__maintainersDic[obj.classId] ] + if not mm and obj.classId in self.__maintainersDic: + # Build a string of names separated by the HTML break element. + # Special notes used instead of names are highlighted. + lm = [] + for maintainer in self.__maintainersDic[obj.classId]: + name = maintainer[0] + if name.startswith(u'--'): + name = u'<span style="color: red; background-color: yellow">'\ + + name + u'</span>' + lm.append(name) mm = u'<br/>'.join(lm) # The marked adresses (they start with the mark '[unreachable]', @@ -1894,7 +1902,7 @@ class TrManager: address = maintainer[1] m = rexMark.search(address) if m is not None: - address = u'<span style="color: red; background-color: yellow">'\ + address = u'<span style="color: brown">'\ + m.group(u'mark') + u'</span>' le.append(address) ee = u'<br/>'.join(le) |