[Student-projects] GSoC 2014 Project - Language filter for Diaspora

Pirate Praveen pravi.a at gmail.com
Wed Mar 12 20:20:14 PDT 2014


2014-03-12 22:31 GMT+05:30, karthik senthil <karthik.senthil94 at gmail.com>:
> Hey
>
> I checked the schema of Diaspora, and found out that they are using a
> model named user_preferences.
> We can save the language settings for a user by adding an additional
> column in this model named languages_preferred(array).
>
> After this whenever we are fetching the posts for the user, we can
> restrict them by the language given in this field through :
>
> current_user.user_preferences.languages_preferred.each do |language|
> posts=Post.tagged_with(language)
> end
>
>
> Now, to configure this languages_preferred field, we can build a UI to
> select the languages from a list of available ones and correspondingly
> add(or edit/delete) them in the array of languages in the
> user_preferences model.
>
> Waiting for your opinion on this idea :)
>
> Thanking You
> Karthik.S

I think it would be a good idea to move this discussion to diaspora's
loomio group so we get wider feedback

https://www.loomio.org/d/4vTqCj5X/language-filter-for-diaspora-as-a-gsoc-project

-- 
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
You have to keep reminding your government that you don't get your rights
from them; you give them permission to rule, only so long as they follow the
rules: laws and constitution.



More information about the Student-projects mailing list