Skip to content

Commit

Permalink
Add workflows to sync locales (#26)
Browse files Browse the repository at this point in the history
* Add workflows to sync locales

* tx
  • Loading branch information
Rom1-B authored Sep 12, 2024
1 parent 47ad37e commit e4ceec8
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/.tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com

[o:teclib:p:glpi-project-plugin-advancedplanning:r:advancedplanning-pot]
file_filter = locales/<lang>.po
source_file = locales/advancedplanning.pot
source_lang = en
type = PO
14 changes: 14 additions & 0 deletions .github/workflows/locales-sync.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
13 changes: 13 additions & 0 deletions .github/workflows/locales-update-source.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
18 changes: 18 additions & 0 deletions locales/advancedplanning.pot
Original file line number Diff line number Diff line change
@@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
Binary file added locales/en_GB.mo
Binary file not shown.
18 changes: 18 additions & 0 deletions locales/en_GB.po
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit e4ceec8

Please sign in to comment.