Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Chequea orden en TRANSLATORS #1830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pip==21.1
Sphinx==3.2.1
blurb
PyICU
polib
pospell>=1.1
potodo
Expand Down
8 changes: 8 additions & 0 deletions scripts/sort.py
Original file line number Diff line number Diff line change
@@ -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='')