Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

API_key startup message shows the API port instead of the access key in 20 locales

Open Dio77799 opened this issue 3 weeks ago • 1 comments

When the API starts, nettacker/api/engine.py prints:

_("API_key").format(options.api_port, options.api_access_key)

en.yaml uses both placeholders ({0} = port, {1} = key), but 20 translations only have {0}, for example de.yaml: "* API-Schlüssel: {0}". With any of those languages the banner prints the port where the API key should be, so the user never sees the generated key.

Affected: ar, de, el, es, fa, fr, hy, id, it, iw, ja, ko, nl, ps, pt-br, ru, tr, ur, vi, zh-cn.

Proposed fix: change {0} to {1} in those 20 strings (no new translation text) and add a unit test that renders API_key for every locale and checks that the key is in the output. Could you assign this to me?


OS: Windows

OS Version: 11 Pro

Python Version: 3.12

Dio77799 avatar Nov 08 '26 08:11 Dio77799

@Dio77799 thank you. Assigned to you now

securestep9 avatar Nov 11 '26 23:11 securestep9