misc: mark strings for translations (#20964)

This commit is contained in:
Frédéric Péters 2020-10-04 11:38:04 +02:00
parent 532838f17e
commit 8c13ab136c
3 changed files with 10 additions and 11 deletions

View File

@ -25,17 +25,17 @@
{% block content %}
<form class="cube-form" method="post" action=".">
{% csrf_token %}
<h3>Représentation</h3>
<h3>{% trans "Presentation" %}</h3>
{% include "bijoe/field.html" with field=form.representation %}
<h3>Mesure</h3>
<h3>{% trans "Measure" %}</h3>
{% include "bijoe/field.html" with field=form.measure %}
<h3>Regroupement horizontal</h3>
<h3>{% trans "Group by - horizontally" %}</h3>
{% include "bijoe/field.html" with field=form.drilldown_x %}
<h3>Regroupement vertical</h3>
<h3>{% trans "Group by - vertically" %}</h3>
{% include "bijoe/field.html" with field=form.drilldown_y %}
<h3>Répétition</h3>
<h3>{% trans "Loop" %}</h3>
{% include "bijoe/field.html" with field=form.loop %}
<h3>Filtre(s)</h3>
<h3>{% trans "Filter(s)" %}</h3>
{% for field in form %}
{% if not field.is_hidden and field.name != "loop" and field.name != "measure" and field.name != "drilldown_x" and field.name != "drilldown_y" and field.name != "representation" %}
{% include "bijoe/filter_field.html" with field=field %}
@ -43,7 +43,7 @@
{% endfor %}
{% block buttons %}
<input type="submit" name="visualize" value="{% trans "Visualiser" %}">
<input type="submit" name="visualize" value="{% trans "Visualize" %}">
{% endblock %}
</form>
{% if cube.warnings %}

View File

@ -2,7 +2,6 @@
{% block content %}
<p>
<i>You are not authorized to access this service, please ask your administrator for
access.</i>
<i>{% trans "You are not authorized to access this service, please ask your administrator for access." %}</i>
</p>
{% endblock %}

View File

@ -207,12 +207,12 @@ class CubeForm(forms.Form):
# group by
self.base_fields['drilldown_x'] = forms.ChoiceField(
label=_('Group by horizontaly'),
label=_('Group by - horizontally'),
choices=dimension_choices,
required=False)
self.base_fields['drilldown_y'] = forms.ChoiceField(
label=_('Group by vertically'),
label=_('Group by - vertically'),
choices=dimension_choices,
required=False)