Files
wordcraft/docs/localization-hu.md
e22ce1d05e i18n(hu): complete the Hungarian catalog again (#842)
* i18n: add Hungarian (hu) interface translation

- crates/ui-egui/src/i18n/hu.tsv: complete catalog, all 1,572 keys of
  es.tsv in the same order, written clean-room from the plain meaning
  of the English labels; placeholders, escapes and trailing ellipses
  kept. Commands are nouns, messages use the informal second person,
  and only the first word of a label is capitalised. A noun after a
  number stays singular in Hungarian, so the context-free format needs
  no plural forms.
- LANGUAGES gains `hu` (Magyar); `hu`, `hu-HU` and `hu_HU.UTF-8`
  resolve to it.
- The Font dialog's preview sample is "AaBbYyZz ŐőŰű", so All Caps
  shows the double acute capitals.
- Tests: locale resolution and saved preference, key parity with the
  Spanish catalog, sample translations, count wording, the sample's
  capitals and Hungarian letters in the bundled interface fonts.
- Docs: new localization-hu.md (conventions, terminology, scope);
  README, ROADMAP, localization-parity and control-protocol list the
  new language; ATTRIBUTION row for hu.tsv.

* i18n(hu): built-in style names, equation gallery and citation styles

- hu.tsv now carries every key of the Russian catalog: built-in style
  names (Normal, No Spacing, Subtitle, TOC {n}…), the equation gallery
  and structure labels, paper sizes, watermarks and the Backstage
  greetings, plus the citation style names (1,946 entries).
- The interface audit (untranslated_interface_text) checks Hungarian
  alongside Russian and reports every language's gaps in one run.
- Tests: Hungarian keys cover the Russian catalog; built-in style
  names and numbered style templates show in Hungarian.
- Docs: entry counts and scope in localization-hu, localization-parity
  and ROADMAP.

* Review fixes for #731: Hungarian stays a partial catalog

- The i18n audit requires completeness from Russian only again: hu.tsv lacks ~280 strings of the
  dialogs that landed since (Compare Documents, Math AutoCorrect, …), so it can't claim to be
  complete. The catalog test no longer asserts it holds every Russian/Spanish key.
- 43 Hungarian rows for tab and command labels that reached main since (charts, content controls,
  Developer tab, templates and the styles organizer, WordArt), which every_tab_and_command_is_translated
  requires.
- Docs say partial, with the entry count (1,989); localization-parity's header keeps its quote
  marker and the #505 note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Review fixes for #731: Hungarian rows for the Outlining tab

24 rows for Outline view's tab and commands, which landed on main meanwhile; 2,013 entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Review fixes for #731: ROADMAP header keeps main's SmartArt note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(hu): complete the Hungarian catalog again

- hu.tsv: 374 new rows for the strings that reached main while #731 was
  in review (Compare Documents, Restrict Editing, Math AutoCorrect,
  charts, SmartArt, the Options sections, the print page and more).
  The catalog now holds every key of ru.tsv again: 2,397 entries.
- The completeness checks are back: the interface audit requires
  Hungarian alongside Russian, and the catalog test asserts hu.tsv holds
  every key of ru.tsv and es.tsv. The docs describe a complete catalog.
- Seven review rows follow the catalog's existing patterns: Text Pane
  (Szöveg panel, like the other panes), Design Mode (Tervezőmód, one
  compound), Picture and Date Picker Content Control (clearer compounds),
  Promote to Heading 1 / Demote to Body Text (style name after a colon,
  no case ending) and Reset Graphic (Ábra visszaállítása, shorter).

* Hungarian: translate interface strings added on main since this PR

Adds the 10 strings main gained with Polish proofing (spelling and grammar
messages, Do Not Check Spelling or Grammar, comment/browse buttons), so
hu.tsv again covers every key of the other catalogs (2,419 entries), and
drops the stale "Wildcards (regex)" row; updates the documented counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <brandon@storyteller.ai>
2026-10-12 06:45:30 -04:00

4.5 KiB
Raw Permalink Blame History

Hungarian interface

Last reviewed: 2026-10-11 · Last updated: 2026-10-11 · Change: minor (Hungarian interface catalog and regression checks) · Target: WordCraft 0.5.0

Choose File › Options › Interface language › Magyar, or follow a Hungarian system display language (hu-HU, hu_HU.UTF-8). The catalog code is hu; ui.language with {"value":"hu"} selects it explicitly, and WORDCRAFT_LANGUAGE=hu-HU does the same for a headless screenshot or a launch while the preference is auto. The choice is saved with the other interface settings. Document text, command ids, CLI/MCP/control responses and file paths do not change.

crates/ui-egui/src/i18n/hu.tsv has 2,419 entries: every key of the Russian catalog (built-in style names, equation gallery labels, paper sizes, watermarks and greetings included) plus the citation style names. It is written from the meaning of the English labels; no proprietary translation resources were consulted. The catalog format has no plural forms, and Hungarian doesn't need them: a noun after a number stays singular (0 szó, 1 szó, 21 szó). Placeholders, \n breaks in ribbon labels and dialog ellipses are kept, and strings added later fall back to English until they are translated.

Conventions

  • Commands are nouns (Mentés, Másolás, Beillesztés); messages address the user with the informal second person (Mentsd a dokumentumot).
  • Only the first word of a label is capitalised, as Hungarian spelling requires (Összes módosítás elfogadása).
  • Decimal comma (1,5-es sorköz) and Hungarian quotation marks („…”).
  • A placeholder never takes a case ending, because the value is not known when the text is written. The wording puts it after a colon or in parentheses instead (Undo {action} → Visszavonás: {action}, Couldn't open {path}: {error} → Nem sikerült megnyitni: {path} ({error})).
  • Text columns and table columns are different words: Hasábok (Layout › Columns, column break) and Oszlopok (table rows and columns).

Terminology

Source Hungarian
Home / Insert / Draw / Design / Layout Kezdőlap / Beszúrás / Rajzolás / Tervezés / Elrendezés
References / Mailings / Review / View / Help Hivatkozások / Levelezés / Véleményezés / Nézet / Súgó
Font / Paragraph / Styles Betűtípus / Bekezdés / Stílusok
Header / Footer / Heading Élőfej / Élőláb / Címsor
Footnote / Endnote / Caption Lábjegyzet / Végjegyzet / Felirat
Table of Contents / Index Tartalomjegyzék / Tárgymutató
Citation / Bibliography Forráshivatkozás / Irodalomjegyzék
Link / Hyperlink Link
Track Changes / Accept / Reject Változáskövetés / Elfogadás / Elutasítás
Comment / Markup Megjegyzés / Jelölések
Mail Merge / Recipients / Merge Field Körlevél / Címzettek / Egyesítési mező
Columns (text) / Columns (table) Hasábok / Oszlopok
Section / Section Break Szakasz / Szakasztörés
Undo / Redo / Repeat Visszavonás / Újra / Ismétlés
Undo {action} Visszavonás: {action}
Page {page} of {pages} Oldal: {page}/{pages}
Ribbon / Pane / Quick Access Toolbar Menüszalag / Panel / Gyorselérési eszköztár
Proofing / Word Count Nyelvi ellenőrzés / Szavak száma

Product and format names stay as they are (WordCraft, PDF, DOCX, Markdown, MCP, Zotero). The Font dialog's preview sample is AaBbYyZz ŐőŰű, so the All Caps preview shows the Hungarian double acute capitals.

Verification and remaining scope

cargo test -p wordcraft-ui-egui --lib i18n::tests covers Hungarian locale tags and preference order, saving and restoring hu, unchanged document content, every key of the Russian catalog, built-in style names, placeholders, count wording, the font sample's capitals, English fallback, and the glyphs ÁáÉéÍíÓóÖöŐőÚúÜüŰű in the bundled Inter (Regular, Medium, SemiBold) and JetBrains Mono. The shared catalog checks (validation, every tab and command translated) include Hungarian automatically, and the on-demand interface audit (untranslated_interface_text) checks Hungarian alongside Russian.

Spelling, grammar and hyphenation stay English-only: this is an interface translation, not Hungarian proofing. A native-speaker review of the catalog is welcome.

Revision history

Date Change Summary
2026-10-11 minor Hungarian catalog (2,419 entries: built-in style names, equation gallery, citation styles), conventions, terminology, scope and regression checks