Skip to content

Commit

Permalink
Links update & translations typos fixes (#671)
Browse files Browse the repository at this point in the history
* Remove BDF link (as BDF is now part of AE)

* Remove unused pages

* Fix typos

* Fix typo again
  • Loading branch information
Juknum committed Oct 10, 2023
1 parent 4231a79 commit d16bf12
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 76 deletions.
2 changes: 1 addition & 1 deletion club/templates/club/club_sellings.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% from 'core/macros.jinja' import user_profile_link, paginate %}

{% block content %}
<h3>{% trans %}Sellings{% endtrans %}</h3>
<h3>{% trans %}Sales{% endtrans %}</h3>
<form id="form" action="?page=1" method="post">
{% csrf_token %}
{{ form }}
Expand Down
2 changes: 1 addition & 1 deletion club/templates/club/club_tools.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{% endif %}
</ul>
{% if object.club_account.exists() %}
<h4>{% trans %}Accouting: {% endtrans %}</h4>
<h4>{% trans %}Accounting: {% endtrans %}</h4>
<ul>
{% for ca in object.club_account.all() %}
<li><a href="{{ url('accounting:club_details', c_account_id=ca.id) }}">{{ ca.get_display_name() }}</a></li>
Expand Down
2 changes: 1 addition & 1 deletion com/templates/com/news_detail.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<p> <a href="{{ url('com:news_moderate', news_id=news.id) }}">{% trans %}Moderate{% endtrans %}</a></p>
{% endif %}
{% if user.can_edit(news) %}
<p> <a href="{{ url('com:news_edit', news_id=news.id) }}">{% trans %}Edit (will be remoderated){% endtrans %}</a></p>
<p> <a href="{{ url('com:news_edit', news_id=news.id) }}">{% trans %}Edit (will be moderated again){% endtrans %}</a></p>
{% endif %}
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions core/templates/core/base.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@
<ul class="content">
<li><a href="{{ url('core:page', page_name='ae') }}">{% trans %}AE{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='clubs') }}">{% trans %}AE's clubs{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='bdf') }}">{% trans %}BdF{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='bds') }}">{% trans %}BDS{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='cetu') }}">{% trans %}CETU{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='clubs/doceo') }}">{% trans %}Doceo{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='positions') }}">{% trans %}Positions{% endtrans %}</a></li>
<li><a href="{{ url('core:page', page_name='utbm-associations') }}">{% trans %}Others UTBM's Associations{% endtrans %}</a></li>
</ul>
</div>
<div class="menu">
Expand Down
2 changes: 1 addition & 1 deletion core/templates/core/register.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{% if user_registered %}
{% trans user_name=user_registered.get_display_name() %}Welcome {{ user_name }}!{% endtrans %}<br>
{% trans %}You successfully registred and you will soon receive a confirmation mail.{% endtrans %}<br>
{% trans %}You successfully registered and you will soon receive a confirmation mail.{% endtrans %}<br>
{% trans username=user_registered.username %}Your username is {{ username }}.{% endtrans %}<br>

{% else %}
Expand Down
4 changes: 2 additions & 2 deletions core/templates/core/user_account.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
{% set refilled = customer.refillings.exists() %}
{% if bought or refilled %}
{% if bought %}
<h5>{% trans %}Account buyings{% endtrans %}</h5>
<h5>{% trans %}Account purchases{% endtrans %}</h5>
{{ monthly(buyings_month) }}
{% endif %}
{% if refilled %}
<h5>{% trans %}Refillings{% endtrans %}</h5>
<h5>{% trans %}Reloads{% endtrans %}</h5>
{{ monthly(refilling_month) }}
{% endif %}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions core/templates/core/user_account_detail.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>{% trans %}Amount: {% endtrans %}{{ customer.amount }} €</p>
<p><a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Back{% endtrans %}</a></p>
{% if customer.buyings.exists() %}
<h4>{% trans %}Account buyings{% endtrans %}</h4>
<h4>{% trans %}Account purchases{% endtrans %}</h4>
<table>
<thead>
<tr>
Expand Down Expand Up @@ -43,7 +43,7 @@
</table>
{% endif %}
{% if customer.refillings.exists() %}
<h4>{% trans %}Refillings{% endtrans %}</h4>
<h4>{% trans %}Reloads{% endtrans %}</h4>
<table>
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion counter/templates/counter/cash_summary_list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ form }}
<p><input type="submit" value="{% trans %}Show{% endtrans %}" /></p>
</form>
<h6>{% trans %}Refillings{% endtrans %}</h6>
<h6>{% trans %}Reloads{% endtrans %}</h6>
<p>
{% for b,s in refilling_sums.items() %}
{{ b }}: {{ s }} €<br/>
Expand Down
4 changes: 2 additions & 2 deletions counter/templates/counter/counter_list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% endif %}
{% if user.is_owner(c) %}
<a href="{{ url('counter:prop_admin', counter_id=c.id) }}">{% trans %}Props{% endtrans %}</a> -
<a href="{{ url('counter:refilling_list', counter_id=c.id) }}">{% trans %}Refillings list{% endtrans %}</a>
<a href="{{ url('counter:refilling_list', counter_id=c.id) }}">{% trans %}Reloads list{% endtrans %}</a>
{% endif %}
</li>
{% endfor %}
Expand All @@ -41,7 +41,7 @@
{% endif %}
{% if user.is_owner(c) %}
<a href="{{ url('counter:prop_admin', counter_id=c.id) }}">{% trans %}Props{% endtrans %}</a> -
<a href="{{ url('counter:refilling_list', counter_id=c.id) }}">{% trans %}Refillings list{% endtrans %}</a>
<a href="{{ url('counter:refilling_list', counter_id=c.id) }}">{% trans %}Reloads list{% endtrans %}</a>
{% endif %}
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion counter/templates/counter/counter_main.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% block content %}
<h3>{% trans counter_name=counter %}{{ counter_name }} counter{% endtrans %}</h3>
<div>
<h3>{% trans %}Sellings{% endtrans %}</h3>
<h3>{% trans %}Sales{% endtrans %}</h3>
{% if last_basket %}
<h4>{% trans %}Last selling: {% endtrans %}</h4>
<p>{% trans %}Client: {% endtrans %}{{ last_customer }} - {% trans %}New amount: {% endtrans %}{{ new_customer_amount }} €.</p>
Expand Down
4 changes: 2 additions & 2 deletions counter/templates/counter/last_ops.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{% block content %}
<h3>{% trans counter_name=counter %}{{ counter_name }} last operations{% endtrans %}</h3>
<h4>{% trans %}Refillings{% endtrans %}</h4>
<h4>{% trans %}Reloads{% endtrans %}</h4>
<table>
<thead>
<tr>
Expand All @@ -38,7 +38,7 @@
</tbody>
</table>

<h4>{% trans %}Sellings{% endtrans %}</h4>
<h4>{% trans %}Sales{% endtrans %}</h4>
<table>
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion counter/templates/counter/refilling_list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% from 'core/macros.jinja' import paginate %}

{% block title %}
{%- trans %}Refillings list{% endtrans %} -- {{ counter.name }}
{%- trans %}Reloads list{% endtrans %} -- {{ counter.name }}
{% endblock %}

{% block content %}
Expand Down

0 comments on commit d16bf12

Please sign in to comment.