Re: new feature proposal: filter maps

"Oleg Batrashev" <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
>  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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.