fix(adapters/ui): show translation problems instead of hiding them #153
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
adapters/ui/messages.luaof()hid every translation problem: when thecatalog was not loaded or the
resource_idwas unknown, it silently showedthe canonical English text. A fallback to a later language of the chain was
not visible either. The user could not tell a translated text from a missing
one.
Solution
of()andtext()returntext, problem. The text is always there (adisplay has to be total); the problem is the
daw_error/v1ofresolve_resource.... [en].[WARN] No translation: ...(event sink,
describe, results; results end withexit.warn).ask: a question whose text is missing is not asked; the problem isreturned.
question_unansweredcarriesquestion_problem.translation_problem(en, de).resource_idthere is nothing to translatewith, and no problem.
Acceptance criteria
test_ui_messages,test_ui_results,test_ui_dispatch)make testpasses with Lua 5.1 and 5.4fragjan code .passesRelated
DAW/fragjan#148 (language chain), DAW/daw-contracts#20 (event message),
DAW/daw-modul-berhtjan-cli (
resolve_resource)Implemented on develop
Commits:
60635b2Pushed. Follow-up points, if any, are tracked in their own issues.
The last open criterion ('fragjan code . passes') is not met: running it on fragjan itself reports 193 plain string error returns. These do not come from this change; fragjan has not been migrated to daw_error/v1 itself. Tracked in DAW/fragjan#157, which takes over this criterion. The translation problem display of this issue is implemented and stays closed.