Browse Source

blogging module localization

pull/441/head
Yunus Emre Kalkan 8 years ago
parent
commit
e4caec1cd8
  1. 4
      modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs
  2. 3
      modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json
  3. 5
      modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json
  4. 2
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml
  5. 1
      modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml

4
modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs

@ -161,6 +161,10 @@ namespace Volo.Blogging.Posts
private List<string> SplitTags(string tags)
{
if (tags.IsNullOrWhiteSpace())
{
return new List<string>();
}
return new List<string>(tags.Split(",").Select(t=>t.Trim()));
}
}

3
modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json

@ -10,7 +10,10 @@
"PopularTags": "Popular Tags",
"Read": "Read",
"LastPosts": "Last Posts",
"LeaveComment": "Leave Comment",
"TagsInThisArticle": "Tags in this article",
"Posts": "Posts",
"Edit": "Edit",
"Comment": "Comment",
"WhatIsNew": "What is new?"
}

5
modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json

@ -3,14 +3,17 @@
"texts": {
"Menu:Blogs": "Blog",
"Title": "Başlık",
"ContinueReading": "Okumaya Devam",
"ContinueReading": "Devamı...",
"DaysAgo": "Gün Önce",
"Content": "İçerik",
"SeeAll": "Hepsini Gör",
"PopularTags": "Popüler Etiketler",
"Read": "Okunma",
"LastPosts": "Son Yazılar",
"LeaveComment": "Yorum Bırak",
"TagsInThisArticle": "Makalenin Etiketleri",
"Posts": "Yazılar",
"Edit": "Düzelt",
"Comment": "Yorum",
"WhatIsNew": "Yeniler"
}

2
modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml

@ -96,7 +96,7 @@
<div class="row">
<div class="col-md-8 mx-auto">
<div class="tags">
<h5>Tags in this article</h5>
<h5>@L["TagsInThisArticle"]</h5>
@foreach (var tag in Model.Post.Tags)
{
<a asp-page="/Blog/Tags/Posts" asp-route-blogShortName="@Model.BlogShortName" asp-route-tagName="@tag.Name" class="tag">@tag.Name</a>

1
modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml

@ -1,6 +1,5 @@
@page
@inherits Volo.Blogging.Pages.Blog.BloggingPage
@using System.Net
@using Microsoft.AspNetCore.Authorization
@using Volo.Blogging
@using Volo.Blogging.Pages.Blog.Posts

Loading…
Cancel
Save