Generate localized javadoc

后端 未结 2 1778
悲哀的现实
悲哀的现实 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:23

    As said by Matt Ball, you can provide the -locale option to javadoc to influence some things. The problem is that tools.jar only contains the default English and additionally one Japanese (ja) and one Chinese (cn_ZH) translation.

    I just tried the Chinese one, and it works: it writes 抛出: JSchException instead of Throws: JSchException.

    So you would have to translate these to your language (if you don't want one of these).

    Some years ago I created an Esperanto translation of those resources for the then-current version (1.2 or such), if you are interested I could dig them out. (But it seems now they are using another format.)

提交回复
热议问题