寻求一些有关 WebPart 国际化的建议
最近,我正在处理一个WebPart国际化的解决方案,但我不熟悉不同地区的文化或习惯。所以我请求一些信息,如果你愿意帮忙的话。
假设我是另一个地区的另一个人,例如德国人。我使用的是 SharePoint,它是德语版本。所以,
1) 我的输入习惯是什么?
例如,如果我需要输入“10000”,我会输入“10.000,00”还是只输入“10000”?哪个对用户来说是常用的?
2) 如何处理“日期”和“时间”格式?
我认为如果我可以选择日期或时间而不是输入日期或时间字符串会更好。
3) 您认为有什么信息对我有帮助吗?
你真是太好了,谢谢你的帮助!
Recently,I am handling a solution for WebPart internationalization,but I am not familiar with the culture or habits in different regions.So I am asking for some information if you are glad to help.
Suppose I am a different person in another region,for example,a German.I am using the SharePoint,which is a German edition.So,
1) What's the input habit of me?
For example,if I need to input "10000",will I input "10.000,00" or just "10000"?Which is frequent to the user?
2) How to handle the "Date" and "Time" format?
I think it's better if I can select the date or time instead of inputing the date or time string.
3) Any information that you think will be helpful to me?
That is very kind of you,thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
老实说,我不确定你想如何处理 i18n,但我假设你想在客户端执行此操作。
在这种情况下,我建议使用 Globalize 进行格式化(数值和日期/时间都可以处理)方式)。
至于解析日期(即处理用户提供的日期),实际上有更简单的方法 - 只需使用 jQuery UI Datepicker 与有效的区域脚本。获取 Date 对象就像调用 Datepicker 的 getDate 方法一样简单。
To be honest, I am not sure how you want to handle i18n, but I am assuming that you want to do this on the client side.
In this case, I can recommend using Globalize for formatting (both numerical values and date/time could be handled this way).
As for parsing dates (that is handling dates provided by user), there is actually even easier way - just use jQuery UI Datepicker with valid regional script. Obtaining Date object is as easy as calling Datepicker's getDate method.