Your Pootle installation will need to be flexible enough to handle the translation load. If you want to host a lot of software e.g. multiple translations of large projects such as OpenOffice.org, Mozilla Firefox, GNOME or KDE we would recommend a minimum of:
But of course if you are simply hosting one language or a number of languages for a small localisation project then you can easily use:
This section helps you choose the versions of software that you need, the dependencies and optional software. These might be slightly different if you are installing e.g. Windows so please familiarise yourself with your target platform and installation options before downloading all the software.
First choose the version most appropriate to your needs:
Status | Version | Download |
---|---|---|
Stable | 1.0 | http://sourceforge.net/project/showfiles.php?group_id=91920&package_id=144807&release_id=511171 |
Last stable | 0.11 | http://sourceforge.net/project/showfiles.php?group_id=91920&package_id=144807&release_id=492106 |
Development | trunk | svn co https://translate.svn.sourceforge.net/svnroot/translate translate |
If you are a first-time user, you should be using 1.0 or later. For those who need problems fixed, or who want to work on the bleeding edge: you need to use Subversion.
Package | Version | Website | Reason |
---|---|---|---|
Translate Toolkit | 1.0 | http://sourceforge.net/project/showfiles.php?group_id=91920&package_id=97082&release_id=511166 | Various functions |
Kid | 0.9.3 | http://kid-templating.org/ | Templating |
jToolkit | 0.7.8 | http://jtoolkit.sourceforge.net/snapshots/ | Server engine |
ElementTree | 1.2.6 | http://effbot.org/downloads/#elementtree | Used by Kid for XML processing |
Python | 2.3.x | http://www.python.org/ | Preferably 2.4 but 2.3 should work |
zip | Compressing downloads of PO file bundles |
*Note: Kid 0.9.x depends on setup-tools, the kid installer has been configured to download and install setup-tools if the system doesn’t have it. Unfortunately the ez_setup.py script kid uses is out of date and does not download the current available versions of setup-tools.
You can download a kid installer for Windows (0.9.3) or follow this Installation Fix:
Package | Version | Website | Reason |
---|---|---|---|
PyLucene | Speeds up searching | ||
Apache | Proxying Pootle traffic | ||
CVS | Version control integration | ||
Subversion | Version control integration |
If you want to try the bleading edge, or just want to have the latest fixes then you need to use Subversion to get your sources.
svn co https://svn.sourceforge.net/svnroot/translate/trunk/src src
This wil retrieve Pootle trunk. To retreive a stable branch such as wordforge-0-10-branch, plus any pending fixes try:
svn co https://svn.sourceforge.net/svnroot/translate/wordforge-0-10-branch/src src
You need to choose an installation method based on the system that you are running.
Download the source RPMs from the site above and rebuild using a command such as the following:
rpmbuild --rebuild Pootle-0.10-1.src.rpm
Or from the base directory of the untarred source file or subversion checkout run:
./pootlesetup.py bdist_rpm
Note you will probably also want to do this for jToolkit:
./jToolkitSetup.py bdist_rpm
This will create an RPM in the dist directory that you can install as follows:
su rpm -Uvh Pootle-0.10.rpm rpm -Uvh jToolkit-0.7.8.rpm
Debian roles packages for Pootle. So your best bet is to apt-get the latest Pootle and let Debian handle all your dependencies. If you want to stay on the cutting edge you will need to install from source and may want to use alien to allow you to install RPMs on your system.
EBuilds of Pootle and its dependencies are available. For more information, see the following bugzilla entry: http://bugs.gentoo.org/show_bug.cgi?id=153512
This ebuild hasn’t yet been included in the default portage since it needs a Gentoo Developer to adopt the package.
To install directly with no intermediate package management do the following. From the base directory of the untarred source file or subversion checkout run:
./pootlesetup.py install
You can do the same for jToolkit
./jToolkitSetup.py install
It’s possible to install Pootle as non-root in, for example, your home directory or any other custom directory such as /usr/local/. Still, you need to have shell access to the Webserver and also to get in contact with the web admin to create the virtual host (VH) settings, as described below.
First create bdist installation packages. That is, run ./jToolkitSetup.py bdist and ./pootlesetup.py bdist respectively, for jToolkit and Pootle. Binary installation packages (in .tar.gz form) will be created in the dist subfolder of each program.
Unpack the binary installation packages in the destination directory. In our case is was:
$ cd /home/pootle/ $ tar xvfz /home/pootle/POOTLE/jToolkit-0.6.2/dist/jToolkit-0.7.8.tar.gz $ tar xvfz /home/pootle/POOTLE/Pootle-0.6.0.20050518/dist/Pootle-0.10.tar.gz
The PootleServer script, that invokes Pootle, is placed as usr/bin/PootleServer while the rest of the files are placed in usr/lib/python2.3/site-packages/.
Now, add usr/bin/ to your PATH, and tell python where to find the jToolkit/Pootle python code. If your shell is bash or sh, run
export PATH=$PATH:/home/pootle/usr/bin/ export PYTHONPATH=/home/pootle/usr/lib/python2.4/site-packages/
or if you run tcsh or csh, run
set -l path = ( $path /home/pootle/usr/bin/ ) setenv PYTHONPATH /home/pootle/usr/lib/python2.4/site-packages/
You can now run PootleServer to start Pootle.
Installating PyLucene is optional, Pootle will still operate as expected without this software installed. PyLucene makes use of the Lucene text indexing software. Pootle uses PyLucene to provide an effective and very fast way of indexing PO files. Searches become lightning fast.
Follow the instructions on the PyLucene home page which lists the software that should be downloaded and installed.
Download and install the following, or newer, files:
Install Kid
install_requires=['elementtree']
to:
install_requires=[]
cd c:\kid-0.9.3
python setup.py install
Copy all the files inside the following directory:
C:\Python24\Lib\python2.3\site-packages\Pootle
to this directory:
C:\Python24\Lib\site-packages\Pootle
Open the command line (Click Start → Click Run → Type “cmd” (without quotes) → Click Ok)
Type the following command to start the server:
python c:\python24\scripts\pootleserver
(Please note that this is assuming you installed python as C:\Python24; if you used a different location, please change the paths above accordingly.)
Once you have installed Pootle succesfully, you can start the server by running
PootleServer
Run
PootleServer --help
for a list of command line parameters.
To verify which version of Pootle and dependencies you have installed run:
[l10n@server]# PootleServer --version PootleServer 1.0 jToolkit 0.7.8 Translate Toolkit 1.0 Kid 0.9.5 ElementTree 1.2.6 Python 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] (on linux2/posix)
If you have difficulty installing please email the translate-pootle list with details of exactly what you did and what didn’t work. If possible, please include the output of PootleServer --version
To start using PootleServer you need to have some initial configuration files, namely pootle.prefs and users.prefs. Samples, with extensive comments, are available in the Pootle package.
The initial prefs files may be located in different places depending on how you installed the software. Looks in these places if you cannot find it:
/etc/pootle/ /var/pootle/ /usr/lib/python2.3/site-packages/
You can use a different pootle.prefs file by using the --prefsfile option.
PootleServer --prefsfile=/path/to/my/pootle.prefs
When first running Pootle you need at least one user with siteadmin rights. users.prefs contains an example user startup with password startup who has siteadmin rights. You can enable this user by uncommenting the startup user in the file. It is very important that you remove this user before the site is made live.
Some of the things that you can change in the preference file, the actual file is very well documented.