Pootle is an open-source web-based translation platform that allows many users to collaborate on translations. This tutorial will guide you through the installation process of Pootle on the latest Ubuntu Server.
Before you begin, ensure your Ubuntu Server is up-to-date with the latest system updates by running the following command:
$ sudo apt update && sudo apt upgrade
Follow these steps to install Pootle on Ubuntu Server:
Install the MySQL server by running the command:
$ sudo apt install mysql-server mysql-client
After installing MySQL, you will need to create a database for Pootle:
$ sudo mysql
mysql> CREATE DATABASE pootle;
mysql> GRANT ALL PRIVILEGES ON pootle.* TO 'pootle'@'localhost' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
mysql> exit
Install other dependencies:
$ sudo apt install python3-dev libxml2-dev libxslt-dev libffi-dev gettext subversion git-core memcached libmemcached-tools python3-pip python-virtualenv python3-setuptools
Create a new virtual environment:
$ virtualenv -p python3 venv
$ source venv/bin/activate
Clone the Pootle repository:
$ git clone https://github.com/translate/pootle.git
$ cd pootle
Install Pootle:
$ pip install -r requirements/production.txt
Copy the local_settings.py.in
file to local_settings.py
and customize it according to your needs:
$ cp local_settings.py.in local_settings.py
$ nano local_settings.py
Note that you will need to set the following variables in the local_settings.py
file:
DATABASES
SECRET_KEY
TIME_ZONE
STATIC_ROOT
MEDIA_ROOT
For more information on configuring Pootle, refer to the official documentation.
Create a new superuser:
$ python manage.py createsuperuser
Run the following command to start Pootle:
$ python manage.py runserver
You can then access Pootle by visiting http://your-server-ip:8000/
from your web browser.
In this tutorial, you learned how to install and configure Pootle on Ubuntu Server. You can now use this translation platform to collaborate with others and provide translations for your apps and websites.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!