Hello, Thanks for your answer. We have opted for the solution where we allow content selection to depend on a user selectable choice of current language (a box in the upper right corner). We have added a language field to User, Thread and Tag. So, all queries have been adapted so that the language is taken into consideration whes displaying questions and tags. It adds a bit of complexity to the code, e.g. every time we want to search for tags or otherwise work with tags, we have to pass in the language to those functions. Also, when a thread is moved from one language to another (continued)
Ulf Karlsson ( 2012-10-26 06:25:28 -0500 )editwe have to keep track of the tag counts correctly... We also wanted a notion of persistent tags that do not go away when usage count is 0 - these may be added through the admin inteface. It may be possible to generalize this and instead of language have a section field.. but that section field would still have to be passed around when Tags are queried. Do you think this is anything that could be interesting for inclusion in Askbot, in that case we may try to generalize our code and refactor it according to any guidelines you could provide. Kind regards,
Ulf Karlsson ( 2012-10-26 06:31:07 -0500 )edit@siovene, the solution was to use the django-multilingual app. It is pretty easy to enable, but you might to hack get_absolute_url functions in some places inside askbot code, also some urls should be made exempt from the internationalization. I'll try to give you some more info early this week.
@Evgeny I've used django-modeltranslation in another project with success. But I guess I was looking for more than that. I would like the following: 1. Users must tag every question with a language (either a tag in the form of lan-en, lang-de, etc, or a selection box); 2. When the user selects a language he wants to use, then the site appears localized that way (including the model translations) and the questions are filtered by that language. So is there something like this somewhere, maybe in some branch? I'm okay with spending time improving it if it's not perfect yet.
siovene ( 2012-11-04 23:49:07 -0500 )edit
This will be great. I agree that it would be better to develop this in tandem so that this feature is immediately available to all when it is completed.
finid ( 2012-10-12 12:41:27 -0500 )edit