fix(launcher): localize image-missing placeholder + drop dead icons.lua

- markdown.lua: M.render now accepts an optional `t` 6th arg (ctx.t).
  When present, the image-missing fallback string is looked up via the
  new `image_missing_fmt` key in strings.lua. Callers without t (the
  launcher-test bytecopy) get the hardcoded English string verbatim,
  matching previous behavior.
- panels/detail.lua: both md.render call sites now thread ctx.t through.
- strings.lua: add image_missing_fmt = "[image missing: %s]".
- icons.lua: deleted. The v0.2.0 status-glyph helper was replaced by
  dep_glyph_* string keys in v0.3.0; grep confirmed no remaining refs.
- manifest.module: bump 0.3.2 -> 0.3.3.
This commit is contained in:
Calic
2026-06-13 13:31:36 +02:00
parent a7dc368712
commit 6917529778
5 changed files with 14 additions and 89 deletions

View File

@@ -90,7 +90,7 @@ function M.render(ctx)
local scroll = clamp_scroll(ctx)
engine.render.begin_view(view, scroll_cam(view, scroll))
local body = ctx.news_body_blocks or {}
local end_y = md.render(body, p.x + PADDING, p.y + PADDING, p.w - 2 * PADDING, nil)
local end_y = md.render(body, p.x + PADDING, p.y + PADDING, p.w - 2 * PADDING, nil, ctx.t)
engine.render.end_view()
ctx.detail_content_h = (end_y - view.y) + PADDING
ctx.detail_view_h = view.h
@@ -137,7 +137,7 @@ function M.render(ctx)
-- Description (rendered MD).
ensure_md(ctx.launcher_dir)
cur_y = md.render(mc.blocks, p.x + PADDING, cur_y,
p.w - 2 * PADDING, entry.id)
p.w - 2 * PADDING, entry.id, ctx.t)
cur_y = cur_y + 12