Pootle : simple translation tool

From Deimos.fr / Bloc Notes Informatique
Jump to: navigation, search
Pootle

Software version 2.5.0
Operating System Debian 6
Website Pootle Website
Last Update 06/09/2013
Others

1 Introduction

Pootle[1] is an online tool that makes the process of translating so much simpler. It allows crowd-sourced translations, easy volunteer contribution and gives statistics about the ongoing work.

Pootle is built using the powerful API of the Translate Toolkit and the Django framework :

Pootle screenshot.png

2 Installation

You can install Poole directly from the packages, but you won't have the latest version. To get it we'll need to install required packages and download all dependencies via PIP :

Command aptitude
aptitude install python-pip gcc python2.6-dev libxslt1-dev python-virtualenv

Then install and create the python virtual environment :

Command
virtualenv /var/www/pootle/env/
source /var/www/pootle/env/bin/activate

And finally install Pootle :

Command pip
pip install pootle

3 Configuration

3.1 Pootle

Then you can initiate the configuration :

Command pootle
pootle init /var/www/pootle/pootle.conf

Edit the configuration to change allowed host to access to the web frontend :

Configuration File /var/www/pootle/pootle.conf
# A list of strings representing the host/domain names that this Pootle server
# can serve. This is a Django's security measure. More details at
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['127.0.0.1']
# Allow all
# ALLOWED_HOSTS = ['*']

Warning WARNING
Edit the configuration and setup the MySQL database instead of the SQLite by default

And launch it :

Command pootle
pootle --config=/var/www/pootle/pootle.conf start

You'll now get an access to the web interface : http://127.0.0.1:8000
Credentials are : admin/admin

Notes Notes
The first launch will take a few minutes as it populate the database

3.2 Apache

To avoid typing port number on the URL, you can use Apache mod proxy.


Command aptitude
aptitude install apache2 apache2-utils apache2.2-common libapache2-mod-proxy-html

Then activate modules :

Command a2enmod
a2enmod proxy_connect
a2enmod proxy_http
a2enmod proxy_html

And restart Apache.

Then configure your apache :

Configuration File /etc/apache2/sites-enabled/pootle
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName pootle.deimos.fr
 
    # Pootle
    <Location />
    	order deny,allow
    	allow from all
    	ProxyPass http://server:8000/
    	ProxyPassReverse http://server:8000/
    </Location>
</VirtualHost>

You'll need to enable this new site and restart Apache.

4 References

  1. ^ http://pootle.translatehouse.org/