C#
是否提供了一种方法来即时翻译字符串或类似的东西?C#字符串翻译
我现在工作的一些遗留代码,其中有这样一些地方:
section.AddParagraph(String.Format("Premise: {0}", currentReport.Tenant.Code));
section.AddParagraph(String.Format("Description: {0}", currentReport.Tenant.Name));
section.AddParagraph();
section.AddParagraph(String.Format("Issued: #{0:D5}", currentReport.Id));
section.AddParagraph(String.Format("Date: {0}", currentReport.Timestamp.ToString(
"dd MMM yyyy", CultureInfo.InvariantCulture)));
section.AddParagraph(String.Format("Time: {0:HH:mm}", currentReport.Timestamp));
所以,我想实现基于即时这些字符串的翻译在某些替换表(例如,如Qt
那样)。
- 这是可能的(可能是,使用的东西有什么
C#
已经或使用一些后处理 - 可能与PostSharp
)? - 是否存在用
C#
(从零开始)构建的应用程序的一些通用内部化方法?
哦,i18n代表i-nternationalizatio-n。 – 2011-07-06 21:14:45