Skip to content

Commit

Permalink
Replace trans tags with separate trans files
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed May 14, 2024
1 parent 26bcbc1 commit 8ef01ac
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 18 deletions.
28 changes: 10 additions & 18 deletions dc_utils/templates/dc_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% stylesheet 'styles' %}
{% endblock extra_site_css %}


{% block body_raw %}
<body {% block body_attrs %}class="ds-width-full"{% endblock body_attrs %}>
<div class="ds-page">
Expand Down Expand Up @@ -50,29 +49,22 @@
{% block mailing_list %}
<div class="ds-dark">
<a class="ds-cta ds-cta-blue" href="https://mailinglist.democracyclub.org.uk/subscription/form">
{% trans "Join our mailing list" %}
{% if LANGUAGE_CODE == 'cy' %}
Ymunwch â'n rhestr bostio
{% else %}
Join our mailing list
{% endif %}
</a>
</div>
{% endblock mailing_list %}
{% block footer_menu %}
{% endblock footer_menu %}
{% block footer_logo %}
<div class="ds-copyright">
<a class="ds-logo" href="https://democracyclub.org.uk/">
<img src="{% static 'images/logo_icon.svg' %}" width="72" alt="Democracy Club logo" />
<span class="ds-text-left">
{% trans "democracy"%}<br>{% trans "club" %}
</span>

</a>
{% now "Y" as current_year %}
<p>{% trans "Copyright"%} &copy; {{ current_year }}</p>
<p>{% trans "Democracy Club Community Interest Company" %}</p>
<p>{% trans "Company No: " %}<a href="https://beta.companieshouse.gov.uk/company/09461226">09461226</a></p>
<p class="ds-text-centered">
{% trans "Building digital infrastructure for a 21st century democracy." %}
</p>
</div>
{% if LANGUAGE_CODE == 'cy' %}
{% include 'includes/cy-footer.html' %}
{% else %}
{% include 'includes/en-footer.html' %}
{% endif %}
{% endblock footer_logo %}
{% block extra_footer_text %}
{% endblock extra_footer_text %}
Expand Down
17 changes: 17 additions & 0 deletions dc_utils/templates/includes/cy-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% load static %}
<div class="ds-copyright">
<a class="ds-logo" href="https://democracyclub.org.uk/">
<img src="{% static 'images/logo_icon.svg' %}" width="72" alt="logo democratiaeth clwb" />
<span class="ds-text-left">
democratiaeth<br>clwb
</span>

</a>
{% now "Y" as current_year %}
<p>Hawlfraint &copy; {{ current_year }}</p>
<p>Cwmni Buddiannau Cymunedol Clwb Democratiaeth</p>
<p>Rhif cwmni: <a href="https://beta.companieshouse.gov.uk/company/09461226">09461226</a></p>
<p class="ds-text-centered">
Adeiladu seilwaith digidol ar gyfer democratiaeth yn yr 21ain ganrif.
</p>
</div>
15 changes: 15 additions & 0 deletions dc_utils/templates/includes/en-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% load static %}
<div class="ds-copyright">
<a class="ds-logo" href="https://democracyclub.org.uk/">
<img src="{% static 'images/logo_icon.svg' %}" width="72" alt="Democracy Club logo" />
<span class="ds-text-left">
democracy<br>club
</span>

</a>
{% now "Y" as current_year %}
<p>Copyright &copy; {{ current_year }}</p>
<p>Democracy Club Community Interest Company</p>
<p>Company No: <a href="https://beta.companieshouse.gov.uk/company/09461226">09461226</a></p>
<p class="ds-text-centered">Building digital infrastructure for a 21st century democracy.</p>
</div>

0 comments on commit 8ef01ac

Please sign in to comment.