smartchicago/chicago-early-learning — pull request #124 by dzwarg (2013-01-17 19:33:32+00:00)
Title: Add i18n to faq app.

* The faq topic is chosen by the viewer's language.
* The viewer's language must be in the list of supported languages, and it defaults to the application default if the faq is not present in the viewer's language.
* Added a management command to populate the faq topics based on the LANGUAGES setting.

**NOTE** The management command 'translate-faq' must be run after this update, in the staging environment:

./manage.py translate-faq

The staging server has been segmented onto a staging database to facilitate this transition.

After this update, the faq is available at the following URLs:

/en/faq.html
/es/faq.html

Where the `en` and `es` languages are specified in the settings. If the `es` translations are not present (based on the slug of the FAQ topic), then the default language FAQ is used. However, if an unknown language accesses the faq (e.g. `fr`), then a 404 is raised.