Fix failing tests in translations

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2019-03-02 14:10:54 -03:00
parent ec12e5559d
commit 90878630c9
2 changed files with 20 additions and 20 deletions

View File

@ -39,17 +39,17 @@
{% for rate in [2, 3, 4, 5, 10, 20, 40, 60, 120, 300, 600, 1200] %}
<option value="{{ rate }}"{{ rate == 5 ? ' selected' }}>
{% if rate < 60 %}
{% trans %}
{{ count }} second
{% plural rate %}
{{ count }} seconds
{% endtrans %}
{% if rate == 1 %}
{{ '%d second'|trans|format(rate) }}
{% else %}
{{ '%d seconds'|trans|format(rate) }}
{% endif %}
{% else %}
{% trans %}
{{ count }} minute
{% plural rate / 60 %}
{{ count }} minutes
{% endtrans %}
{% if rate / 60 == 1 %}
{{ '%d minute'|trans|format(rate / 60) }}
{% else %}
{{ '%d minutes'|trans|format(rate / 60) }}
{% endif %}
{% endif %}
</option>
{% endfor %}

View File

@ -28,17 +28,17 @@
{% for rate in [2, 3, 4, 5, 10, 20, 40, 60, 120, 300, 600, 1200] %}
<option value="{{ rate }}"{{ rate == 5 ? ' selected' }}>
{% if rate < 60 %}
{% trans %}
{{ count }} second
{% plural rate %}
{{ count }} seconds
{% endtrans %}
{% if rate == 1 %}
{{ '%d second'|trans|format(rate) }}
{% else %}
{{ '%d seconds'|trans|format(rate) }}
{% endif %}
{% else %}
{% trans %}
{{ count }} minute
{% plural rate / 60 %}
{{ count }} minutes
{% endtrans %}
{% if rate / 60 == 1 %}
{{ '%d minute'|trans|format(rate / 60) }}
{% else %}
{{ '%d minutes'|trans|format(rate / 60) }}
{% endif %}
{% endif %}
</option>
{% endfor %}