Saturday, December 7, 2019

Django 3 knows how to say “Year” in French

This failure was because my tests were still in Django 3 pre, but the final release knows that “Year” is “Année” in French.

To fix it, I didn’t change the expected output but rather added an explicit language=”en” to my calls to lino.api.rt.show(). Because specs pages should make sense also to people who don’t know French.

Miscellaneous

A failure in docs/specs/tera/sql.rst seems to be because some arbitrary evaluation order at some place. One possible culprit is the demo2 fixture of lino_xl.lib.excerpts, which didn’t specify order_by() when looping over the excerpt types:

for et in ExcerptType.objects.all().order_by('id'):