More fine tuned auto save feature in Lotte for Transifex

Lotte is the component of Transifex providing the web UI for the translators to translate online. Well, some time back, I made some changes in the Lotte code so that it has the auto-save feature on by default. It was running fine then and I was happy. Then I added the spellcheck feature in Lotte. Then the things started going not as expected. Actually, the auto-save triggers when the contents of a text area has been edited and it loses focus. The first problem I faced is that the spellcheck button did not respond on the first click, but on the second. As expected, on the first click, auto-save was triggered. But this was not the case when I clicked the Undo button. First the auto-save and then the undo function would be executed. I was not able to come up with an answer to explain this. I was tinkering with the code and then accidentally I solved the problem. I just changed the order of the buttons. Initially I had – Spellcheck button , Save Button and Undo Button. Now, I have – Save button, Spellcheck button, Undo button. Weird! You can have a look at the change at https://bitbucket.org/rtnpro/transifex/changeset/b59880cadf67 . If you have an explanation for this, please comment. ...

July 1, 2011 · 3 min · Ratnadeep Debnath

Contributing to transifex

For some time, I have been hanging around with django. I got some cool video tutorials on the web on django. They helped me a lot to start coding in django. At the same time, I was also going through the Transifex source code. After some time, I browsed through the tickets in trac.transifex.org and started with fixing ticket #679. I had to go through javascript, jquery, html in addition to write the patch for #679. I also wrote a custom pagination plugin for dataTables pagination for fixing the issue mentioned in ticket #679. I submitted the patch upstream for review. I hope it will be accepted. ...

February 21, 2011 · 2 min · Ratnadeep Debnath

Wrote a patch for kettu, web interface for transmssion

Kettu is the new web interface for transmission bit torrent client. It is written using javascript and jquery. I wrote a small patch for kettu to filter the torrents on the basis of activity. Here activity means if the torrent is either uploading or downloading, i.e, upload_speed + download_speed > 0 KBps. Here’ s the patch I wrote : diff –git a/index.html b/index.html index 2a8ff97..b54b6b4 100644 — a/index.html +++ b/index.html @@ -58,6 +58,7 @@ Sort - <a href=”#/torrents?filter=all”>All + <a href=”#/torrents?filter=active”>Activity <a href=”#/torrents?filter=downloading”>Downloading <a href=”#/torrents?filter=seeding”>Seeding <a href=”#/torrents?filter=paused”>Paused @@ -94,4 +95,4 @@ ...

April 5, 2010 · 2 min · Ratnadeep Debnath