_includes/t.html in wai-website-theme-1.5 vs _includes/t.html in wai-website-theme-1.5.1
- old
+ new
@@ -17,11 +17,11 @@
{%- else -%}
{%- assign source=site.data.translations | where: "en", include.t | first -%}
{%- if source[pagelang] -%}
{%- assign phrase=source[pagelang] -%}
{%- else -%}
- {%- unless site.hideTranslationHints %}<mark lang="en">Needs Translation</mark> {% endunless -%}
- {%- assign phrase=include.t -%}
+ {%- unless site.hideTranslationHints or include.hideTranslationHints %}<mark lang="en">Needs Translation</mark> {% endunless -%}
+ {%- assign phrase=include.t | prepend: '<span lang="en">' | append: '</span>' -%}
{%- endif -%}
{%- if include.replace -%}
{%- assign replacements = include.replace | split: "||" -%}
{%- for r in replacements -%}
{%- assign pair = r | split: "|" -%}
\ No newline at end of file