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.

No comments:

Post a Comment