mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-03 00:40:33 -06:00
lib.rs named every dictionary language in nine places: reloading for a new folder, the installed list, load errors, the missing-dictionary hint, the loaded check, the spelling message, spelling, suggestions and grammar. The lists had drifted. dictionary_load_error had no Russian or Czech entry, so a Russian or Czech dictionary that failed to load showed no reason in File › Options › Proofing, though the status bar, which reads another list, said why. LANGUAGES holds one row per language: its dictionary slot, its spelling message, and its spelling, suggestion and grammar functions. The nine functions read the row, so a language now joins with its module, its ProofLang and one row. The per-language reload_dictionary and installed_path wrappers had no callers left, inside the crate or out, and are gone. Tests: every_dictionary_language_reports_its_load_error, which fails for Russian on the old code, and the_language_table_covers_the_proofed_languages (each ProofLang::PROOFED language but English has exactly one row). Proof 285, engine 927 and layout 501 (lib).