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-nternationalizio-nを表します。 –