diff --git a/.github/workflows/locales-sync.yml b/.github/workflows/locales-sync.yml new file mode 100644 index 0000000..f1efd1c --- /dev/null +++ b/.github/workflows/locales-sync.yml @@ -0,0 +1,14 @@ +name: "Synchronize locales" + +on: + schedule: + - cron: "0 0 * * 1-5" + workflow_dispatch: + +jobs: + sync-with-transifex: + name: "Sync with transifex" + uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1" + secrets: + github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}" + transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" diff --git a/.github/workflows/locales-update-source.yml b/.github/workflows/locales-update-source.yml new file mode 100644 index 0000000..928c931 --- /dev/null +++ b/.github/workflows/locales-update-source.yml @@ -0,0 +1,13 @@ +name: "Update locales sources" + +on: + push: + branches: + - "main" + +jobs: + push-on-transifex: + name: "Push locales sources" + uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1" + secrets: + transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..f1c5904 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[o:teclib:p:glpi-plugin-advancedforms:r:advancedforms-pot] +file_filter = locales/.po +source_file = locales/advancedforms.pot +source_lang = en +type = PO diff --git a/CHANGELOG.md b/CHANGELOG.md index 87cee33..ef3d8f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] +### Added + +- Add translations management through Transifex + ### Fixed - Fix GLPI compatibility constraint in plugin XML diff --git a/README.md b/README.md index 5eec7cf..0e26613 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,7 @@ This question won't be displayed to the users. * Follow [development guidelines](http://glpi-developer-documentation.readthedocs.io/en/latest/plugins/index.html) * Work on a new branch on your own fork * Open a PR that will be reviewed by a developer + +## Additional resources + +* [Translations on Transifex](https://explore.transifex.com/teclib/glpi-plugin-advancedforms/)