Update generators.py

Allow the use of {category} and/or {lang} for period archive generations.

Currently only {date} is supported.