diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index e1b83b047..bb56aa323 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -98,6 +98,14 @@ jobs: env: TX_TOKEN: ${{ secrets.TX_TOKEN }} + - name: Merge translations from newer branch + if: inputs.tx_project != 'python-newest' # python-newest doesn't have a newer branch + run: | + newer_branch=${PYDOC_VERSION%%.*}.$((${PYDOC_VERSION##*.}+1)) + git clone --depth 1 --single-branch --branch $newer_branch https://github.com/python/python-docs-pt-br ${newer_branch}-dir + pomerge --from ./${newer_branch}-dir/**/*.po --to ./${{ env.LANGUAGE_DIR }}/**/*.po + rm -rf ./${newer_branch}-dir + - name: powrap if: steps.pull.outcome == 'success' run: | diff --git a/requirements.txt b/requirements.txt index baf7c5bfd..1ba2d5832 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +pomerge==0.1.4 potodo==0.21.3 powrap==1.0.2 sphinx-intl==2.3.0 diff --git a/scripts/commit.sh b/scripts/commit.sh index 7c3e2d5ae..fb1b752e2 100755 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -20,7 +20,7 @@ set -u git status -s | grep '^ D ' | cut -d' ' -f3 | xargs -r git rm # Add only updates that do not consist only of 'POT-Creation-Date' header change -git diff -I'^"POT-Creation-Date: ' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v +git diff -I'^"POT-Creation-Date: ' -I'^"Language: pt_BR' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v # Add currently untracked PO files, and update other helper files untracked_files=$(git ls-files -o --exclude-standard *.po **/*.po) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy