Enable translation while displaying an alternative source language.
commit0354d784422774f503ab8d26c390db84e3db7a84
authorfriedelwolff <friedelwolff@54714841-351b-0410-a198-e36a94b762f5>
Fri, 13 Jun 2008 16:45:52 +0000 (13 16:45 +0000)
committerfriedelwolff <friedelwolff@54714841-351b-0410-a198-e36a94b762f5>
Fri, 13 Jun 2008 16:45:52 +0000 (13 16:45 +0000)
tree4dc10bd2b5bc1fc295bd30394e77a44aa97919a7
parentef61e300697f6e3c8482694717343817c76a76ae
Enable translation while displaying an alternative source language.

A user option is provided to choose which language should be used as the
alternative source language. The feature can be enabled/disabled server wide
with the variable Pootle.enablealtsrc (disabled by default).

This closes bug 209.

Known issues:
Plural units are not supported yet (nothing is displayed)
Unit context (such as msgctxt in PO) is not taken into account
The first match from the alternative source language project is used - not
specifically from the unit or file corresponding to the current unit
This might need lots of memory and possibly processing power in large projects

[Contributed by Julen Ruiz Aizpuru as part of GSoC2008, based on work by
Sayamindu Dasgupta]

git-svn-id: http://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@7535 54714841-351b-0410-a198-e36a94b762f5
pagelayout.py
pootle.prefs
pootle.py
templates/options.html
templates/translatepage.html
translatepage.py
users.prefs
users.py