Combine multilingual comments in the same source
| File | Size | Last modified | Description | Requirements and optionals | |
|---|---|---|---|---|---|
|
|
57 KB | 2009-Jun-03 | Source | Java 1.5 | |
|
|
102 KB | 2009-Jun-03 | Binary | Java 1.5 | |
This is a Java™ Doclet which allows you to embed multilingual text in your JavaDoc™ comments. It also should generate cleaner HTML than the standard doclet, and allows post-processing.
Language-specific clauses appear like this:
{@lang en Submit a task for execution.}
{@lang eo Liveru taskon por plenumado.}
You can ensure that only one from a group is used as follows:
{@select {@lang eo Liveru taskon por plenumado.}
{@else Submit a task for execution.}}
This, of course, could result in a lot of documentation per code, and I've never actually tried it in practice on a real library, so it could turn out to be completely impractical. Nevertheless, I wanted to sure it was possible and available if I would ever need it, and I was planning to write a doclet with better HTML output anyway.
Other features:
You can mark some public methods as undocumented with
an @undocumented tag.
Factory methods can be identified with
@constructor, so they get listed with
constructors.
An explicit @summary tag can be used instead of the implicit rules about delimiting the first line of an element description.
The documentation title, package groupings and contributor details can be specified in the overview. From there, they can also be subject to multilingual content selection.
Version-control keywords can be extracted from their surrounding syntax.
The doclet generates a sitemap file compatible with Standard-Navigation, making navigation of the documentation easier.
See the file README.txt for more details.
The doclet class is uk.ac.lancs.comp.i18n_doclet.SSDoclet.
Example output:
(I use these for testing, so occasionally they might get corrupted.)
Sun, Sun Microsystems, the Sun Logo, Java, Javadoc are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.