Translation & Localisation initialisation

This commit is contained in:
2018-12-12 14:32:03 +00:00
parent c5699db198
commit fce5b0ea11
23 changed files with 3797 additions and 310 deletions

View File

@ -23,6 +23,9 @@ namespace Yavsc.Models.Blog
[Display(Name="Photo")][StringLength(1024)]
public string Photo { get; set; }
[StringLength(8)]
public string Lang { get; set; }
[Display(Name="Indice de qualité")]
public int Rate { get; set; }

View File

@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Models;
namespace Yavsc.Server.Models.Blog
{
public class BlogTrad
{
[Required]
public long PostId { get; set; }
[Required]
public string Lang { get; set; }
public string Title { get; set; }
public string Body { get; set; }
public string TraducerId { get; set; }
[ForeignKey("TraducerId"),JsonIgnore]
public ApplicationUser Traducer { set; get; }
}
}