Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb78570d

Browse files
committed
Add spellchecking
1 parent2572853 commitb78570d

File tree

310 files changed

+8096
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+8096
-0
lines changed

‎.github/workflows/check.yml‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,53 @@ jobs:
188188
-name:Show difference (error if there is any)
189189
run:|
190190
git diff --exit-code --color-words
191+
192+
193+
# Check spelling of PO files
194+
spellcheck:
195+
name:Check spelling of translation files
196+
runs-on:ubuntu-latest
197+
steps:
198+
-uses:actions/checkout@v5
199+
with:
200+
fetch-depth:5
201+
202+
-name:Set up Python 3
203+
uses:actions/setup-python@v6
204+
with:
205+
python-version:${{ inputs.version }}
206+
cache:pip
207+
allow-prereleases:true
208+
209+
-name:Make sure the repository is up to date
210+
if:github.event_name != 'pull_request'
211+
run:git pull --rebase
212+
213+
-name:setup
214+
run:./scripts/setup.sh
215+
216+
-name:Generate template files without literal-block
217+
run:|
218+
sed -i '/^make/s/$opts/$opts -D gettext_additional_targets=["index"]/' scripts/generate_templates.sh
219+
./scripts/generate_templates.sh
220+
221+
-name:Update translation files
222+
working-directory:cpython/Doc/locales/pt_BR/LC_MESSAGES
223+
run:|
224+
for po in $(git ls-files *.po); do
225+
pot="cpython/Doc/build/gettext/${po}t"
226+
msgmerge --update --backup=off $po $pot
227+
done
228+
229+
-name:Check spelling
230+
working-directory:cpython/Doc/locales/pt_BR/LC_MESSAGES
231+
run:|
232+
dirs=$(find . -type d -not \( -path './.git*' -o -path './.tx*' \) | sort)
233+
for dir in $dirs; do
234+
::group::{$dir}
235+
pushd $dir
236+
po_files=$(find -maxdepth 1 -name '*.po' | sort)
237+
python ../../../../../scripts/check_spell.py $po_files
238+
::endgroup::
239+
popd
240+
done

‎dictionaries/2.4.txt‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
ImmutableSet
2+
Wilson
3+
FutureWarning
4+
Kalle
5+
Moshe
6+
Zadka
7+
iterator
8+
Jewett
9+
Skip
10+
Reifschneider
11+
Hettinger
12+
Svensson
13+
Hye-Shik
14+
Chang
15+
Unsupported
16+
format
17+
character
18+
Montanaro
19+
Russell
20+
iterador
21+
Åstrand
22+
Frederik
23+
Lundh
24+
rounding
25+
Rexx
26+
Dorfman
27+
atof
28+
ptr
29+
Reis
30+
Carneiro
31+
hashable
32+
Rigo
33+
pystone
34+
reversed
35+
subprocess
36+
exc
37+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp