config: fix rendering of core-defined strings during config set

This commit is contained in:
Alexandre Aubin 2021-09-17 05:12:22 +02:00
parent c5a835c391
commit dbff4316d3

View file

@ -354,6 +354,11 @@ class ConfigPanel:
def _ask(self):
logger.debug("Ask unanswered question and prevalidate data")
if "i18n" in self.config:
for panel, section, option in self._iterate():
if "ask" not in option:
option["ask"] = m18n.n(self.config["i18n"] + "_" + option["id"])
def display_header(message):
"""CLI panel/section header display"""
if Moulinette.interface.type == "cli" and self.filter_key.count(".") < 2: