pluralized it:P

master
Tomek Dubrownik 2012-01-29 13:46:07 +01:00
parent e7a6e24186
commit f0394c0cec
2 changed files with 7 additions and 1 deletions

2
at.py
View File

@ -20,6 +20,8 @@ import config
app = Flask('at')
app.wsgi_app = ProxyFix(app.wsgi_app)
app.secret_key = config.secret_key
app.jinja_env.add_extension('jinja2.ext.i18n')
app.jinja_env.install_null_translations()
updater = None
from functools import wraps

View File

@ -16,7 +16,11 @@ Now at hackerspace
</li>
{% endfor %}
</ul>
{% trans n_unk=unknown|length %}
There is {{ n_unk }} unknown device operating.
{% pluralize %}
There are {{ n_unk }} unknown devices operating.
{% endtrans %}
<hr>
There are {{ unknown|length }} unknown devices operating.
<a href="claim">Claim this device!</a>
{% endblock %}