{{ $pageProseLang := partial "i18n/lang.html" . -}} {{ $siteLang := .Site.Language -}} {{/* The disable_translation_not_found_msg param isn't currently used and I suspect that we won't need it, but I'll wait until the following feature is implemented before removing the code: https://github.com/open-telemetry/opentelemetry.io/issues/6340 */ -}} {{ if and (ne $siteLang $pageProseLang) (not (.Param "disable_translation_not_found_msg")) -}} {{ with partial "_inline/ot-page-not-found-banner.html" . -}}
{{ . }}
{{ end -}} {{ end -}} {{ define "partials/_inline/ot-page-not-found-banner.html" }} {{ $path := "page-not-translated-msg.md" -}} {{ $args := (dict "path" $path "page" .Page) -}} {{ $page := partial "func/find-include.html" $args -}} {{ with $page -}} {{ .Content }} {{ else -}} {{ $lang := .Page.Language.Lang -}} {{ warnf "_inline/ot-page-not-found-banner: '%s' not found from page %s (%s)" $path .Page.Path $lang -}} {{ end -}} {{ end -}}