From 7c43c5846d922d98c3140f369a435be62277a950 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 7 Jul 2025 13:58:57 -0300 Subject: [PATCH 1/4] Add zero-width space checker in CI --- .github/workflows/check.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0ff197d01..98ba287a1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -164,3 +164,26 @@ jobs: with: name: ${{ inputs.version }}-lint-logs path: logs/* + + + # Check for zero-width space charcters in translations. + # These are known to come together with (some?) machine translation like Google translate, + # and - as one of the consequences - it may avoid Transifex glossary matching (e.g. variáveis) + zero-width-space: + name: Check for zero-width space characters + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.version }} + + - name: Make sure the repository is up to date + if: github.event_name != 'pull_request' + run: git pull --rebase + + - name: Remove zero-width space characters + run: | + sed -i 's/\xe2\x80\x8b//g' *.po **/*.po + + - name: Show difference (error if there is any) + git diff --exit-code From 5f877a88729a231d5d689b659a332479a6286f85 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 7 Jul 2025 14:02:32 -0300 Subject: [PATCH 2/4] Add missing 'run' to step --- .github/workflows/check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 98ba287a1..36de01793 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -186,4 +186,5 @@ jobs: sed -i 's/\xe2\x80\x8b//g' *.po **/*.po - name: Show difference (error if there is any) + run: | git diff --exit-code From cceda6ac194a3973b973b35f5bd900f8f72ac4aa Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 7 Jul 2025 15:18:10 -0300 Subject: [PATCH 3/4] Colorize the git output --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 36de01793..d2f7b45b0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -187,4 +187,4 @@ jobs: - name: Show difference (error if there is any) run: | - git diff --exit-code + git diff --exit-code --color From 7bf63a9c9cf30482baafc6b9a01fd39be8c623ca Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 7 Jul 2025 15:28:51 -0300 Subject: [PATCH 4/4] Use word-diff instead of line diff --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d2f7b45b0..39ed2d7d2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -187,4 +187,4 @@ jobs: - name: Show difference (error if there is any) run: | - git diff --exit-code --color + git diff --exit-code --color-words 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