From f6ed7c260def393da0264bc5c42351b580474aca Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Sun, 5 Apr 2020 16:23:45 +0300 Subject: [PATCH] Fixed project captions localization --- MyWebsite/MyWebsite/Models/ProjectModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyWebsite/MyWebsite/Models/ProjectModel.cs b/MyWebsite/MyWebsite/Models/ProjectModel.cs index 1822f43..5a6ef67 100644 --- a/MyWebsite/MyWebsite/Models/ProjectModel.cs +++ b/MyWebsite/MyWebsite/Models/ProjectModel.cs @@ -47,7 +47,7 @@ namespace MyWebsite.Models public string Link { get; set; } [DisplayName("Link text caption")] - public string LinkCaption => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ru" && !string.IsNullOrWhiteSpace(RussianTitle) ? RussianLinkCaption : EnglishLinkCaption; + public string LinkCaption => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ru" && !string.IsNullOrWhiteSpace(RussianLinkCaption) ? RussianLinkCaption : EnglishLinkCaption; [Column(TypeName = "varchar(50)")] [DisplayName("Link text caption (en)")]