简体   繁体   中英

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. 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?

Note that in the corresponding properties/etc file, commas are used to separate elements of the array unless they are preceded with a backslash.

jobStatuses=RDY,Ready,HLD,Held,RUN,Run,FIN,Finished,MSG,Message,END,End,ERR,Error

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM