From 86fc3417655ed835da1adab9c03182be31f58ee9 Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Tue, 20 Oct 2026 16:27:29 +0200 Subject: [PATCH 1/2] Feat: add Transifex translations sync --- .github/workflows/locales-sync.yml | 14 ++++++++++++++ .github/workflows/locales-update-source.yml | 13 +++++++++++++ .tx/config | 8 ++++++++ CHANGELOG.md | 4 ++++ README.md | 4 ++++ 5 files changed, 43 insertions(+) create mode 100644 .github/workflows/locales-sync.yml create mode 100644 .github/workflows/locales-update-source.yml create mode 100644 .tx/config 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..d7c62bf --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[o:teclib:p:glpi-plugin-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..6eed1d0 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-plugin-advancedforms/) From 394a246fda43e9934c7e0613de8cca3f0cc669dd Mon Sep 17 00:00:00 2001 From: Stanislas Date: Wed, 21 Oct 2026 09:56:02 +0200 Subject: [PATCH 2/2] Update .tx/config --- .tx/config | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tx/config b/.tx/config index d7c62bf..f1c5904 100644 --- a/.tx/config +++ b/.tx/config @@ -1,7 +1,7 @@ [main] host = https://www.transifex.com -[o:teclib:p:glpi-plugin-plugin-advancedforms:r:advancedforms-pot] +[o:teclib:p:glpi-plugin-advancedforms:r:advancedforms-pot] file_filter = locales/.po source_file = locales/advancedforms.pot source_lang = en diff --git a/README.md b/README.md index 6eed1d0..0e26613 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ This question won't be displayed to the users. ## Additional resources -* [Translations on Transifex](https://explore.transifex.com/teclib/glpi-plugin-plugin-advancedforms/) +* [Translations on Transifex](https://explore.transifex.com/teclib/glpi-plugin-advancedforms/)