Ejemplo n.º 1
0
 /// <summary>
 /// Decorates the taxonomy.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="item">The item.</param>
 /// <param name="dataCulture">The data culture.</param>
 public static void HydrateTranslations <T>(this T item, string dataCulture = null)
     where T : ITranslatable
 {
     item.DataCulture = dataCulture;
     if (dataCulture == null)
     {
         item.DataCulture = CurrentWindowsUser.Culture.TwoLetterISOLanguageName;
     }
     item.Description = Descriptions
                        .GetDescriptionsForObjectAndCulture(item.Id, item.DataCulture)
                        .FirstOrDefault();
 }