Projet

Général

Profil

0001-misc-mark-strings-for-translations-20964.patch

Frédéric Péters, 04 octobre 2020 11:40

Télécharger (3,21 ko)

Voir les différences:

Subject: [PATCH] misc: mark strings for translations (#20964)

 bijoe/templates/bijoe/cube.html         | 14 +++++++-------
 bijoe/templates/bijoe/unauthorized.html |  3 +--
 bijoe/visualization/forms.py            |  4 ++--
 3 files changed, 10 insertions(+), 11 deletions(-)
bijoe/templates/bijoe/cube.html
25 25
{% block content %}
26 26
  <form class="cube-form" method="post" action=".">
27 27
    {% csrf_token %}
28
    <h3>Représentation</h3>
28
    <h3>{% trans "Presentation" %}</h3>
29 29
    {% include "bijoe/field.html" with field=form.representation %}
30
    <h3>Mesure</h3>
30
    <h3>{% trans "Measure" %}</h3>
31 31
    {% include "bijoe/field.html" with field=form.measure %}
32
    <h3>Regroupement horizontal</h3>
32
    <h3>{% trans "Group by - horizontally" %}</h3>
33 33
    {% include "bijoe/field.html" with field=form.drilldown_x %}
34
    <h3>Regroupement vertical</h3>
34
    <h3>{% trans "Group by - vertically" %}</h3>
35 35
    {% include "bijoe/field.html" with field=form.drilldown_y %}
36
    <h3>Répétition</h3>
36
    <h3>{% trans "Loop" %}</h3>
37 37
    {% include "bijoe/field.html" with field=form.loop %}
38
    <h3>Filtre(s)</h3>
38
    <h3>{% trans "Filter(s)" %}</h3>
39 39
    {% for field in form %}
40 40
      {% 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" %}
41 41
        {% include "bijoe/filter_field.html" with field=field %}
......
43 43

  
44 44
    {% endfor %}
45 45
    {% block buttons %}
46
      <input type="submit" name="visualize" value="{% trans "Visualiser" %}">
46
      <input type="submit" name="visualize" value="{% trans "Visualize" %}">
47 47
    {% endblock %}
48 48
  </form>
49 49
  {% if cube.warnings %}
bijoe/templates/bijoe/unauthorized.html
2 2

  
3 3
{% block content %}
4 4
<p>
5
  <i>You are not authorized to access this service, please ask your administrator for
6
     access.</i>
5
  <i>{% trans "You are not authorized to access this service, please ask your administrator for access." %}</i>
7 6
</p>
8 7
{% endblock %}
bijoe/visualization/forms.py
207 207

  
208 208
        # group by
209 209
        self.base_fields['drilldown_x'] = forms.ChoiceField(
210
            label=_('Group by horizontaly'),
210
            label=_('Group by - horizontally'),
211 211
            choices=dimension_choices,
212 212
            required=False)
213 213

  
214 214
        self.base_fields['drilldown_y'] = forms.ChoiceField(
215
            label=_('Group by vertically'),
215
            label=_('Group by - vertically'),
216 216
            choices=dimension_choices,
217 217
            required=False)
218 218

  
219
-