Transifex Common-Pool

Transifex Common-Pool is a project to provide a web service to localize
Mozilla JetPacks. It is a set of Transifex addons which add the necessary
functionality (common strings, overrides, filters etc) needed for this project.

The code consists of a number of addons, including:

foxcore:

Base models and API calls

foxlotte:

Build-in translation web-based editor with commonpool functionality

Installation Instructions

Setup Transifex normally somewhere. This can be either in your
Python path or elsewhere:

7. If you installed the sample_mozilla_data fixture then you need to update
some statistics because post save signals don't work that well with fixture
loading. The steps you need to do are the following:

./manage.py shell

In [1]: from transifex.resources.models import Translation
In [2]: for t in Translation.objects.all(): t.save()

./manage.py txstatsupdate

If you didn't use the aforementioned json fixture then you can safely skip this
step.

That's it!

Overriding templates

The commonpool project comes with a few templates which override the Transifex
default ones. For example, a handy 'base.html' template which removes the
search bar. You can find these files and add additional custom ones in the
'templates' directory.

CommonPool API

You should be ready to go. 'foxcore' includes the push/pull strings, exception
API calls and the enhancements in the data model. Here is how you can test
the API:

Create a project using the web interface (e.g. named 'Mozilla Jetpacks'
with a slug 'mozjp'). This slug can be configured in the foxcore settings.

If set to 1, the API will return partial translations for languages that are
not 100% completed. The default behaviour is to return 100% translation by
using the fallback mechanism.

The fallback mechanism has two modes of operation. It can do a complete
fallback (eg if pt_BR is not 100% return the complete translation in pt) or
do partial fallbacks (eg if a string is not translated in pt_BR fetch the pt
translation. The returned stringset is a mix of various languages this way).
This behaviour can be changed by editing settings/00-base.conf of foxcore.

Unlimited private and public hosted repositories. Free for small teams!