Improving multi language support

asked 2014-01-18 15:19:43 -0500

mether gravatar image

updated 2014-01-18 15:42:49 -0500

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!

edit retag flag offensive close merge delete

Comments

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

Evgeny gravatar imageEvgeny ( 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 gravatar imagemether ( 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 gravatar imageFranciscoD ( 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-keyhttps://github.com/ASKBOT/askbot-devel/blob/master/askbot/context.py#L35</p<>>

FranciscoD gravatar imageFranciscoD ( 2014-01-18 19:18:01 -0500 )edit