25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace CIG.Translation
- {
- public class RawFirstCharCapitalizedString : ILocalizedString
- {
- public RawFirstCharCapitalizedString(ILocalizedString original)
- {
- this._original = original;
- }
-
- public override string ToString()
- {
- return "[FirstCharCapitalizedString=" + this._original.ToString() + "]";
- }
-
- public string Translate()
- {
- string text = this._original.Translate();
- if (string.IsNullOrEmpty(text))
- {
- return string.Empty;
- }
- return char.ToUpper(text[0], Localization.CurrentCulture.Info) + text.Substring(1);
- }
-
- private ILocalizedString _original;
- }
- }
|