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 13, 2024
1 parent 26bcbc1 commit 7c8824d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 17 deletions.
27 changes: 10 additions & 17 deletions dc_utils/templates/dc_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,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
16 changes: 16 additions & 0 deletions dc_utils/templates/includes/cy-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<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>
16 changes: 16 additions & 0 deletions dc_utils/templates/includes/en-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<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>

0 comments on commit 7c8824d

Please sign in to comment.