From bc07b824deda64fb429f0de559557db88a5bc717 Mon Sep 17 00:00:00 2001 From: Xeevis Date: Wed, 12 Jun 2019 00:58:45 +0200 Subject: [PATCH] Localize warning about missing document --- .../Volo.Docs.Domain/Volo/Docs/Localization/Domain/cs.json | 3 ++- .../Volo.Docs.Domain/Volo/Docs/Localization/Domain/en.json | 3 ++- .../src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/cs.json b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/cs.json index ec882e6538..4c21318fdb 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/cs.json +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Localization/Domain/cs.json @@ -13,6 +13,7 @@ "Projects": "Projekt(y)", "NoProjectWarning": "Zatím zde není žádný projekt!", "DocumentNotFound": "Ups, vyžádaný dokument neexistuje!", - "NavigationDocumentNotFound": "Tato verze nemá navigační dokument!" + "NavigationDocumentNotFound": "Tato verze nemá navigační dokument!", + "DocumentNotFoundInSelectedLanguage": "Tento dokument není dostupný ve vybraném jazyce. Zobrazen dokument ve výchozím jazyce." } } \ No newline at end of file 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 31d3835a3a..f399b8f151 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 @@ -13,6 +13,7 @@ "Projects": "Project(s)", "NoProjectWarning": "There are no projects yet!", "DocumentNotFound": "Oops, the requested document was not found!", - "NavigationDocumentNotFound": "This version does not have a navigation document!" + "NavigationDocumentNotFound": "This version does not have a navigation document!", + "DocumentNotFoundInSelectedLanguage": "Document in the language you wanted is not found. Document in the default language is shown." } } \ No newline at end of file diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index a7fc072011..6fd1a21797 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -192,8 +192,8 @@
@if (Model.DocumentLanguageIsDifferent) { - - Document in the language you wanted is not found. Document in the default language is shown. + + @L["DocumentNotFoundInSelectedLanguage"] } @Html.Raw(Model.Document.Content)