The Web Translation System (WTS) is software that powers the localization and translation site babelzilla.org. WTS allows Mozilla extension authors to upload their localized extensions for translation into other languages, and allows volunteer translators to view, edit, and update translations.
- The following PHP extensions must be installed and enabled in
- openssl (used by Composer, below)
- PHP Composer - see download instructions here
If you haven't already, install and configure MySQL on your system. You should create a user account that will have read and write access to your database.
Create a MySQL database for WTS to use. You can do this on the command line - e.g.:
mysql -u admin -p -e "create database wts_db;"
Clone the WTS code repository:
git clone https://github.com/BabelZilla/WTS.git wts/
Open the wts directory in a terminal:
Get a cup of coffee while composer installs the dependencies.
Your folder structure should now be similar to the one below:
|-htdocs |-wts |---app |-----classes |-----cldr_cache |-----commands |-----config |-----controllers |-----database |-----lang |-----models |-----other |-----start |-----storage |-----tests |-----views |---bootstrap |---public |-----packages |-----themes |-------babelzilla |-------installer |---vendor
Change permissions on the
app/storagefolders so your webserver has write access
- Copy the contents of the
publicfolder to your webroot - i.e. copy all of the files inside
public, but not the
publicfolder itself. (e.g.
htdocs. You can change this in
bootstrap/paths.php). The files should sit in the base webroot directory - e.g.
At the same level as your base webroot folder (e.g.
htdocs) create the following folders:
|-upload |---temp |-uploads |---projects |---repos
Your webserver will need write access to these folders also.
Your folder structure should now look like this:
|-htdocs |-wts |---app |-----classes |-----cldr_cache |-----commands |-----config |-----controllers |-----database |-----lang |-----models |-----other |-----start |-----storage |-----tests |-----views |---bootstrap |---public |-----packages |-----themes |-------babelzilla |-------installer |---vendor |-upload |---temp |-uploads |---projects |---repos
You can change the paths in
If you prefer another folder structure: change the paths in
Run the install script by visiting the following URL: http://www.yourdomain.com/install . The WTS system will redirect you to the start of the installation pages.
- You should see a page that says "Welcome to the WTS Installer!".
- Click the "Install from scratch" or "Upgrade" buttons and follow the instructions.
Troubleshooting: If you get a blank page or a 404 error after visiting the URL, something is wrong. Check to see if your web server is set to allow redirects; if not this will interfere with WTS installation.