Re: [Doxygen-develop] new feature proposal: filter maps
Brought to you by:
dimitri
From: Oleg B. <og...@gm...> - 2008-03-21 21:01:17
|
> In conclusion I think that in order to make the doxygen "fixed labels" > more configurable two solutions are realistically possible: > > 1) create a special Translator as I proposed > > or > > 2) make the HTML4 output XHTML compliant so that XSLT can be used on it > > > do I miss something? I think yes, you do ;) I still push my solution which is close to XML one. In translation file you could have one default section and specialized sections fot C, Fortran, etc which override default section strings (or use XML analogue) ------ [DEFAULT] trModules = Modules trNamespaces = Namespaces trHello = Hello \1 [FORTRAN] trModules = Categories trNamespaces = Modules [C] trHello = Hello C, \1 ! ------ You will still have one Translator class but there are 2 possibilities 1) You create array of strings for every section. You leave booleans, string arguments and conditional statements as they are but choose different array if OPTIMIZE_FOR_X is set. 2) On doxygen startup, when you read translation file, you override strings in the same, and only one, array. Now, you only need to specify [USER] section (in user defined file) which overrides definitions in all other sections. Yes, and of course you need something like printf functionality for \1 arguments. Need to look into other translator classes if they have more specialized code. Oleg |