Resolve the subcommands heading via format_text #13

Closed
opened 2026-11-05 20:55:55 +01:00 by michael · 1 comment
Owner

Problem

print_subcommands() in dispatch/display.lua still writes a fixed
English heading:

out:write("Subcommands for '" .. cmd_name .. "':")

The text needs a placeholder. resolve_resource() returns the raw
catalog text; placeholder formatting (format_text(text, params)) is
planned for daw-modul-berhtjan-core 2.3.0.

Scope

  • make the heading a daw_i18n/v1 resource with {command}
  • format it via core.format_text(); a formatting error is returned
    as nil, err
  • raise the requirement to daw-modul-berhtjan-core >= 2.3.0

Acceptance criteria

  • no fixed user-facing text left in dispatch/display.lua
  • en and de resources with parameters and source_hash
  • fragjan code . and make test (5.1 and 5.4) pass

DAW/daw-modul-berhtjan-cli#11

## Problem `print_subcommands()` in `dispatch/display.lua` still writes a fixed English heading: out:write("Subcommands for '" .. cmd_name .. "':") The text needs a placeholder. `resolve_resource()` returns the raw catalog text; placeholder formatting (`format_text(text, params)`) is planned for daw-modul-berhtjan-core 2.3.0. ## Scope - make the heading a daw_i18n/v1 resource with `{command}` - format it via `core.format_text()`; a formatting error is returned as `nil, err` - raise the requirement to daw-modul-berhtjan-core >= 2.3.0 ## Acceptance criteria - [ ] no fixed user-facing text left in `dispatch/display.lua` - [ ] en and de resources with `parameters` and `source_hash` - [ ] fragjan code . and make test (5.1 and 5.4) pass ## Related DAW/daw-modul-berhtjan-cli#11
Author
Owner

Implemented on develop

Commits: 446528e

Pushed. Follow-up points, if any, are tracked in their own issues.

## Implemented on develop Commits: 446528e Pushed. Follow-up points, if any, are tracked in their own issues.
michael 2026-11-18 11:58:16 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-modul-berhtjan-cli#13
No description provided.