{%- assign pagelang = 'en' -%} {%- if page.lang -%} {%- assign pagelang = page.lang -%} {%- endif -%} {%- unless pagelang == "en" -%} {%- assign enupdatedate = enpage.last_updated | date: "%s" -%} {%- assign thisupdatedate = page.last_updated | date: "%s" -%} {%- if page.changelog -%} {%- assign chagelogpage=site.documents | where:"ref", page.changelog | first -%} {%- unless changelogpage.ref -%} {%- assign changelogpage=site.pages | where:"ref", page.changelog | first -%} {%- endunless -%} {%- assign changelogpageurl = changelogpage.url | relative_url -%} {%- assign changelogpagereplace = "$1|" | append: changelogpageurl -%} {%- else -%} {%- assign changelog = "" -%} {%- endif -%}

{% include t.html t="About this Translation" %}

{% assign replacepattern = enpage.url | relative_url | prepend: "$1|" %}{% include t.html t='This volunteer translation might not accurately reflect the intentions of the English original.' replace=replacepattern %}

{% if pagelang == 'en' %}

{% include_cached icon.html name="check-circle" %} {% include t.html t='Translation up-to-date with the English version.' %}
{% include t.html t='Translation updated:' %} {{page.last_updated | date: "%Y-%m-%d"}}. {% include t.html t='English updated:' %} {{enpage.last_updated | date: "%Y-%m-%d"}}.

{% include_cached icon.html name="warning" %} {% include t.html t='English version updated since this translation: Change log.' replace=changelogpagereplace %}
{% include t.html t='English updated:' %} {{enpage.last_updated | date: "%Y-%m-%d"}}. {% include t.html t='Translation updated:' %} {{page.last_updated | date: "%Y-%m-%d"}}.

{% else %} {% if enupdatedate <= thisupdatedate %}

{% include_cached icon.html name="check-circle" %} {% include t.html t='Translation up-to-date with the English version.' %}
{% include t.html t='Translation updated:' %} {{page.last_updated | date: "%Y-%m-%d"}}. {% include t.html t='English updated:' %} {{enpage.last_updated | date: "%Y-%m-%d"}}.

{% else %}

{% include_cached icon.html name="warning" %} {% include t.html t='English version updated since this translation: Change log.' replace=changelogpagereplace %}
{% include t.html t='English updated:' %} {{enpage.last_updated | date: "%Y-%m-%d"}}. {% include t.html t='Translation updated:' %} {{page.last_updated | date: "%Y-%m-%d"}}.

{% endif %} {% endif %}

{%- capture translatorslabel %}{% include t.html t='Translator:' %}{%- endcapture %} {% include peoplelist.html label=translatorslabel people=page.translators %} {%- capture contributorslabel %}{% include t.html t='Contributor:' %}{%- endcapture %} {% include peoplelist.html label=contributorslabel people=page.contributors %} {%- assign replacepattern = "/about/translating/" | relative_url | prepend: "$1|" -%}
{% include t.html t='WAI thanks translators, and welcomes other translations.' replace=replacepattern %}

{%- endunless -%}