Generate localized javadoc

后端 未结 2 1779
悲哀的现实
悲哀的现实 2020-12-10 09:28

I would like to know if there was a simple way of generating localized javadoc : I would like to have translated (for example in french) title and keywords instead of \"retu

2条回答
  •  醉话见心
    2020-12-10 10:09

    There is the javadoc -locale option, though I'm not sure that it changes keywords like return and class. There is only one, non-localized set of keywords in Java, so I don't think it makes sense to alter those in the JavaDocs anyway.

    Specifies the locale that javadoc uses when generating documentation. The argument is the name of the locale, as described in java.util.Locale documentation, such as en_US (English, United States) or en_US_WIN (Windows variant).

    Specifying a locale causes javadoc to choose the resource files of that locale for messages (strings in the navigation bar, headings for lists and tables, help file contents, comments in stylesheet.css, and so forth). It also specifies the sorting order for lists sorted alphabetically, and the sentence separator to determine the end of the first sentence. It does not determine the locale of the doc comment text specified in the source files of the documented classes.

提交回复
热议问题