Improving multi language support
We are planning to enable multi language support in Ask Fedora and we have run into a couple of issues
https://lists.fedoraproject.org/pipermail/infrastructure/2014-January/013928.html
1) The UI for selecting languages is out of place
2) The order of languages seem random
3) There is apparently no simple way to filter language support
Could one of the askbot developers look into these? Thanks!
Comments
Thanks for the comments. What do you mean by "filtering the language support"?
We don't want to enable support for all the languages in the menu. We would like to selectively enable a few and expand it further if needed.
I looked about a bit and something like seems to work: `LANGUAGES = {'en': 'English','el': 'Greek'}` @Evgeny: maybe you could add a commented code block like that to settings.py to let people know about this? I figured it out after looking at context.py, by the way.
Something like this would work to generate a sorted language list: http://paste.fedoraproject.org/69723/13900950 I'm still trying to figure out how test it out on my openshift instance. References: http://stackoverflow.com/questions/9001509/python-dictionary-sort-by-key https://github.com/ASKBOT/askbot-devel/blob/master/askbot/context.py#L35</p<>>