I would like to set my LANGUAGES variable dynamically by loading the values from the database.
Let's say i have a table like this
COLUMN_NAME
-----------
id
name
identifier
active
and i would like to define these languages:
LANGUAGES = (
('en', _('English')),
('de', _('German')),
('fr', _('French')),
)
i would need to load all languages from the table and define them in the settings file. now i don't think that running a query in the settings file is a good idea.
This way also allows me to activate and disable languages on the fly (if for example a language file contains grammar mistakes).
I really wouldn't know on how to start on this. I have searched a lot on google but i can't find anyone who has needed this system (it could be that this is also unnecessary)
any recommendations on this?