Merge pull request #45945 from sftim/20240421_localize_case_study_fallback_text

Make case study title prefix localizable
pull/45974/head
Kubernetes Prow Robot 2024-04-22 14:05:39 -07:00 committed by GitHub
commit 6be32f03db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ other = "Show More Posts..."
[banner_acknowledgement]
other = "Hide this notice"
[case_study_prefix]
other = "Case study:"
[caution]
other = "Caution:"

View File

@ -6,7 +6,7 @@
<!-- Heading -->
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }});"{{ end }}>
<h1>
<span class="heading">{{ .Params.title_prefix | default "CASE STUDY:" }}</span>
<span class="heading">{{ .Params.title_prefix | default ( T "case_study_prefix" ) }}</span>
{{- if isset .Params "heading_title_logo" -}}
<img class="heading-logo" src="{{ .Params.heading_title_logo}}" />
{{- else if isset .Params "heading_title_text" -}}