Should I use java.text.MessageFormat for localised messages without placeholders?

前端 未结 5 2212
北海茫月
北海茫月 2021-02-20 03:55

We are localising the user-interface text for a web application that runs on Java 5, and have a dilemma about how we output messages that are defined in properties files - the k

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 04:54

    Another alternative...When loading the properties file, just wrap the inputstream in a FilterInpuStream that doubles up every single quote.

提交回复
热议问题