Joining all the bits and pieces of work done in the last few months , here is the final implementation of the work done in diaspora.
Whenever a new user tries to sign up for the website additional to all the options he could choose till date now he can choose the posts of his known languages. He is given an option to choose all the languages he is aware of at first.
|Language selection for new user|
ISO codes of the selected languages are loaded into a dynamically sized array and stored along with the user preferences.
Right after this the user is directed towards the stream. Whenever he posts a status message he is given an option of either choosing auto detection of language of the post or he can manually select the language of the post from the dropdown. And then he is ready to post.
|Language selection while posting|
Finally this is how a post looks. Whenever we post something the language is right where the mouse is pointing. Fixed the UI to display the language not as a part of post.
P.S:- This post is auto tagged and hence some problem with tagging.
Also tried filtering with a crude button, works fine as of now. Will add filtering as per languages in some time.