How to enable i18n from within setup_app in websetup.py ?
- by daniel
From within the setup_app function (websetup.py) of a pylons i18n application, which is making use of a db, I was trying to initiate multilingual content to be inserted into the db.
To do so the idea was something like:
necessary imports here
def setup_app(command, conf, vars):
....
for lang in langs:
set_lang(lang)
…