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

Aperta Adatta ai principianti
#37 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
localization

Direzione di ricerca

Inizia da translate_exception_to_maithili in maithili_dsl/transpiler/linter.py (intorno alla riga 14) e leggi il dizionario translations esistente per seguirne il formato. Aggiungi le voci per le eccezioni elencate, poi un test per ogni voce in tests/test_linter.py che sollevi l'eccezione e verifichi il testo in maithili. È completato quando ogni nuovo tipo restituisce testo maithili accurato e il suo test passa; la formulazione richiede la revisione di un madrelingua maithili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1
Fork
4
Merge medio
12g 21h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alphacrack/python-maithili-dsl

Tutte le issue di alphacrack/python-maithili-dsl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.