1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

i18n: merged to [931] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Georg Bauer
2005-10-18 10:50:15 +00:00
11 changed files with 184 additions and 144 deletions

View File

@@ -399,13 +399,13 @@ Built-in tag reference
block are output::
{% if athlete_list %}
Number of athletes: {{ athlete_list|count }}
Number of athletes: {{ athlete_list|length }}
{% else %}
No athletes.
{% endif %}
In the above, if ``athlete_list`` is not empty, the number of athletes will be
displayed by the ``{{ athlete_list|count }}`` variable.
displayed by the ``{{ athlete_list|length }}`` variable.
As you can see, the ``if`` tag can take an option ``{% else %}`` clause that
will be displayed if the test fails.
@@ -432,8 +432,8 @@ Built-in tag reference
{% if athlete_list %}
{% if coach_list %}
Number of athletes: {{ athlete_list|count }}.
Number of coaches: {{ coach_list|count }}.
Number of athletes: {{ athlete_list|length }}.
Number of coaches: {{ coach_list|length }}.
{% endif %}
{% endif %}