Translation framework: link fixing, banner

This commit is contained in:
mDuo13
2019-11-01 18:43:52 -07:00
parent b3b0f96357
commit f36b715a27
56 changed files with 78 additions and 56 deletions

View File

@@ -22,6 +22,13 @@
{% block main %}
<article class="pt-3 p-md-3">
{% if target.lang != "en" and "en" in currentpage.targets %}
{# Add a "sorry this page isn't translated" banner. #}
{# TODO: pull from a strings file #}
<div class="devportal-callout note mb-5"><strong>Sorry, this page is not available in your language.</strong>
<p class="mb-0">We are making an effort to offer the XRP Ledger Dev Portal in a variety of languages, but not all pages are available in all languages. If you'd like to help, <a href="#">please contribute!</a><!--{# TODO: have a real link for contributing translations #}--></p>
</div><!--/.devportal-callout-->
{% endif %}
<div class="content">
{{ content }}
</div>