8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-05-19 09:02:35 +00:00

Mark strings for translation in templates

This commit is contained in:
Laouen Fernet 2019-11-16 14:13:35 +00:00 committed by chirac
parent 5d4d9d71bf
commit fe4de10f7a
12 changed files with 20 additions and 21 deletions

View file

@ -14,8 +14,7 @@ Copyright © 2019 Alexandre Iooss
{% block content %} {% block content %}
<div id="content-main"> <div id="content-main">
<p> <p>
{% blocktrans %}You are on the operator interface. Here you will be able to manage the network and users {% blocktrans %}You are on the operator interface. Here you will be able to manage the network and users from the top left menu. You can also go read the developer documentation.{% endblocktrans %}
from the top left menu. You can also go read the developer documentation.{% endblocktrans %}
</p> </p>
<p> <p>
{% blocktrans %}To go back to the main site, click "View site" button in top right menu.{% endblocktrans %} {% blocktrans %}To go back to the main site, click "View site" button in top right menu.{% endblocktrans %}
@ -26,12 +25,12 @@ Copyright © 2019 Alexandre Iooss
{% block sidebar %} {% block sidebar %}
<div id="content-related"> <div id="content-related">
<div class="module" id="recent-actions-module"> <div class="module" id="recent-actions-module">
<h2>{% trans 'My account' %}</h2> <h2>{% trans "My account" %}</h2>
<h3>{% trans 'My recent actions' %}</h3> <h3>{% trans "Recent actions" %}</h3>
{% load log %} {% load log %}
{% get_admin_log 10 as admin_log for_user user %} {% get_admin_log 10 as admin_log for_user user %}
{% if not admin_log %} {% if not admin_log %}
<p>{% trans 'None available' %}</p> <p>{% trans "None available" %}</p>
{% else %} {% else %}
<ul class="actionlist"> <ul class="actionlist">
{% for entry in admin_log %} {% for entry in admin_log %}
@ -46,7 +45,7 @@ Copyright © 2019 Alexandre Iooss
<span class="mini quiet">{% filter capfirst %} <span class="mini quiet">{% filter capfirst %}
{{ entry.content_type }}{% endfilter %}</span> {{ entry.content_type }}{% endfilter %}</span>
{% else %} {% else %}
<span class="mini quiet">{% trans 'Unknown content' %}</span> <span class="mini quiet">{% trans "Unknown content" %}</span>
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}

View file

@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/> <meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/>
<meta property="og:image:type" content="image/svg"/> <meta property="og:image:type" content="image/svg"/>
<meta property="og:image:alt" content="The Re2o logo"/> <meta property="og:image:alt" content="The Re2o logo"/>
<meta property="og:description" content="{% trans "Networking managing website endorsed by FedeRez." %}" /> <meta property="og:description" content="Networking managing website endorsed by FedeRez." />
{# Preload JavaScript #} {# Preload JavaScript #}
{% bootstrap_javascript %} {% bootstrap_javascript %}
@ -142,7 +142,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li><a href="{% url 'about' %}"><i class="fa fa-info-circle"></i> {% trans "About" %}</a></li> <li><a href="{% url 'about' %}"><i class="fa fa-info-circle"></i> {% trans "About" %}</a></li>
<li><a href="{% url 'contact' %}"><i class="fa fa-at"></i> {% trans "Contact" %}</a></li> <li><a href="{% url 'contact' %}"><i class="fa fa-at"></i> {% trans "Contact" %}</a></li>
{% comment %} {% comment %}
<li><a href="{% url 'tickets:new-ticket' %}"><i class="fa fa-ticket"></i> {% trans "Ouvrir un ticket" %}</a><li> <li><a href="{% url 'tickets:new-ticket' %}"><i class="fa fa-ticket"></i> {% trans "Open a ticket" %}</a><li>
{% endcomment %} {% endcomment %}
</ul> </ul>
</li> </li>
@ -284,7 +284,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<p class="pull-right"> <p class="pull-right">
<a href="#">{% trans "Back to top" %}</a> <a href="#">{% trans "Back to top" %}</a>
</p> </p>
<p>{{ name_website }} {% trans "powered by" %} Re2o 2016&ndash;2018</p> <p>{{ name_website }} {% trans "powered by" %} Re2o 2016&ndash;2019</p>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed %}
Brought to you with <i class="fa fa-heart text-danger"></i>. Brought to you with <i class="fa fa-heart text-danger"></i>.

View file

@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load i18n %} {% load i18n %}
<a {% if class%}class="btn btn-info btn-sm"{% endif %} role="button" title="{% trans 'History' %}" href="{% url 'logs:history' application name id %}"> <a {% if class%}class="btn btn-info btn-sm"{% endif %} role="button" title="{% trans "History" %}" href="{% url 'logs:history' application name id %}">
<i class="fa fa-history"></i> {% if text %}{% trans 'History' %}{% endif %} <i class="fa fa-history"></i> {% if text %}{% trans "History" %}{% endif %}
</a> </a>

View file

@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/> <meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/>
<meta property="og:image:type" content="image/svg"/> <meta property="og:image:type" content="image/svg"/>
<meta property="og:image:alt" content="The Re2o logo"/> <meta property="og:image:alt" content="The Re2o logo"/>
<meta property="og:description" content="{% trans "Networking managing website endorsed by FedeRez." %}" /> <meta property="og:description" content="Networking managing website endorsed by FedeRez." />
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="shortcut icon" type="image/svg" href="{% static 'images/logo_re2o.svg' %}"> <link rel="shortcut icon" type="image/svg" href="{% static 'images/logo_re2o.svg' %}">

View file

@ -38,7 +38,7 @@
</p> </p>
<p> <p>
<b>{% blocktrans trimmed %}An email has been automatically sent to the site administrators. Please avoid <b>{% blocktrans trimmed %}An email has been automatically sent to the site administrators. Please avoid
spamming them by trigerring the same issue multiple times.{% endblocktrans %}</b>{% blocktrans trimmed %} The mail should spamming them by trigerring the same issue multiple times.{% endblocktrans %}</b>{% blocktrans trimmed %} The email should
contains all the details necessary to understand what went wrong but if your help were contains all the details necessary to understand what went wrong but if your help were
needed, you will probably be contacted by them.{% endblocktrans %} needed, you will probably be contacted by them.{% endblocktrans %}
</p> </p>

View file

@ -8,11 +8,11 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> <a href="{% url 'index' %}">{% trans "Home" %}</a>
</div> </div>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p> <p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
<p><a href="{% url 'login' %}">{% trans 'Log in again' %}</a></p> <p><a href="{% url 'login' %}">{% trans "Log in again" %}</a></p>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password change" %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password change" %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password reset" %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset confirmation' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password reset confirmation" %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password reset" %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -8,6 +8,6 @@ Copyright © 2019 Alexandre Iooss
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="{% url 'index' %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %} <a href="{% url 'index' %}">{% trans "Home" %}</a> &rsaquo; {% trans "Password reset" %}
</div> </div>
{% endblock %} {% endblock %}