spp_dci_compliance/models/security_warning.py INSECURE_SETTINGS holds the user-visible text of the security-warning systray item ("Allow Unsigned Requests", "DCI signature verification is disabled. Any request will be accepted without cryptographic verification.", and so on) as plain str in a class-level constant. They are returned as-is by get_security_warnings() and rendered by the systray dropdown, so the panel stays English in every language. The JS-side strings (_t) and the XML template are translatable since #527; these Python strings are the remaining bulk of the panel text.
Because the entries live in a class-level constant, they need lazy translation: keep the constant as message ids and translate at get_security_warnings() time with self.env._(), or use LazyTranslate. Update the .pot afterwards.
Also the summary message (summarize()) uses the English-only plural form "%s DCI security setting(s) are in development mode"; use a proper plural or drop the field, which the template never renders (see the sibling systray follow-up).
Refs: #450, #527.
spp_dci_compliance/models/security_warning.pyINSECURE_SETTINGSholds the user-visible text of the security-warning systray item ("Allow Unsigned Requests", "DCI signature verification is disabled. Any request will be accepted without cryptographic verification.", and so on) as plainstrin a class-level constant. They are returned as-is byget_security_warnings()and rendered by the systray dropdown, so the panel stays English in every language. The JS-side strings (_t) and the XML template are translatable since #527; these Python strings are the remaining bulk of the panel text.Because the entries live in a class-level constant, they need lazy translation: keep the constant as message ids and translate at
get_security_warnings()time withself.env._(), or useLazyTranslate. Update the.potafterwards.Also the summary
message(summarize()) uses the English-only plural form"%s DCI security setting(s) are in development mode"; use a proper plural or drop the field, which the template never renders (see the sibling systray follow-up).Refs: #450, #527.