问题描述
我们经常与西班牙,智利,印度等其他国家开发和维护的服务结合在一起。我一直认为来自西班牙和智利的服务/ API来往西班牙语。但是我们希望我们的代码是英文和Javadoc都是英文和西班牙文。我正在寻求实现这一目标的最佳途径。这种场景有常见的接受标准吗?
以下是第二名的示例这是西班牙特有的。 getLastName()对于说英语的人来说很清楚,但是这个API也暴露给西班牙语的人,因此我添加了一个Javadoc,如下所示。
code> / **
* Segundo Apellido
* /
String getSecondLastName();
可能在 stacloverflow问题。可以帮助。
We frequently integrate with services developed and maintained in other countries like Spain, Chile, India etc. I see consitently that the services/API calls from Spain and Chile are in Spanish. But we want our code to be English and Javadoc to be both in English and Spanish. I am seeking the best way to achieve this.
Is there a common accepted standard for this kind of scenario?
Below is the example of second last name that is specific to Spain. getLastName() is clear enough for English speaking people but this API is also exposed to Spanish speaking people and hence I added a Javadoc as you see below.
/**
* Segundo Apellido
*/
String getSecondLastName();
One possible discussed in this stacloverflow question. May help.
这篇关于如何提供其他语言的javadoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!