Helps to maintain the translations files of PHP Server Monitor. PHP Server Monitor is translated into more than 20 languages. This is great, but it makes it way harder to keep all of the translations up to date. This script provides a clear view of the values that not yet have a translation in an effort to keep all the translations up to date!
The default language of PHP Server Monitor is English. All of the translations are compared against the default language. If the border of the input field is red it means that the value is not yet translated. If the border is orange, then the translation is the same as the default. In some cases this can be ignored, in other cases, the value needs a translation.
- Edit config.php.
- Open trans.php in your browser, start editing and save at the end.
- Share your changes here.
It isn't really more than that!
Friendly reminders:
- Change the permission of your language files back to 0644 after you're done.
- User input is not filtered! It's not recommended to keep this trans.php accessible for everyone.
-
As this project is specifically made to maintain the translation files of PHP Server Monitor, you need PHP Server Monitor. https://github.com/phpservermon/phpservermon
-
PHP 4, 5 or 7 (preferred)
- Clone the repository to a server running PHP.
- Rename config.php.sample to config.php.
- In config.php:
- Change $path to your PHP Server Monitor language folder.
- Change $translationLang to the file you want to edit.
- Run
composer install --dev
- Run
./vendor/bin/phpcs trans.php
- Run
./vendor/bin/phpcs trans.php --standard=PSR12
- Run
./vendor/bin/phpcs -p trans.php --standard=PHPCompatibility --runtime-set testVersion 4.0-
- For any changes to the composer.json file run
composer validate
- Tim Zandbergen - Initial work - TimZ99
See also the list of contributors who participated in this project.
This project is licensed under the GNU GPL v3 License - see the LICENSE.md file for details.