Use single i18n entry for the message
This commit is contained in:
@@ -202,12 +202,10 @@ other = "Objectives"
|
|||||||
[options_heading]
|
[options_heading]
|
||||||
other = "Options"
|
other = "Options"
|
||||||
|
|
||||||
[outdated_page_message]
|
[outdated_blog_over_one_year_old]
|
||||||
other = "Kubernetes authors consider this page to be outdated because REASON. We suggest that you use more recent resources."
|
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_reason]
|
|
||||||
other = "it is more than a year old"
|
|
||||||
|
|
||||||
[outdated_page_title]
|
[outdated_blog_title]
|
||||||
other = "Outdated article"
|
other = "Outdated article"
|
||||||
|
|
||||||
[post_create_issue]
|
[post_create_issue]
|
||||||
|
|||||||
@@ -10,10 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
|
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
|
||||||
{{ $title := .Param "outdated_page.title" | default (T "outdated_page_title") -}}
|
{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}}
|
||||||
{{ $msg := .Param "outdated_page.message" | default (T "outdated_page_message") -}}
|
{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}}
|
||||||
{{ $reason := .Param "outdated_page.reason" | default (T "outdated_page_reason") -}}
|
|
||||||
{{ $msg = replaceRE "REASON" $reason $msg -}}
|
|
||||||
<section id="deprecation-warning" class="blog-outdated-warning">
|
<section id="deprecation-warning" class="blog-outdated-warning">
|
||||||
<div class="content deprecation-warning pageinfo">
|
<div class="content deprecation-warning pageinfo">
|
||||||
<h3>{{ $title }}</h3>
|
<h3>{{ $title }}</h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user