Thursday, June 18, 2009

The best solution?

So, I merged the first and second hook into one hook that will deal with both new and updated wml files. That hook will work like this:

* Bob commits a new wml file, lets call this tor.wml
* The SVN hook takes tor.wml and does three things:
- Converts to tor.po
- Sets the right encoding and charset in tor.po
- Commits tor.po

The "problem" with this solution is that the hook alters a transaction. When Bob thinks he's committing only one file (tor.wml), he is actually committing two files (tor.wml and tor.po). It may not be an ideal solution, but it works. That said, suggestions and ideas are always welcome.

Wednesday, June 17, 2009

More on SVN hooks

I managed to figure out the problem with the second and third hook, so everything is working just fine now. At the moment I have the following hooks (using the po4a framework):

1. New wml: using po4a-gettextize to convert the wml file to po
2. Updated wml: using po4a-updatepo to update the po files
3. Updated po; using po4a-translate to convert back to wml

Earlier I noticed that using po4a-updatepo will work in the case of the first hook as well, so I plan on merging the first and second hook tomorrow.

Monday, June 15, 2009

SVN hooks

I want to make sure that the wml and po files stay updated all the time, so I am writing svn hooks to take care of that. I have identified three cases where it would be useful to have pre-commit svn hooks:

1. If someone commits a new wml file: convert to po, copy to language directories and commit

2. If someone commits an updated wml file: update all the po files and commit

3. If someone commits an updated po file: convert back to wml, copy to language directories and commit

I finished the first hook last week, but I am having a few problems with the second and third one. I'm guessing it's something really simple and trivial.

Friday, May 29, 2009

Week 1: Pootle is up and running

With exams on Monday, Tuesday and Wednesday, the first week of GSoC went rather quick. My plan for this week was to get Pootle up and running, as well as look at the po4a configuration file and understand how it works.

I have set up Pootle on pootle.xcde.net. I have also converted some files, and the result can be seen on pootle.xcde.net/projects/website.

The plan for next week is to take a closer look at the files that I didn't manage to convert in this round.

Thursday, May 21, 2009

Open Tech 2009 in London

Open Tech 2009 is an informal, low cost, one-day conference on slightly different approaches to technology, democracy and community.

When: Saturday 4th July 2009
Where: Central London
Cost: £5 on the door.

More information on the Open Tech 2009 website.

Wednesday, May 6, 2009

Tor 0.2.0.34 now in hardy and intrepid

The latest stable release of Tor, version 0.2.0.34, has been backported to Ubuntu hardy and intrepid. Those of you running either hardy or intrepid should upgrade to get the latest version. Also, the bug report on bugs.launchpad.net explains why Tor was taken out of jaunty.

Monday, May 4, 2009

Preparing the files

I decided to get a little head start on my project by preparing a few files so that they can later be converted with po4a. When converting, po4a will make a string for each paragraph (or list-item) and therefore it is important that all of the tags are closed. In the next round I'll find a way to work around a few special links (such as "< package-rpm4-stable-sha1 >") and symbols (such as € and £).