Skip to content

Commit 6de4f5b

Browse files
committed
Use single i18n entry for the message
1 parent d7b651a commit 6de4f5b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

data/i18n/en/en.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,10 @@ other = "Objectives"
202202
[options_heading]
203203
other = "Options"
204204

205-
[outdated_page_message]
206-
other = "Kubernetes authors consider this page to be outdated because REASON. We suggest that you use more recent resources."
207-
[outdated_page_reason]
208-
other = "it is more than a year old"
205+
[outdated_blog_over_one_year_old]
206+
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."
209207

210-
[outdated_page_title]
208+
[outdated_blog_title]
211209
other = "Outdated article"
212210

213211
[post_create_issue]

layouts/partials/deprecation-warning.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ <h3>
1010
</div>
1111
</section>
1212
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
13-
{{ $title := .Param "outdated_page.title" | default (T "outdated_page_title") -}}
14-
{{ $msg := .Param "outdated_page.message" | default (T "outdated_page_message") -}}
15-
{{ $reason := .Param "outdated_page.reason" | default (T "outdated_page_reason") -}}
16-
{{ $msg = replaceRE "REASON" $reason $msg -}}
13+
{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}}
14+
{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}}
1715
<section id="deprecation-warning" class="blog-outdated-warning">
1816
<div class="content deprecation-warning pageinfo">
1917
<h3>{{ $title }}</h3>

0 commit comments

Comments
 (0)