[英]GWT, how to make i18n for @DefaultStringArrayValue messages
I am trying to make my app run on multiple locales and I read from here How to make static texts work in different locales. 我试图使我的应用程序在多个语言环境中运行,并且我从这里阅读如何使静态文本在不同的语言环境中工作。 But anyone knows how to do this @DefaultStringArrayValue one work with i18n locales. 但是任何人都知道如何使用i18n语言环境使用@DefaultStringArrayValue 。 ie if I have following: 即如果我有以下内容:
@DefaultStringArrayValue({"RDY", "Ready", "HLD", "Held", "RUN", "Run", "FIN", "Finished", "MSG", "Message", "END", "End", "ERR", "Error"})
String[] jobStatuses();
How to create an entry in property file for this? 如何在属性文件中为此创建一个条目?
Thanks. 谢谢。
Doesn't the Javadoc say it all? Javadoc不能全部说明吗?
Note that in the corresponding properties/etc file, commas are used to separate elements of the array unless they are preceded with a backslash. 请注意,在相应的properties / etc文件中,除非逗号之前带有反斜杠,否则逗号用于分隔数组的元素。
jobStatuses=RDY,Ready,HLD,Held,RUN,Run,FIN,Finished,MSG,Message,END,End,ERR,Error
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.