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!

mether's avatar
1.5k
mether
asked 2014-01-18 15:19:43 -0500, updated 2014-01-18 15:42:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Thanks for the comments. What do you mean by "filtering the language support"?

Evgeny's avatar Evgeny (2014-01-18 15:47:36 -0500) edit
1

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.

mether's avatar mether (2014-01-18 15:49:52 -0500) edit

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.

FranciscoD's avatar FranciscoD (2014-01-18 19:15:00 -0500) edit

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<>>

FranciscoD's avatar FranciscoD (2014-01-18 19:18:01 -0500) edit
add a comment see more comments