mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-09-26 18:07:56 +00:00
pisti87 asked whether the obsolete entries in the language files will be removed (#262). Measuring it first was the right move, because the tool that would have driven that cleanup was wrong. source_keys() only ever matched TR("literal"). Strings reached indirectly, as in TR(kSettingsCats[c].label), were invisible to it, so every settings-category name looked unreferenced: About, Backups, Language, MQTT bridge, App permissions and the rest. Anyone pruning the .lang files on that output would have deleted live translations for some of the most visible labels in the UI. The audit now also pulls literals out of any table whose name appears inside a TR(...) subscript. Deliberately greedy: over-collecting keeps a translation alive, under-collecting deletes one. That immediately found a real gap it had been hiding. "App permissions", the settings category added with the permissions page, was missing from all 13 languages and the old audit reported everything as covered. Added, builtin regenerated, published as language v15. Also adds --obsolete, the reverse check pisti87 actually needs: rows in each .lang file that no TR() key matches. It reports and never deletes, and says plainly that these are candidates to check rather than a delete list, for the reason above. Numbers now: 950 keys reachable, hu.lang carries 1044 rows, 94 unreferenced. The earlier figure was 119, so 25 of those were the false positives just fixed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
35 lines
1.1 KiB
JSON
35 lines
1.1 KiB
JSON
{
|
|
"apps": [
|
|
{
|
|
"id": "monitor",
|
|
"name": "RF Monitor",
|
|
"ver": "1.3",
|
|
"desc": "Scrollable: RSSI/noise chart with dBm axis, link margin, RX rate, radio params, heard feed."
|
|
},
|
|
{
|
|
"id": "airtime",
|
|
"name": "Airtime",
|
|
"ver": "1.3",
|
|
"desc": "Utilization bars with a % axis, rx/tx split, duty ceiling, budget. Reset button top-right."
|
|
},
|
|
{
|
|
"id": "snake",
|
|
"name": "Snake",
|
|
"ver": "1.0",
|
|
"desc": "The classic, in Lua. Swipe to steer."
|
|
},
|
|
{
|
|
"id": "sdktest",
|
|
"name": "SDK Test",
|
|
"ver": "1.2",
|
|
"desc": "Developer tool. Checks the extended Lua SDK on this board: capabilities, clock, battery, GPS, file access, crypto against published RFC vectors, channel discovery, and buttons that TRANSMIT a test message to Public and a DM to your first contact (each asks permission first)."
|
|
},
|
|
{
|
|
"id": "2048",
|
|
"name": "2048",
|
|
"ver": "1.2",
|
|
"desc": "The classic sliding-tile puzzle. Swipe to move, tap to restart. Keeps your best score. Contributed by pisti87."
|
|
}
|
|
]
|
|
}
|