On 2/7/2018 2:37 PM, Xuelei Fan wrote:

Looks fine to me.

Maybe, you can use the constructor of:
    MessageFormat(String pattern, Locale locale)
    // Locale.ENGLISH

I use that constructor of MessageFormat, but I don't use one of the constants because there doesn't appear to be a constant for en_US. As far as I know, I can't use Locale.ENGLISH because it doesn't necessarily specify US English. I suppose I could use constants like this:

Locale loc = new Locale(Locale.ENGLISH.getLanguage(), Locale.US.getCountry());
MessageFormat format = new MessageFormat(str, loc)

But that doesn't seem like much of an improvement.


Xuelei


Reply via email to