When doing internationalization in Java, you assign a string key to each message. What\'s the best practice, on where to place those string keys. Goal is to allow easy refactori
i always using for such stuff an interface where my keys are listed. The name of the Interace is mostly DESC=Issue/short describtion/topic and the keys values. This way you can make some nice Interface and some general Interface e.g. for OK or Abort keys.
// other (better?) way, put all keys in neighbor class
public interface DESCMessage {
public static final String HELLO_KEY = "hello_key";
}
public class Foo {
...
messages.getString(DESCMessage.HELLO_KEY);
}