Skip to content

Commit cadd606

Browse files
committed
Create missing .po files during upstream sync
1 parent 6ed6753 commit cadd606

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/sync-check.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Frische POT-Dateien bauen
3737
run: |
38-
cd cpython-src/Doc
38+
cd cpython-src/doc
3939
PATH="./venv/bin:$PATH" make gettext
4040
4141
- name: powrap installieren (für einheitliche Zeilenumbrüche)
@@ -48,14 +48,17 @@ jobs:
4848
po="${rel%.pot}.po"
4949
if [ -f "$po" ]; then
5050
msgmerge --quiet --update --backup=none "$po" "$pot"
51-
powrap "$po"
51+
else
52+
mkdir -p "$(dirname "$po")"
53+
msginit --no-translator --locale=de --input="$pot" --output-file="$po"
5254
fi
55+
powrap "$po"
5356
done
5457
5558
- name: Prüfen, ob sich etwas geändert hat
5659
id: check
5760
run: |
58-
if git diff --quiet; then
61+
if [ -z "$(git status --porcelain)" ]; then
5962
echo "changed=false" >> "$GITHUB_OUTPUT"
6063
else
6164
echo "changed=true" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)