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!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mether's avatar
1.5k
mether
asked 11 years ago, updated 11 years ago

Comments

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

Evgeny's avatar Evgeny (11 years ago)
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 (11 years ago)

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 (11 years ago)

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 (11 years ago)
see more comments