开发者

internationalization of dates

开发者 https://www.devze.com 2023-03-03 17:38 出处:网络
Merged with internationalization of dates on the web. does anyone have any good \"architecture\" for the internationalization of dates? like in english its Monday,chinese: 星期一, dutch:
Merged with internationalization of dates on the web.

does anyone have any good "architecture" for the internationalization of dates? like in english its Monday, chinese: 星期一, dutch: mandaag, jap: 月曜日

So my first idea is to create some sort of class that stores the string开发者_如何学JAVAs of Monday to Sunday in 59 different languages. Apparently this isn't scalable at all, imagine now I need to display "12:34 A.M, Monday, 1st Jan 2000" i will then need another translation for A.M, P.M, the months (both long and short forms), the ordinals, etc, etc.

It's too much work, what's the solution?

0

精彩评论

暂无评论...
验证码 换一张
取 消