Repository navigation
Show keyboard and input method errors in the current language - #18815
Conversation
The keyboard and input-method pickers showed Danish titles with English bodies because their errors were hard-coded English with no catalog keys. Add catalog entries for the empty-layout, missing-engine and personal-override errors and resolve them through omarchy-i18n where each error is raised, with an English fallback, so the shared handler notifies entirely in the current language.
[Low impact] The PR appears safe to merge; no actionable issue remains. SummaryRoutes three keyboard and input-method error messages through
Reviews (4) · Last reviewed commit: "Look typing setup errors up through omar..." · Reviewed by Greptile |
Pull requests only add the English side of a string. Drop the three Danish entries added by hand; the translation sync workflow adds them from the English catalog. Co-authored-by: Cursor <cursoragent@cursor.com>
…backs omarchy-i18n already falls back to the English catalog, and main() calls it with check=True right after to translate the title, so a second English copy of each string could never rescue a notification. The uninstalled-engine test now mocks only omarchy-pkg-present, so its message comes through the real catalog lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pushed 7127f17 on top of this branch. What changed and why. Tests: kept, none added. This PR added no tests, and a string change gets none of its own. The English fallback existed mostly because Proved on a worker built from the Omarchy ISO: Second opinion: Codex Medium reviewed the commit and found nothing to change. It checked that every caller ( Waiting on the maintainer. |
…#18815) * Translate typing setup error bodies via i18n The keyboard and input-method pickers showed Danish titles with English bodies because their errors were hard-coded English with no catalog keys. Add catalog entries for the empty-layout, missing-engine and personal-override errors and resolve them through omarchy-i18n where each error is raised, with an English fallback, so the shared handler notifies entirely in the current language. * Leave the Danish typing setup strings to the translation sync Pull requests only add the English side of a string. Drop the three Danish entries added by hand; the translation sync workflow adds them from the English catalog. Co-authored-by: Cursor <cursoragent@cursor.com> * Look typing setup errors up through omarchy-i18n without English fallbacks omarchy-i18n already falls back to the English catalog, and main() calls it with check=True right after to translate the title, so a second English copy of each string could never rescue a notification. The uninstalled-engine test now mocks only omarchy-pkg-present, so its message comes through the real catalog lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f1afc61)
In Danish, a refused change in Keyboard Inputs or Input Methods shows a notification with a Danish title and an English body.
default/input-methods/typing_setup.pytranslates the title but sends its English error text as the body.Screenshots
Reproduce
omarchy language da.More cases
Input Methods: tick Japanese (Mozc) after
sudo pacman -Rns fcitx5-mozcKeyboard Inputs: tick French while
~/.config/hypr/input.luasetskb_layout = "de"Also affected
typing_setup.pyinput_itemsandsave_keyboard: "The current input group has no keyboard input" stays English. Not fixed here.typing_setup.pyset_inputsandsave_keyboard: "Fcitx did not retain the input/keyboard selection" stays English. Not fixed here.typing_setup.pychooseandapply_selection: "The selection menu could not open" and "The menu returned an invalid selection" stay English. Not fixed here.typing_setup.pyload_engines: the "its engine" fallback stays English inside the translated sentence. Not fixed here.Related
str(error)