|
软件的I18N Dev是如何实现的?
哪些又是I18N的问题,我们如何去定位这是I18N的问题还是Core问题或是L10N问 ...
姜彦甫 发表于 2013-8-14 15:23
这个问题有点儿太大了……每种语言都有自己不同的G11N编码方式
举个很小的例子- using System;
- using System.Globalization;
- using System.Threading;
- public class FormatDate
- {
- public static void Main()
- {
- DateTime dt = DateTime.Now;
- // Set the CurrentCulture property to U.S. English.
- Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
- // Display dt, formatted using the ShortDatePattern.
- // and the CurrentThread.CurrentCulture.
- Console.WriteLine(dt.ToString("d"));
- // Create a CultureInfo object for German in Germany.
- CultureInfo ci = new CultureInfo("de-DE");
- // Display dt, formatted using the ShortDatePattern
- // and the CultureInfo object.
- Console.WriteLine(dt.ToString("d", ci));
- }
- }
复制代码 这是C#中如何convert DateTime object |
|