Re: [Doxygen-develop] new feature proposal: filter maps
Brought to you by:
dimitri
From: Oleg B. <og...@gm...> - 2008-03-13 16:17:14
|
Hi, > However I think that it shouldn't be difficult to add to Doxygen a > generic system which allows to override the default strings returned by > the Translator-derived class selected for use. I would move "resourece strings" and localization completely to text conf files. It worked very well in my past experience with Java and Python. And compilation time translator files take is huge. > I.e. we could add an option, say "OUTPUT_FILTER", which allows the user > to specify a text file to use as "filter map". > Suppose I want in my project to have "Modules" label (returned by > trModules() function) replaced by a "SomethingElse" label and the text > returned by trGeneratedAutomatically(const char*s) replaced by > "Generated for " + s + " by Doxygen". > Then I could simply write in the "filter map": > > trModules=SomethingElse > trGeneratedAutomatically=Generated for \1 by Doxygen Yes, in Python I would use something like module=module generatedAutomatically=Generated for %{project-name} by Doxygen So, you just need to tweak a resource (localization) file and pass it to doxygen as a replacement to original. But it is quite an effort to reimplement. Regards, Oleg |