Version 14 (modified by Fran Boon, 8 years ago) ( diff )



Pootle is used to allow translators to collaborate on both doing the initial translation & refining it once 'completed'.


Assuming a base Debian stable (6.x):

apt-get install -y bzip2 less unzip
apt-get install -y libapache2-mod-wsgi
apt-get install -y mysql-server python-mysqldb phpmyadmin mytop
apt-get install -y python-setuptools
apt-get install -y iso-codes

apt-get install -y gcc python-dev
tar jxvf python-Levenshtein-0.10.1.tar.bz2
cd python-Levenshtein-0.10.1
python install
cd ..

tar zxvf python-memcached-1.51.tar.gz
cd python-memcached-1.51
python install
cd ..

tar jxvf translate-toolkit-1.10.0.tar.bz2
cd translate-toolkit-1.10.0
python install
cd ..

wget --no-check-certificate -O Django-1.4.5.tar.gz
tar zxvf Django-1.4.5.tar.gz
cd Django-1.4.5
python install
cd ..

# @ToDo:

wget --no-check-certificate
tar zxvf pip-1.3.1.tar.gz
cd pip-1.3.1
python install
cd ..

apt-get install -y libxslt1-dev
pip install virtualenv
#virtualenv /var/www/pootle/env/
#source /var/www/pootle/env/bin/activate

pip install pootle

# Reduce MacClients
sed -i 's|150|20|' /etc/apache2/apache2.conf

adduser --system --disabled-password pootle
addgroup pootle

cd /var/www
ln -s /usr/local/lib/python2.6/dist-packages/pootle
chgrp pootle /var/www/pootle/po

cat << EOF > "/etc/apache2/sites-available/pootle"
WSGIScriptAlias /pootle /var/www/pootle/
WSGIDaemonProcess pootle processes=2 threads=3 stack-size=1048576 maximum-requests=5000 inactivity-timeout=900 display-name=%{GROUP}
WSGIProcessGroup pootle
Alias /pootle/assets /var/www/pootle/assets
<Directory /var/www/pootle/assets>
Order deny,allow
Allow from all
Alias /pootle/export /var/www/pootle/po
<Directory /var/www/pootle/po>
Order deny,allow
Allow from all

a2ensite pootle
/etc/init.d/apache2 restart


See UserGuidelines/Localisation#A.UsingPootle


When adding languages, use this resource to configure them properly:

The script that Fran used to use to update files between Bzr & Pootle is:

If the script fails, check for the presence of a ` in a T("") - this causes the to reset the languages/* to default &/or stop web2py2po from working!


Attachments (6)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.