public static ICollection <PostInfoEntry> SetFrontEndTexts(this ITextMapService t, ICollection <PostInfoEntry> entries, string context, string textClickToReadFullArticle, string textReadFullArticle, string textOpenArticleInNewWindow) { if (entries != null) { foreach (var entry in entries) { entry.TextClickToReadFullArticle = t.GetMap(textClickToReadFullArticle, context); entry.TextOpenArticleInNewWindow = t.GetMap(textOpenArticleInNewWindow, context); entry.TextReadFullArticle = t.GetMap(textOpenArticleInNewWindow, context); } } return(entries); }
public string GetPageTitle(string pageTitle) { pageTitle = $"{_textMapService.GetMap(_settings.SiteName)} - {_textMapService.GetMap(pageTitle)}"; return(pageTitle); }
public string GetFullPageTitleForLayout(string pageTitle) { return($"{_textMapService.GetMap(_settings.SiteName)} - {pageTitle}"); }