Code to replicate the langchecker feature on webdashboard. See the Wiki for further details.
System requirements:
- PHP 5.5 or later.
- HTTP server (Apache, nginx, internal PHP server).
Setup:
- Rename or copy the file
app/config/settings.inc.php.iniasapp/config/settings.inc.php, then:- Specify in
$local_storagethe local path to the folder that will be used to store all repositories. - Specify if the app will be served from the root or from a subfolder by customizing
$webroot_folder. $locamotion_reponeeds to be set only if you plan to use a local clone of Locamotion's repository to import translations.
- Specify in
- Install Composer (PHP dependency manager), either locally or globally, then install the dependencies by running
php composer.phar installfrom the project's root folder. - Make sure that the
/cachefolder is writable by the user running PHP.
You need to run the update script at least once to clone all the repositories.
./app/scripts/update_sources
On a production server you want to schedule this script as a cronjob.
This software is released under the terms of the Mozilla Public License v2.0.