Reputation: 39
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.
Upvotes: 0
Views: 53
Reputation: 36894
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
Upvotes: 1