From 8f79d87defbab22727e72cb3ef00d06e57a4fa27 Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Sat, 29 Sep 2018 01:41:38 +0300 Subject: [PATCH] closed #437. --- .../Volo/Docs/Localization/Domain/en.json | 8 ++++++-- .../Volo/Docs/Localization/Domain/tr.json | 8 ++++++-- .../src/Volo.Docs.Web/Pages/Documents/Index.cshtml | 7 +++++-- .../src/Volo.Docs.Web/Pages/Documents/Index.cshtml.cs | 11 +++++------ .../Pages/Documents/Project/Index.cshtml | 6 +++--- .../Pages/Documents/Project/Index.cshtml.cs | 7 ++++--- 6 files changed, 29 insertions(+), 18 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/en.json b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/en.json index 04c33312fd..ac5e7b0873 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/en.json +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/en.json @@ -3,7 +3,11 @@ "texts": { "Documents": "Documents", "BackToWebsite": "Back to website", - "Version": "Version" - + "Version": "Version", + "Edit": "Edit", + "InThisDocument": "In this document", + "GoToTop": "Go to top", + "Projects": "Project(s)", + "NoProjectWarning": "There are no projects yet!" } } \ No newline at end of file diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/tr.json b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/tr.json index 7d0124e15c..634fa9e26d 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/tr.json +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/tr.json @@ -3,7 +3,11 @@ "texts": { "Documents": "Dökümanlar", "BackToWebsite": "Ana sayafaya dön", - "Version": "Versiyon" - + "Version": "Versiyon", + "Edit": "Düzenle", + "InThisDocument": "Bu dökümanda", + "GoToTop": "En üste çık", + "Projects": "Proje(ler)", + "NoProjectWarning": "Hiç proje yok!" } } \ No newline at end of file diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml index cefd9fdf6b..a667a5b341 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml @@ -1,7 +1,10 @@ @page @using Castle.Core.Internal +@using Microsoft.AspNetCore.Mvc.Localization @using Volo.Docs +@using Volo.Docs.Localization @using Volo.Docs.Pages.Documents +@inject IHtmlLocalizer L @model IndexModel @{ } @@ -16,12 +19,12 @@ @if (Model.Projects.IsNullOrEmpty()) { } @if (Model.Projects.Count > 0) { -

Project(s)

+

@L["Projects"]