mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
config: fix rendering of core-defined strings during config set
This commit is contained in:
parent
c5a835c391
commit
dbff4316d3
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue