diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ce3f782041..f7bc273a5c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,11 +22,14 @@ jobs: - name: Instalar dependencias run: | sudo apt-get update - sudo apt-get install -y hunspell hunspell-es gettext + sudo apt-get install -y hunspell hunspell-es gettext language-pack-es python -m pip install -r requirements.txt pip list pospell --version powrap --version + - name: TRANSLATORS + run: | + diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS) - name: Powrap run: powrap --check --quiet **/*.po - name: Pospell diff --git a/requirements.txt b/requirements.txt index 7103dd2bdc..895e98302e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ pip==21.1 Sphinx==3.2.1 blurb +PyICU polib pospell>=1.1 potodo diff --git a/scripts/sort.py b/scripts/sort.py new file mode 100644 index 0000000000..98739a3f7f --- /dev/null +++ b/scripts/sort.py @@ -0,0 +1,8 @@ +import sys + +import icu + + +collator = icu.Collator.createInstance(icu.Locale()) +sorted_entries = sorted(sys.stdin, key=collator.getSortKey) +print("".join(sorted_entries), end='')