我需要根据语言环境设置值。我将获得语言环境en_US
或fr_FR
String locale = object.getLocale(); //
然后根据语言环境我需要定义货币。我需要的货币格式在下面定义。
Language Example Notes
Canadian French 123.456.789,99 $ symbol is a suffix,'comma' for decimal
Canadian English $123,456,789.99 symbol is a prefix,'dot' for decimal
目前我有表单属性,我直接在我的 java 类中设置值。
...
Form form = new Form();
// Stub data for generating a graph.
formBean.setCurrOne("123.54");
formBean.setCurrTwo("456.33");
....//before I set those attributes I need to place a check
// for locale and format the currency accordingly.
你能帮我看看格式吗?在货币格式上,
也有区别。.