Skip to content

Helps to maintain the translations files of PHP Server Monitor.

License

Notifications You must be signed in to change notification settings

TimZ99/phpservermon-language-editor

Repository files navigation

PHP Server Monitor Language Editor (PSMLE)

Build Status

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.

Getting Started

  • 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.

Prerequisites

Installing

  • 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.

Development

Running the tests

  • 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

Authors

  • Tim Zandbergen - Initial work - TimZ99

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU GPL v3 License - see the LICENSE.md file for details.

About

Helps to maintain the translations files of PHP Server Monitor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages