[PR #2592] [CLOSED] Downloading translations and ignoring branch at Crowdin #16493

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2592
Author: @jonasfranz
Created: 9/23/2017
Status: Closed

Base: masterHead: patch-1


📝 Commits (10+)

📊 Changes

51 files changed (+1795 additions, -382 deletions)

View changed files

📝 .drone.yml (+32 -10)
📝 conf/app.ini (+2 -0)
📝 integrations/editor_test.go (+4 -9)
📝 integrations/links_test.go (+2 -2)
📝 integrations/pull_create_test.go (+2 -2)
📝 integrations/pull_merge_test.go (+4 -4)
integrations/repo_activity_test.go (+61 -0)
integrations/repo_branch_test.go (+132 -0)
📝 integrations/repo_fork_test.go (+28 -7)
📝 models/error.go (+45 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v46.go (+36 -0)
📝 models/repo.go (+47 -41)
models/repo_activity.go (+267 -0)
📝 models/repo_branch.go (+133 -0)
modules/auth/repo_branch_form.go (+20 -0)
📝 modules/context/repo.go (+21 -1)
📝 modules/setting/setting.go (+3 -0)
📝 modules/templates/helper.go (+58 -0)
📝 modules/validation/binding.go (+9 -3)

...and 31 more files

📄 Description

This PR adds the following build steps:

  • download_translations: Downloads & exports all translations from crowdin and saves them into options/locale/
  • upload_translations: Uploads the updated locale_en-US.ini to Crowdin

The build steps are splitted because the files should only uploaded to crowdin if all test passes.

It also adds the ignore_branch option to fix the build process because gitea does not use branches at crowdin.

This is already tested here:

Related to #2585
Related to JonasFranzDEV/drone-crowdin#2


🔄 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/2592 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 9/23/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (10+) - [`73041f3`](https://github.com/go-gitea/gitea/commit/73041f3cb59675c16f89fcd47b62d726c7021913) Adding download translations and ignoring branch - [`6e178ea`](https://github.com/go-gitea/gitea/commit/6e178eac74ef8e79ec72ee1e5f83aa791f0aa144) Adding git-push - [`593fae2`](https://github.com/go-gitea/gitea/commit/593fae2383af947d6887c725f3e5de6d4440b36e) Merge branch 'master' into patch-1 - [`1db4eab`](https://github.com/go-gitea/gitea/commit/1db4eabe80aad4bb09b132e4906c490fba9059e7) Update .drone.yml - [`9d36fac`](https://github.com/go-gitea/gitea/commit/9d36fac755744f3dfa7cf20e9eb01854e1f9d336) Merge branch 'master' into patch-1 - [`514006a`](https://github.com/go-gitea/gitea/commit/514006a2e5a33074fba5ac2deab9ab91cf5713a2) Fix orgnization user watch repository (#2670) - [`e89bb7e`](https://github.com/go-gitea/gitea/commit/e89bb7ef6a6848615a56f8c568ae335de0c2e9e7) Allow custom SSH user in UI for built-in SSH server (#2617) (#2678) - [`8863e74`](https://github.com/go-gitea/gitea/commit/8863e74f2aa7150605712eb21468b6f1305289f7) Fix organization watch migration (#2703) - [`f42dbdb`](https://github.com/go-gitea/gitea/commit/f42dbdbae59600266d03357f9693c659adc9cab3) Add Activity page to repository (#2674) - [`32ca299`](https://github.com/go-gitea/gitea/commit/32ca299650277829b93994eca1508f9d84a5b667) Remove direct user adding to organization members (#2641) ### 📊 Changes **51 files changed** (+1795 additions, -382 deletions) <details> <summary>View changed files</summary> 📝 `.drone.yml` (+32 -10) 📝 `conf/app.ini` (+2 -0) 📝 `integrations/editor_test.go` (+4 -9) 📝 `integrations/links_test.go` (+2 -2) 📝 `integrations/pull_create_test.go` (+2 -2) 📝 `integrations/pull_merge_test.go` (+4 -4) ➕ `integrations/repo_activity_test.go` (+61 -0) ➕ `integrations/repo_branch_test.go` (+132 -0) 📝 `integrations/repo_fork_test.go` (+28 -7) 📝 `models/error.go` (+45 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v46.go` (+36 -0) 📝 `models/repo.go` (+47 -41) ➕ `models/repo_activity.go` (+267 -0) 📝 `models/repo_branch.go` (+133 -0) ➕ `modules/auth/repo_branch_form.go` (+20 -0) 📝 `modules/context/repo.go` (+21 -1) 📝 `modules/setting/setting.go` (+3 -0) 📝 `modules/templates/helper.go` (+58 -0) 📝 `modules/validation/binding.go` (+9 -3) _...and 31 more files_ </details> ### 📄 Description This PR adds the following build steps: * download_translations: Downloads & exports all translations from crowdin and saves them into options/locale/ * upload_translations: Uploads the updated locale_en-US.ini to Crowdin The build steps are splitted because the files should only uploaded to crowdin if all test passes. It also adds the `ignore_branch` option to fix the build process because gitea does not use branches at crowdin. This is already tested here: * Upload & Export in custom folder: http://drone.jonasfranz.software/JonasFranzDEV/Crowdin-Demo/12 * Used configuration: https://git.jonasfranz.software/JonasFranzDEV/Crowdin-Demo/src/master/.drone.yml Related to #2585 Related to JonasFranzDEV/drone-crowdin#2 --- <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:55 -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#16493