From b6299f907b19eaacb71391d264af5c229cb082aa Mon Sep 17 00:00:00 2001 From: Rolfe Dlugy-Hegwer Date: Mon, 29 Aug 2022 22:41:44 -0400 Subject: [PATCH] Fix release-data i18n --- data/i18n/en/en.toml | 23 +++++++++++++++++++++++ layouts/shortcodes/release-data.html | 8 ++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 831401536c..d6c01acb5e 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -1,5 +1,13 @@ # i18n strings for the English (main) site. # NOTE: Please keep the entries in alphabetical order when editing + +# Avoid using conjunction_1. +# Must match the context in layouts/shortcodes/release-data.html +# Appears on https://kubernetes.io/releases/ +# For example the "and" in "Complete 1.25 Schedule and Changelog" +[conjunction_1] +other = "and" + [caution] other = "Caution:" @@ -262,6 +270,21 @@ other = "(released: " [release_date_format] other = "2006-01-02" +# Deprecated. Planned for removal in a future release. +# Use [release_full_details_initial_text] instead. +[release_complete] +other = "Complete" + +# Replace [release_complete] with [release_full_details_initial_text] +[release_full_details_initial_text] +other = "Complete" + +[release_schedule] +other = "Schedule" + +[release_changelog] +other = "Changelog" + [seealso_heading] other = "See Also" diff --git a/layouts/shortcodes/release-data.html b/layouts/shortcodes/release-data.html index 0dbafc7acf..e021b38799 100644 --- a/layouts/shortcodes/release-data.html +++ b/layouts/shortcodes/release-data.html @@ -33,10 +33,10 @@ {{- end -}} - -

-Complete {{ $dataVersion }} Schedule -and Changelog +

+{{ T "release_full_details_initial_text" }} {{ $dataVersion }} +{{ T "release_schedule" }} {{ T "conjunction_1" }} +{{ T "release_changelog" }}