yllen / reports

Additional reports
GNU Affero General Public License v3.0
5 stars 11 forks source link

Documentation #12

Open Wolvverine opened 2 years ago

Wolvverine commented 2 years ago

User/developer plugin documentation is missing.

Wolvverine commented 2 years ago

How to make language file?

@yllen @orthagh ?

eduardomozart commented 1 year ago

Apparently the project doesn't have a translation available at Transifex, but you can generate a Language file manually and create a PR for this repo.

  1. Go to the locales folder (e.g /var/www/glpi.example.com/web/plugins/reports/locales) and create a copy of the translation files to your locale (e.g pt_BR).
  2. Edit the *.po files manually or through POEdit (or any other editor of your preference).
  3. Generate the respective *.mo files for your locale. The following command will regenerate all translation files (I'm using Linux):
cd /var/www/glpi.example.com/web/plugins/reports/locales
for file in "`pwd`"/*.po; do msgcat $file | msgfmt -o $(basename "$file" .po).mo -; done
  1. Create a PR with your changes to the repo.