Set up your own Transifex server in virtualenv

Content on this page is probably outdated and represents my personal knowledge, feelings and understading of things at that time .

So lately I was in need of some good web based translation software. I knew transifex is open source and therefore I went poking around their site - but not much open source info is up on their site.
I tried the -git version without success and therefore went with the stable 1.2.1 version[1].
First set up the enviroment and code: user # virtualenv tx user # cd tx/ user # source bin/activate user # wget https://github.com/downloads/transifex/transifex/transifex-1.2.1.tar.gz user # tar xzvf transifex-1.2.1.tar.gz user # mv indifex-* transifex/ Second install all the needed dependencies (with the help of modified/completed requirements.txt[2]): user # wget http://txt.si/files/transifex-1.2.1/requirements.txt user # pip install -r requirements.txt Third patch, set up and configure Transifex server:
Because of deprecated setting in transifex/settings/40-apps.conf you need to swap SCRATCH_DIR value with os.path.join(PROJECT_PATH, ‘scratchdir’) user # cd transifex/ user # ./manage.py txcreatedirs user # ./manage.py syncdb user # ./manage.py migrate user # ./manage.py txlanguages user # ./manage.py txcreatenoticetypes user # ./manage.py collectstatic There it is. Now you can use the built in django’s runserver to access your site or set it up the same way you do with any other django app.
Note: uploading with transifex-client is not working because of some permission problems (it _should_ be fixed, but it isn’t) that I’m yet to track down.

[1] - https://github.com/transifex/transifex/downloads
[2] - /files/transifex-1.2.1/requirements.txt