mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
i18n: 'danger' key is only defined in yunohost, not moulinette
This commit is contained in:
parent
552db2e21d
commit
acf4d1c82a
1 changed files with 2 additions and 1 deletions
|
@ -771,7 +771,8 @@ class DisplayTextQuestion(Question):
|
|||
"warning": "yellow",
|
||||
"danger": "red",
|
||||
}
|
||||
return colorize(m18n.g(self.style), color[self.style]) + f" {text}"
|
||||
text = m18n.g(self.style) if self.style != "danger" else m18n.n("danger")
|
||||
return colorize(text, color[self.style]) + f" {text}"
|
||||
else:
|
||||
return text
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue