GSoC: Tx-api & our new submission system
Google summer of code 'pencils down day' is approaching! Luckily, the new transifex submission layer is ready! I have currently implemented git, mercurial and svn submitters on top of it. With this new layer writing a new submission method is plain easy: you just have to write a class with 2 or 3 methods! Also mercurial, svn and git submitters are now based on python modules to interact with the repositories.
API
A new api for the submit proccess is written (preview & submit). This will help us implement a cli client and to interact with other web apps or other transifex instances in the future.
Command line client
A command line client is implemented using the new transifex api. It's name is tx (no kidding!). Here is a demo session:
$ tx submit --module testmodule-svn --branch trunk \
--filename 'po/el.po' --contents el-new.po \
-m 'update greek translation' --diff
---
+++
@@ -256,7 +257,7 @@
#: transifex/module.py:705
msgid "Your submission was committed successfully."
-msgstr "Η υποβολή σας εναποτέθηκε με επιτυχία."
+msgstr "Η υποβολή σας καταχωρήθηκε με επιτυχία."
You can check out the code at our code browser. Any feedback is more than wellcome :)
About Comments
Your email won't be published for any reason. It's only kept for archive reasons if i want to contact you. You can use markdown syntax.