[PR #2585] [MERGED] Automatic update of translations #16487

Closed
opened 2025-11-02 12:11:47 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2585
Author: @jonasfranz
Created: 9/23/2017
Status: Merged
Merged: 9/23/2017
Merged by: @lafriks

Base: masterHead: translations


📝 Commits (10+)

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 .drone.yml (+11 -0)

📄 Description

This PR adds a build step for master-build. The step uploads locale_en-US.ini to crowdin via the provided API.

@tboerger This PR needs a new drone secret crowdin_key containing the API key of the gitea project. (https://crowdin.com/project/gitea/settings#api)

@tboerger Is the english source file called "locale_en-US.ini" at crowdin?

EDIT

As said on discord, maybe it makes more sense to build a drone plugin for upload and download of translations, this way anybody can prepare a malicious pull request to read the access token because I can only limit the injection to the used image and the events.

I've created a plugin for this PR and updated the .drone.yml to use this plugin. The plugin requires the crowdin key as secret CROWDIN_KEY (CC @tboerger).

Link to plugin repo: https://github.com/JonasFranzDEV/drone-crowdin
Published on Docker hub: https://hub.docker.com/r/jonasfranz/crowdin/

Working example of the plugin:

Drone: https://drone.jonasfranz.software/JonasFranzDEV/Crowdin-Demo/5
Git: https://git.jonasfranz.software/JonasFranzDEV/Crowdin-Demo
Crowdin: https://crowdin.com/project/gitea-demo/activity_stream


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2585 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 9/23/2017 **Status:** ✅ Merged **Merged:** 9/23/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `translations` --- ### 📝 Commits (10+) - [`09f817c`](https://github.com/go-gitea/gitea/commit/09f817c2c9b6ec00b5d3d9f17a94c222a6e4517a) Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) - [`b3fd467`](https://github.com/go-gitea/gitea/commit/b3fd46726fb1421263a5c5c38e1aec117a7efaac) Merge branch 'master' of https://github.com/go-gitea/gitea - [`af85943`](https://github.com/go-gitea/gitea/commit/af8594364c1e422370fa2ea9c4b39385a09b43ff) Merge branch 'master' of https://github.com/go-gitea/gitea - [`6c9abba`](https://github.com/go-gitea/gitea/commit/6c9abbad003334b578103de6f6d6bcb13499294b) Merge branch 'master' of https://github.com/go-gitea/gitea - [`752b91d`](https://github.com/go-gitea/gitea/commit/752b91d3eb0184f85e2b37ae6cd80311cf9eeb53) Merge branch 'master' of https://github.com/go-gitea/gitea - [`503e885`](https://github.com/go-gitea/gitea/commit/503e88518ae4e4d29a142c2ca8e62e15dab97d32) Adding "upload-translations" task - [`7c8af57`](https://github.com/go-gitea/gitea/commit/7c8af57a71818c1f2aafc0c3c0c230ed8cfc1447) Fixing crowdin project name - [`3ba7a47`](https://github.com/go-gitea/gitea/commit/3ba7a475fb3c3a784074e532608b7dd4a9463453) Using crowdin plugin - [`ff59d18`](https://github.com/go-gitea/gitea/commit/ff59d18ac03e9e1a57427dc006650a8473846409) Changing secret name - [`728171a`](https://github.com/go-gitea/gitea/commit/728171a6da0bb7d07cd78eda4e54e9fb8cc5be27) Adding pull: true ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.drone.yml` (+11 -0) </details> ### 📄 Description This PR adds a build step for master-build. The step uploads `locale_en-US.ini` to crowdin via the provided API. @tboerger This PR needs a new drone secret `crowdin_key` containing the API key of the gitea project. (https://crowdin.com/project/gitea/settings#api) @tboerger Is the english source file called "locale_en-US.ini" at crowdin? **EDIT** > As said on discord, maybe it makes more sense to build a drone plugin for upload and download of translations, this way anybody can prepare a malicious pull request to read the access token because I can only limit the injection to the used image and the events. I've created a plugin for this PR and updated the .drone.yml to use this plugin. The plugin requires the crowdin key as secret `CROWDIN_KEY` (CC @tboerger). Link to plugin repo: https://github.com/JonasFranzDEV/drone-crowdin Published on Docker hub: https://hub.docker.com/r/jonasfranz/crowdin/ Working example of the plugin: Drone: https://drone.jonasfranz.software/JonasFranzDEV/Crowdin-Demo/5 Git: https://git.jonasfranz.software/JonasFranzDEV/Crowdin-Demo Crowdin: https://crowdin.com/project/gitea-demo/activity_stream --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:11:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16487