public static string ToCultulizedText(this RankingTarget target) { switch (CultureInfo.CurrentCulture.TwoLetterISOLanguageName) { case "ja": return(GetJaText(target)); case "en": default: var s = target.ToString(); var first = s.Substring(0, 1); return(first.ToUpper() + s.Substring(1, s.Length - 1)); } }
public RankingTargetListItem(RankingTarget target) { TargetType = target; Label = target.ToString(); // TODO: RankingTarget のローカライズ }