示例#1
0
        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));
            }
        }
示例#2
0
 public RankingTargetListItem(RankingTarget target)
 {
     TargetType = target;
     Label      = target.ToString(); // TODO: RankingTarget のローカライズ
 }