Skip to content

Commit

Permalink
Feat(build): implement translate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Aug 27, 2024
1 parent 2d6e8ce commit 5aceda6
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 47 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Translate"

on:
push:
branches:
- "add_transifex_ci"
schedule:
- cron: "0 0 * * *"

jobs:
refresh-translations:
permissions:
contents: "write"
name: "Push / Pull"
uses: "stonebuzz/plugin-translation-workflows/.github/workflows/translation.yml@v1"
secrets:
tx_token: "${{ secrets.TRANSLATE_TOKEN }}"
master_branch: "add_transifex_ci"
3 changes: 1 addition & 2 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ host = https://www.transifex.com
[o:teclib:p:glpi-project-plugin-escalade:r:escalade-pot]
file_filter = locales/<lang>.po
source_file = locales/escalade.pot
source_lang = en
type = PO
source_lang = en_GB
46 changes: 23 additions & 23 deletions locales/en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-03 11:04+0200\n"
"PO-Revision-Date: 2024-07-03 11:04+0200\n"
"POT-Creation-Date: 2024-08-27 14:02+0200\n"
"PO-Revision-Date: 2024-08-27 14:02+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en_GB\n"
Expand Down Expand Up @@ -69,39 +69,39 @@ msgstr "Display delete button"
msgid "Don't change"
msgstr "Don't change"

#: inc/config.class.php:347 hook.php:595 hook.php:614
#: inc/config.class.php:347 hook.php:581 hook.php:600
msgid "Enable filtering on the groups assignment"
msgstr "Enable filtering on the groups assignment"

#: inc/ticket.class.php:882
#: inc/ticket.class.php:927
msgid "Error : adding actors (group)"
msgstr "Error : adding actors (group)"

#: inc/ticket.class.php:872
#: inc/ticket.class.php:917
msgid "Error : adding actors (user)"
msgstr "Error : adding actors (user)"

#: inc/ticket.class.php:893
#: inc/ticket.class.php:938
msgid "Error : adding documents"
msgstr "Error : adding documents"

#: inc/ticket.class.php:860
#: inc/ticket.class.php:905
msgid "Error : adding followups"
msgstr "Error : adding followups"

#: inc/ticket.class.php:843
#: inc/ticket.class.php:888
msgid "Error : adding link between the two tickets"
msgstr "Error : adding link between the two tickets"

#: inc/ticket.class.php:830
#: inc/ticket.class.php:875
msgid "Error : adding new ticket"
msgstr "Error : adding new ticket"

#: inc/ticket.class.php:814
#: inc/ticket.class.php:859
msgid "Error : get old ticket"
msgstr "Error : get old ticket"

#: inc/ticket.class.php:1012 inc/ticket.class.php:1013
#: inc/ticket.class.php:1057 inc/ticket.class.php:1058
msgid "Escalate"
msgstr "Escalate"

Expand All @@ -118,12 +118,12 @@ msgstr "Escalation"
msgid "Escalation history in tasks"
msgstr "Escalation history in tasks"

#: inc/ticket.class.php:387 front/ticket.form.php:69
#: inc/ticket.class.php:422 front/ticket.form.php:85
#, php-format
msgid "Escalation to the group %s."
msgstr "Escalation to the group %s."

#: hook.php:550
#: hook.php:536
msgid "Group concerned by the escalation"
msgstr "Group concerned by the escalation"

Expand All @@ -143,15 +143,15 @@ msgstr ""
"Nota: This feature (creation part) is duplicate with the <a "
"href='##link##'>Behavior</a>plugin. This last has priority."

#: hook.php:568
#: hook.php:554
msgid "Number of escalations"
msgstr "Number of escalations"

#: hook.php:582
#: hook.php:568
msgid "Number of escalations between two groups"
msgstr "Number of escalations between two groups"

#: inc/history.class.php:131
#: inc/history.class.php:130
msgid "Reassign the ticket to group"
msgstr "Reassign the ticket to group"

Expand All @@ -175,39 +175,39 @@ msgstr "Requester user of the task/reminder"
msgid "Requester user of the ticket"
msgstr "Requester user of the ticket"

#: inc/ticket.class.php:207
#: inc/ticket.class.php:254
msgid "Solution provided, back to the group"
msgstr "Solution provided, back to the group"

#: inc/ticket.class.php:271
#: inc/ticket.class.php:318
msgid "Solution rejected, return to the group"
msgstr "Solution rejected, return to the group"

#: inc/notification.class.php:255
msgid "Solve date modification"
msgstr "Solve date modification"

#: inc/ticket.class.php:854 inc/ticket.class.php:899 inc/ticket.class.php:904
#: inc/ticket.class.php:899 inc/ticket.class.php:944 inc/ticket.class.php:949
msgid "This ticket has been cloned from the ticket num"
msgstr "This ticket has been cloned from the ticket num"

#: inc/config.class.php:115
msgid "Ticket status after an escalation"
msgstr "Ticket status after an escalation"

#: inc/history.class.php:222
#: inc/history.class.php:244
msgid "Tickets to close (escalated)"
msgstr "Tickets to close (escalated)"

#: inc/history.class.php:208
#: inc/history.class.php:230
msgid "Tickets to follow (escalated)"
msgstr "Tickets to follow (escalated)"

#: inc/config.class.php:200
msgid "Use the technician's group"
msgstr "Use the technician's group"

#: inc/history.class.php:155
#: inc/history.class.php:177
msgid "View full history"
msgstr "View full history"

Expand All @@ -223,7 +223,7 @@ msgstr "at creation time"
msgid "at modification time"
msgstr "at modification time"

#: front/popup_histories.php:33
#: inc/history.class.php:174
msgid "full assignation history"
msgstr "full assignation history"

Expand Down
44 changes: 22 additions & 22 deletions locales/escalade.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-03 11:04+0200\n"
"POT-Creation-Date: 2024-08-27 14:02+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"
Expand Down Expand Up @@ -69,39 +69,39 @@ msgstr ""
msgid "Don't change"
msgstr ""

#: inc/config.class.php:347 hook.php:595 hook.php:614
#: inc/config.class.php:347 hook.php:581 hook.php:600
msgid "Enable filtering on the groups assignment"
msgstr ""

#: inc/ticket.class.php:882
#: inc/ticket.class.php:927
msgid "Error : adding actors (group)"
msgstr ""

#: inc/ticket.class.php:872
#: inc/ticket.class.php:917
msgid "Error : adding actors (user)"
msgstr ""

#: inc/ticket.class.php:893
#: inc/ticket.class.php:938
msgid "Error : adding documents"
msgstr ""

#: inc/ticket.class.php:860
#: inc/ticket.class.php:905
msgid "Error : adding followups"
msgstr ""

#: inc/ticket.class.php:843
#: inc/ticket.class.php:888
msgid "Error : adding link between the two tickets"
msgstr ""

#: inc/ticket.class.php:830
#: inc/ticket.class.php:875
msgid "Error : adding new ticket"
msgstr ""

#: inc/ticket.class.php:814
#: inc/ticket.class.php:859
msgid "Error : get old ticket"
msgstr ""

#: inc/ticket.class.php:1012 inc/ticket.class.php:1013
#: inc/ticket.class.php:1057 inc/ticket.class.php:1058
msgid "Escalate"
msgstr ""

Expand All @@ -118,12 +118,12 @@ msgstr ""
msgid "Escalation history in tasks"
msgstr ""

#: inc/ticket.class.php:387 front/ticket.form.php:69
#: inc/ticket.class.php:422 front/ticket.form.php:85
#, php-format
msgid "Escalation to the group %s."
msgstr ""

#: hook.php:550
#: hook.php:536
msgid "Group concerned by the escalation"
msgstr ""

Expand All @@ -141,15 +141,15 @@ msgid ""
"href='##link##'>Behavior</a>plugin. This last has priority."
msgstr ""

#: hook.php:568
#: hook.php:554
msgid "Number of escalations"
msgstr ""

#: hook.php:582
#: hook.php:568
msgid "Number of escalations between two groups"
msgstr ""

#: inc/history.class.php:131
#: inc/history.class.php:130
msgid "Reassign the ticket to group"
msgstr ""

Expand All @@ -173,39 +173,39 @@ msgstr ""
msgid "Requester user of the ticket"
msgstr ""

#: inc/ticket.class.php:207
#: inc/ticket.class.php:254
msgid "Solution provided, back to the group"
msgstr ""

#: inc/ticket.class.php:271
#: inc/ticket.class.php:318
msgid "Solution rejected, return to the group"
msgstr ""

#: inc/notification.class.php:255
msgid "Solve date modification"
msgstr ""

#: inc/ticket.class.php:854 inc/ticket.class.php:899 inc/ticket.class.php:904
#: inc/ticket.class.php:899 inc/ticket.class.php:944 inc/ticket.class.php:949
msgid "This ticket has been cloned from the ticket num"
msgstr ""

#: inc/config.class.php:115
msgid "Ticket status after an escalation"
msgstr ""

#: inc/history.class.php:222
#: inc/history.class.php:244
msgid "Tickets to close (escalated)"
msgstr ""

#: inc/history.class.php:208
#: inc/history.class.php:230
msgid "Tickets to follow (escalated)"
msgstr ""

#: inc/config.class.php:200
msgid "Use the technician's group"
msgstr ""

#: inc/history.class.php:155
#: inc/history.class.php:177
msgid "View full history"
msgstr ""

Expand All @@ -221,7 +221,7 @@ msgstr ""
msgid "at modification time"
msgstr ""

#: front/popup_histories.php:33
#: inc/history.class.php:174
msgid "full assignation history"
msgstr ""

Expand Down

0 comments on commit 5aceda6

Please sign in to comment.