From 5c5c970e811cc0fbf799ea1ebbaeeb6f00c89475 Mon Sep 17 00:00:00 2001 From: Cyberboy Date: Thu, 30 Jul 2026 16:35:03 +0200 Subject: [PATCH] i18n: draw naming-grid cells through Strings() The name-entry keyboard drew each cell literally, so the case-switch labels ("lower case" / "UPPER CASE") and the "ED" confirm cell could not be localized. Wrapping the draw in Strings() makes them translatable; the grid data keeps the original strings, so the case-switch detection is unaffected. Behavior-neutral for the base game (Strings identity without a catalog). --- src/ui/NamingScreen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/NamingScreen.lua b/src/ui/NamingScreen.lua index 366d484a..171d85de 100644 --- a/src/ui/NamingScreen.lua +++ b/src/ui/NamingScreen.lua @@ -183,7 +183,7 @@ function NamingScreen:draw() end for r, row in ipairs(self:grid()) do for c, cell in ipairs(row) do - Font.draw(cell, c * 16, 32 + r * 16) + Font.draw(Strings(cell), c * 16, 32 + r * 16) end end Font.drawCode(Theme.cursor, self.col * 16 - 8, 32 + self.row * 16)