[FEATURE] Extend Maithili exception translations (ZeroDivisionError, IndentationError, ImportError, ...)

オープン 初心者向け
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
localization

調査の方向性

maithili_dsl/transpiler/linter.py(14行目付近)の translate_exception_to_maithili から始め、既存の translations 辞書を読んで形式を合わせてください。列挙された例外のエントリを追加し、各エントリについて、例外を発生させてマイティリー語のテキストを検証するテストを tests/test_linter.py に1つずつ追加します。新しい各型が正確なマイティリー語のテキストを返し、そのテストが通れば完了です。表現はマイティリー語の母語話者によるレビューが必要です。

索引モデルが issue の本文から書いたものです。

説明

area:linter enhancement good first issue P3 translation

translate_exception_to_maithili (maithili_dsl/transpiler/linter.py:14) translates only 7 exception types (SyntaxError, NameError, TypeError, ValueError, AttributeError, IndexError, KeyError). Common learner-facing exceptions fall through to the generic English-ish fallback.

Add translations for at least:

  • ZeroDivisionError (dividing by ०)
  • IndentationError
  • ImportError / ModuleNotFoundError
  • RecursionError
  • StopIteration
  • OverflowError
  • FileNotFoundError

Steps: extend the translations dict; one test per new entry in tests/test_linter.py (raise the exception, assert the Maithili text is returned).

Good first issue — pure data + tests, and a perfect task for Maithili speakers: accurate, natural phrasing matters more than code here.

主要言語
Python
スター
1
フォーク
4
平均マージ
12日 21時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alphacrack/python-maithili-dsl のほかの issue

alphacrack/python-maithili-dsl の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。