From e4ceec8b60c884e1a0669106b3515ef84e0c720e Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:28:09 +0200 Subject: [PATCH] Add workflows to sync locales (#26) * Add workflows to sync locales * tx --- .github/.tx/config | 8 ++++++++ .github/workflows/locales-sync.yml | 14 ++++++++++++++ .github/workflows/locales-update-source.yml | 13 +++++++++++++ locales/advancedplanning.pot | 18 ++++++++++++++++++ locales/en_GB.mo | Bin 0 -> 367 bytes locales/en_GB.po | 18 ++++++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 .github/.tx/config create mode 100644 .github/workflows/locales-sync.yml create mode 100644 .github/workflows/locales-update-source.yml create mode 100644 locales/advancedplanning.pot create mode 100644 locales/en_GB.mo create mode 100644 locales/en_GB.po diff --git a/.github/.tx/config b/.github/.tx/config new file mode 100644 index 0000000..b0971d7 --- /dev/null +++ b/.github/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[o:teclib:p:glpi-project-plugin-advancedplanning:r:advancedplanning-pot] +file_filter = locales/.po +source_file = locales/advancedplanning.pot +source_lang = en +type = PO 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/locales/advancedplanning.pot b/locales/advancedplanning.pot new file mode 100644 index 0000000..60765dc --- /dev/null +++ b/locales/advancedplanning.pot @@ -0,0 +1,18 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-09-12 15:19+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" diff --git a/locales/en_GB.mo b/locales/en_GB.mo new file mode 100644 index 0000000000000000000000000000000000000000..a10aeba8ccd93004e6c74dcf8b2b7717b4c0434f GIT binary patch literal 367 zcmYL@!AiqG5QZyy+M{O=BY04BH3=5lEjgq$EkSETTY8l>8RJU28+JEhAH>)5S)3@e zKYZ-W>_5!^b9(aKBOMWE#07Co+z_1xM4vu~^md-Ta%(=Y@H{K|2CY*@3&@knV=_x& zlP*`;;+ZY6G1l|Bt5nIyZRPmd2w?ewFY!}#JN!X<6c7c`Jr9OFj3DfbaCjX=LBO7* z^L%ZkcD3}z3P@USw$iIY*7Xi5)M#nFB%`icSs`De+zQY}<9;Rp^~-F`=Gi>?DV44S3|^IIdEHuB^Qp00 YN5`AL*2U2X{>%7M!+8wh)rj?e0oMd*1ONa4 literal 0 HcmV?d00001 diff --git a/locales/en_GB.po b/locales/en_GB.po new file mode 100644 index 0000000..169feb3 --- /dev/null +++ b/locales/en_GB.po @@ -0,0 +1,18 @@ +# English translations for PACKAGE package. +# Copyright (C) 2024 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Automatically generated, 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-09-12 15:19+0200\n" +"PO-Revision-Date: 2024-09-12 15:19+0200\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: en_GB\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n"