Skip to content

Commit c83f567

Browse files
committed
Format all PO files with dprint
This enforces a consistent formatting for the PO files. The goal of this is to avoid large diffs due to random and unnecessary reformatting. We use the format of `msgcat`: this is also waht `msgmerge` produces and it’s easy to replicate for people by installing Gettext and running `dprint fmt`. This is a follow-up to #1351 which started enforcing that the `msgid` fields don’t change due to reformatting in a PR. If this turns out to be cumbersome, then we can disable it again.
1 parent a46c6c1 commit c83f567

File tree

5 files changed

+3281
-2619
lines changed

5 files changed

+3281
-2619
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v3
1818

19+
- name: Install Gettext
20+
run: |
21+
sudo apt install gettext
22+
1923
- name: Install nightly rustfmt
2024
run: |
2125
rustup default nightly

dprint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"commands": [{
99
"command": "rustfmt --edition 2021",
1010
"exts": ["rs"]
11+
}, {
12+
"command": "msgcat -",
13+
"exts": ["po"]
1114
}]
1215
},
1316
"excludes": [

0 commit comments

Comments
 (0)