Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #12

Open
Wolvverine opened this issue Jul 20, 2022 · 2 comments
Open

Documentation #12

Wolvverine opened this issue Jul 20, 2022 · 2 comments

Comments

@Wolvverine
Copy link

User/developer plugin documentation is missing.

  • Create file names (locales,stat,report,config)
  • functions, classes (description, parameters)
    ...
@Wolvverine
Copy link
Author

Wolvverine commented Jul 22, 2022

How to make language file?

@yllen @orthagh ?

@eduardomozart
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants