Friday 20 June 2014

#include "week5"



This week was continuous commits and fixing the issues. Most of the part can be found here . It's the pull request which I gave and Diaspora people aided me a lot with the issues. They wanted me to change the methodology because it would create a lot of complication and confusion in the tags following path. We even came to final conclusion that adding a filter on top of it may disturb the existing tags functionality. However the code written for Language selection and detection was considered useful and they want me to build everything on top of it. Fetching any variables from publisher page to status message controllers is still ongoing and seems pretty tough. Adding a normal select dropdown list makes the css look like

Dropdown
List
It messes up the front end even after trying to fix the CSS and doesn't get the work done. I am finally trying to get it by adding some javascript. They even asked me to do the Language selection while signing up totally client side. I worked on it and managed to get it but we're still deciding on how to store it in back-end as the plan of storing it as followed tags has been crossed off. 

Monday 16 June 2014

#include "week4"



This week was mostly about the backbone.js part for the implementation of translation and a dropdown list for the modification of language after posting a post.

Mainly a couple of changes have to be made to this file. Still the backbone part is new to me and the I need to study it for some time to implement. Besides this I am finalizing the UI for this and authorization about who can change the language. Also I am in discussion about how to implement the translation part.  Although the UI for this part will be very trivial, back-end storage will be somewhat complicated and take much time.

I am also working on the css part for language display. I had some discussion with diaspora people regarding the review of what I have done so far. They asked me to send a pull request for a detailed discussion base. Currently , they're reviewing the code and said they will get back to me with a solution. 

Thursday 5 June 2014

#include "week2 && week3"



Last week  I had some work progress but most of them were left  incomplete and I had to solve the bugs to bring them to this stag.

Testing WhatLanguage Gem :

As I mentioned earlier it turned out that I had to use language field in status method so I planned on going ahead and adding another line in status message itself to see if this gem works.
After including the gem in Gemfile and using it for detection it works juts fine. Mostly the detection goes wrong for normal English sentences. However we have option for manual tagging to control it.


Tag while post feature : 

I have changed the view for the main stream .



I have added another field called Language and selected "Auto Tag" by default so that if without changing it if a user posts, it uses the gem to autodetect language. I tried using some standard haml dropdowns but they din't work on this view so I had to use their standards to not make the view go berserk. Currently I am working on fetching the selected field to status_messages_controller.rb. 


Sign_up page modifications : 

As mentioned in the proposal I was about to make changes to the sign_up page to add preferred languages.


I added the field to do so. Due to some errors in Javascript the autocomplete feature is not working for it . Currently I am having discussions about it in Diaspora-dev and with my mentor. Will come up with an update soon .


PS: I have updated my git repo . You can have a look at the commit history or pull the latest one and try to have a look at the added features. :)