From 16b111167eb989c4afe47e018266ba005f2c7f3a Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Thu, 12 Sep 2024 13:49:46 +0200 Subject: [PATCH 1/2] Add workflows to sync locales --- .github/workflows/locales-sync.yml | 14 ++++++++++++++ .github/workflows/locales-update-source.yml | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/locales-sync.yml create mode 100644 .github/workflows/locales-update-source.yml 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 }}" From 11530a53993946c14b30c10d13945f874826496a Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Thu, 12 Sep 2024 14:45:53 +0200 Subject: [PATCH 2/2] tx --- .tx/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tx/config b/.tx/config index 4099bf8..bf0ea4b 100644 --- a/.tx/config +++ b/.tx/config @@ -1,8 +1,8 @@ [main] host = https://www.transifex.com -[o:teclib:p:glpi-plugin-treeview:r:treeview-pot] +[o:teclib:p:glpi-project-plugin-treeview:r:treeview-pot] file_filter = locales/.po source_file = locales/treeview.pot -source_lang = en_GB +source_lang = en type = PO