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

Commit902d03a

Browse files
committed
assert chapter titles and special messages are translated
1 parent660d6ab commit902d03a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎core/translation.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def get(msgid, default):
4444

4545
result=translation.gettext(msgid)
4646
ifresult==msgid:
47-
# TODO chapters and special messages should be translated
48-
assertmsgid.startswith(("code_bits.","chapters."))or"output_prediction_choices"inmsgidor".special_messages."inmsgid
47+
assertmsgid.startswith(("code_bits."))or"output_prediction_choices"inmsgid
4948
returndefault
5049

5150
defreplace(match):

‎tests/test_transcript.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4214,7 +4214,7 @@
42144214
" left += 1",
42154215
" for right in range(12):",
42164216
" right += 1",
4217-
" #workaround while translation is in progress",
4217+
" #for the sake of translation",
42184218
" print(f'{left} x {right} = {left * right}'.replace('x', '*'))",
42194219
" print('----------')"
42204220
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp