Add support for an advisory string. (#3518)

This commit is contained in:
Martin Taillefer 2019-03-05 14:50:19 -08:00 committed by GitHub
parent d2e5fb1da4
commit 360fcb1713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -174,3 +174,6 @@ other = "This is an auto-generated file, please edit the source in the %s repo."
[switch_lang]
other = "Switch to Chinese"
[advisory]
other = "-"

View File

@ -174,3 +174,6 @@ other = "这是一个自动生成的文件,要修改其中的内容,请修
[switch_lang]
other = "切换到英文版"
[advisory]
other = "The Chinese content may be lagging the English docs"

View File

@ -35,6 +35,11 @@
<div class="info">
<p class="copyright" role="contentinfo">
{{ $advisory := (i18n "advisory") }}
{{ if ne $advisory "-" }}
{{ printf "%s" $advisory }}<br>
{{ end }}
{{ if .Site.Data.args.archive }}
{{ i18n "footer_istio_archive" }}
{{ else if .Site.Data.args.preliminary }}
@ -42,6 +47,7 @@
{{ else }}
{{ i18n "footer_istio" }}
{{ end }}
{{ .Site.Data.args.version }}<br>&copy; {{ .Site.Data.args.copyright_year }} Istio Authors, <a href="https://policies.google.com/privacy">{{ i18n "footer_privacy_policy" }}</a><br>
{{ if .Site.Data.args.archive }}
{{ printf (i18n "footer_archived_on") (dateFormat (i18n "footer_date_format") .Site.Data.args.archive_date) }}