예제 #1
0
 private void SetLocalization(GiveawayListItemVo item, bool editing)
 {
     if (item != null)
     {
         DisplayAttribute displayStatus = item.Status.GetAttributeOfType <DisplayAttribute>();
         item.StatusLocalized = SharedLocalizer[displayStatus != null ? displayStatus.Name : item.Status.ToString()];
     }
 }
예제 #2
0
 private void SetLocalization(GiveawayListItemVo item)
 {
     SetLocalization(item, false);
 }