From 6de4f5bcf167847b11d059b41c1c80052dd447b4 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 1 Feb 2022 15:52:36 -0500 Subject: [PATCH] Use single i18n entry for the message --- data/i18n/en/en.toml | 8 +++----- layouts/partials/deprecation-warning.html | 6 ++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 928d406a92..adb9e00f0b 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -202,12 +202,10 @@ other = "Objectives" [options_heading] other = "Options" -[outdated_page_message] -other = "Kubernetes authors consider this page to be outdated because REASON. We suggest that you use more recent resources." -[outdated_page_reason] -other = "it is more than a year old" +[outdated_blog_over_one_year_old] +other = "The Kubernetes project considers this article to be outdated because it is more than one year old. Check that the information in the page has not become incorrect since its publication." -[outdated_page_title] +[outdated_blog_title] other = "Outdated article" [post_create_issue] diff --git a/layouts/partials/deprecation-warning.html b/layouts/partials/deprecation-warning.html index 120e651beb..d6d4f9948f 100644 --- a/layouts/partials/deprecation-warning.html +++ b/layouts/partials/deprecation-warning.html @@ -10,10 +10,8 @@ {{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}} -{{ $title := .Param "outdated_page.title" | default (T "outdated_page_title") -}} -{{ $msg := .Param "outdated_page.message" | default (T "outdated_page_message") -}} -{{ $reason := .Param "outdated_page.reason" | default (T "outdated_page_reason") -}} -{{ $msg = replaceRE "REASON" $reason $msg -}} +{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}} +{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}}

{{ $title }}